Carl Castro wrote: > We're evaluating tools including editors to use for a DocBook-based > documentation system we've developed in-house. > We have our own semantic-level XML DTDs and XMLSchemas for various specific > types of document (including guides, "cookbooks" and references). We have > XSLT to transform these into DocBook representations, and then (mostly > standard) XSL-FO to transform the DocBook representations into PDFs, etc. > We would like to be able to "plug-in" our XSL transforms to DocBook, edit in > our own tags, and see the DocBook output in the editor as "WYSIWYG". We'd > also like to be able to update the XSL transforms in the same editing > session, without reconfiguring or restarting, and see updated WYSIWYG > output. > Would this be possible in the Standard or Professional Edition of XMLEditor? > How would it be done?
This is possible in both editions if you use DTDs, and only with Professional Edition if you use XMLSchemas. It would work like this: * You open one of your documents in XXE. You edit it with your own tags. You need to write an XXE configuration, preferably with a CSS style sheet to do that, let's call it cookbook.xxe. http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch02.html * In cookbook.xxe, you add a macro-command containing a process command and ending with native command: XXE.open. Let's call this macro-command previewDocBook. http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch02.html * The process command uses your XSLT style sheet to transform the document being edited into a temporary DocBook file. http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch05.html * The last step of the macro-command: XXE.open, is used to open the temporary DocBook file in a separate ``window'' (inside XXE). http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s66.html * The user will have to refresh the DocBook preview manually by invoking macro-command previewDocBook (you can bind previewDocBook to a key stroke). * By default, XSLT style sheets are not cached. This means that you can update XSL transforms transparently for the user. (However, if your XSLT style sheet is not modular and is not stored on a remote HTTP or FTP server, you can try caching it because this will speed up previewDocBook.)

