Using Wiki for KDE (User/Devel) Documentation
Anders Lund
anders at alweb.dk
Mon Feb 21 10:13:59 GMT 2005
On Monday 21 February 2005 10:40, Andras Mantia wrote:
> [Self-advertising follows]
...
Ok, me too :)
About what kate does with the XMO tools + XML validation plugins
To get the support in Kate
* enable the two plugins (from the kdeaddons modules)
* Open your docbook file and assign a DTD (XML->Assign DTD)
You will now have autocompletion of valid tags, attributes and entities, a
shortcut for closing the nearest open tag, a action (ctrl + kp enter) to mark
up your selection, which includes a drop down of valid tags if a DTD is
assigned, and a validater which passes the file through XMLLINT and shows you
a list of clickable errors (clicking will take you to the error line).
This of course works for a lot of XML formats, the current distribution
contains meta DTDs* for XHTML, HTML, KDE Docbook, kpartgui, kconfigxt, Kates
highlight language and xslt.
Using the plugin with no DTD assigned is of course still providing the close
tag and markup actions, but no autocompletion, as well as the validater will
only check well-formed-ness without a DTD.
*) 'Meta DTD' is a processed DTD produced by the dtdparse tool, which you can
download from CPAN or from dtdparse.sf.net. You can use the tool to produce
new meta DTDs for any DTD of your choice.
-anders
--
www: http://alweb.dk
jabber: anderslund at jabber.dk
More information about the kde-core-devel
mailing list