maurizio codogno wrote: > I am trying to create a customized menu entry in XMLmind. So far, > I managed to add the entry, but when I select "convert to my > HTML" I always start with a default directory. Is it a feature?
I'm not sure to understand "I always start with a default directory". A process command basically acts on files copied to a temporary directory specially created for this purpose. After running the process command, this temporary directory and all its content is deleted. > My config file is > > <configuration name="DocBook" > xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" > xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <include location="xxe-config:docbook/docbook.xxe"/> > > > <command name="docb.toHTML"> > <process> > [... some stuff ...] > > <!-- The real HTML file is index.html --> > <delete files="__doc.*" /> > > <upload base="file:/%0"> > <copyFiles files="*.*" toDir="." /> > <copyFiles files="resources/*" toDir="resources" /> > <copyFiles files="callouts/*" toDir="callouts" /> > </upload> > </process> > </command> > > <command name="docb.convertToHTML"> > <macro> > <sequence> > <command name="selectFile" parameter="saveDirectory" /> > <command name="docb.toHTML" parameter='"%_"' /> > </sequence> > </macro> > </command> > > <menu label="DocBook" mnemonic="D"> > <insert /> > <separator /> > <item label="Convert to my HTML ..." > command="docb.convertToHTML" parameter='" " 0' /> > </menu> > > I am not really sure what do the last parameters mean :-) > TIA, .mau. In your menu item "Convert to my HTML ...", command "docb.convertToHTML" is invoked with parameter='" " 0'. But in command "docb.convertToHTML", these parameters are never referenced (%0, %1 or %*). Therefore it is useless to have a parameter='" " 0' in your menu item "Convert to my HTML ...". You can remove it.

