Re: [Fwd: XML plugin for Kate]



  I checked the code quickly, it's based on Qt XML support (which I bet
doesn't seem able to parse and load a DTD and make its content accessible
to a program). So they have to preprocess the DTd with an external tool
to make an XML view of the DTD, which then is used to build the choices.
Pretty lame IMHO, if your DTd is not on the list you have to process it
with the external tool, it would break too if you have extensions in the
internal subset. KDE level hack IMHO >:->, I would not jump on this.
Libxml has the capacity to query a parsed DTD for elements allowed for
insertion at a given point:
  http://xmlsoft.org/html/libxml-valid.html#XMLVALIDGETVALIDELEMENTS
  xmlValidGetValidElements ()

  I don't have a similar API for attributes

Daniel

On Thu, Oct 04, 2001 at 04:21:46PM -0700, Gregory Leblanc wrote:
> Who's gonna try it first?  I'm scrouning around for a copy of the KDE
> Advanced Text Editor (KATE) already.  :-)
> 	Greg

Content-Description: Forwarded message - XML plugin for Kate
> Date: Fri, 5 Oct 2001 00:45:29 +0200
> From: Daniel Naber <daniel naber t-online de>
> Subject: XML plugin for Kate
> To: kde-devel kde org
> Cc: Kde-docbook master kde org, dot kdenews org
> 
> Hi,
> 
> I've written an XML plugin for Kate (using KDE_2_2_BRANCH). You can 
> download it at http://www.danielnaber.de/tmp/
> 
> The plugin gives hints about what's allowed at a certain position in
> an XML file, according to the file's DTD. It will list possible
> elements, attributes, attribute values or entities, depending on the
> cursor position. You can also close an open element with a keyboard 
> shortcut.
> 
> Docbook is also supported, so hopefully people will use Kate + XML plugin 
> to write KDE documentation. 
> 
> The reason I'm posting this here is also that I need help from people with 
> more experience in C++/KDE. Things I currently don't know how to solve:
> 
> -How to modify the Makefile so that the XML files get installed in an 
> appropriate directoy?
> 
> -How to use that directory as a default with the file dialog?
> 
> -Make file loading network transparent
> 
> Any help or feedback about the plugin is appreciated.
> 
> Regards
>  Daniel
> 
> -- 
> Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
> http://www.danielnaber.de
> _______________________________________________
> Kde-docbook mailing list
> Kde-docbook mail kde org
> http://mail.kde.org/mailman/listinfo/kde-docbook


-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]