Boris Goldowsky wrote: > >> We have written commands in Java[tm] for DocBook that do just this: >> * Command "docb.demote" >> http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditext/docbook/Demote.html >> * Command "docb.promote" >> http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditext/docbook/Promote.html >> We can send you the source code of these commands if you are interested. >> > I would be interested to see what that looks like.
Sent as attachments to my next, private, email. > I can see how to invoke an XSLT on the document and put the result in a > file, but is there a way to slurp the result back into the document > being edited? Using the paste command. This commands accepts a XML literal (i.e. a string starting with <?xml) in its parameter. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/paste.html See also the read process command child element which may be used to make a process command return the content of a file. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/read.html

