Sandy Koczko wrote: > Is there a way to set up a "preview" for DocBook XML converted docs? > To, in other words, have the browser automatically start and display the > doc converted to html, > Acrobat automatically start and display the doc converted to pdf and so on?
Sure but you need to learn how to customize XXE. In pratice, this means reading the "Power User's Guide". See http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/index.html Example: ~~~~~~~~ * <XXE_install_dir>/distrib/config/docbook/xslMenu.incl defines the DocBook menu. --- <menu label="DocBook" mnemonic="D"> <insert /> <separator /> . . . </menu> --- * docb.convertToHTML is triggered by the following menu entry: --- <item label="Convert to HTML..." mnemonic="H" command="docb.convertToHTML" /> --- * Converting the DocBook document to multiple HTML pages is performed by macro-command docb.convertToHTML which calls process-command docb.toHTML to do the job. --- <command name="docb.convertToHTML"> <macro> <sequence> <command name="selectFile" parameter="saveDirectoryURL" /> <command name="docb.toHTML" parameter='"%_"' /> </sequence> </macro> </command> --- * A quick an dirty way to do what you want is to insert <shell> elements at the end of process-command docb.toHTML --- <command name="docb.toHTML"> <process> . . . <upload base="%0/"> <copyFiles files="*.*" toDir="." /> <copyFiles files="resources/*" toDir="resources" /> <copyFiles files="callouts/*" toDir="callouts" /> </upload> <shell command='start "" "%0/index.html"' platform="Windows" /> <shell command='(mozilla -raise -remote "openURL(%0/index.html)" 1> /dev/null 2>&1) || (/mozilla "%0/index.html" &)' platform="Unix"/> </process> </command> --- * Now do same thing with process-commands docb.toHTML1 (preview single page HTML), docb.toRTF (preview with MS-Word), docb.toPS (preview with acrobat or print the doc on a PostScript printer). * Doing all this without modifying the bundled DocBook configuration is described in http://www.xmlmind.com/xmleditor/config_faq.html#customize_docbook

