Claus wrote: > > I'm working with XMLMind-Editor on two machines: one runs Windows Vista, > one runs Windows XP. > > Using the exact same setup on both machines, I can run "convertdoc.bat" > on the Vista-machine without problems using this commandline: > > $ c:/programs/XmlMindEditor4/bin/convertdoc.bat -v -t > "C:/Users/cklingb/AppData/Roaming/XMLmind/XMLEditor4/addon/my_stylesheet.xsl" > db5.toMyHTML mydoc.xml -u output > > However, when I try to run the above command on the XP-machine, it fails > like this: > > $ c:/programs/XmlMindEditor4/bin/convertdoc.bat -v -t > "file:/C:/Documents%20and%20Settings/cklingb/Application%20Data/XMLmind/XMLEditor4/addon" > db5.toMyHTML mydoc.xml -u output > > convertdoc: Loading configuration "C:\Documents and > Settings\cklingb\Application Data\XMLmind\XMLEditor4\addon\customize.xxe"... > convertdoc: Registering XSL-FO processor plug-in > "com.xmlmind.xmleditext.xep_foprocessor.XEP"... > convertdoc: Registering XSL-FO processor plug-in > "com.xmlmind.xmleditext.xfc_foprocessor.XFC"... > convertdoc: Loading configuration > "C:\programs\XmlMindEditor4\addon\config\xhtml\xhtml_strict.xxe"... > convertdoc: Loading configuration > "C:\programs\XmlMindEditor4\addon\config\xhtml\xhtml_loose.xxe"... > convertdoc: Loading configuration > "C:\programs\XmlMindEditor4\addon\config\docbook5\docbook5.xxe"... > convertdoc: Loading configuration > "C:\programs\XmlMindEditor4\addon\config\docbook\docbook.xxe"... > convertdoc: Loading document > "c:\work\HOT\pflichtenheft\Pflichtenheft-HOT.xml"... > convertdoc: Loading RELAX NG schema > "file:/C:/programs/XmlMindEditor4/addon/config/docbook5/rng/V5.0/docbook.rng"... > convertdoc: Schema > "file:/C:/programs/XmlMindEditor4/addon/config/docbook5/rng/V5.0/docbook.rng" > cached. > convertdoc: Processing inclusions in > "file:/c:/work/HOT/pflichtenheft/Pflichtenheft-HOT.xml"... > convertdoc: Stripping ignoreable whitespace from > "file:/c:/work/HOT/pflichtenheft/Pflichtenheft-HOT.xml"... > convertdoc: Creating directory "images" > convertdoc: Copying ressources specified by > "file:///c:/work/HOT/pflichtenheft/images/logo.png" to "images" > convertdoc: Copying file > "file:/c:/work/HOT/pflichtenheft/images/logo.png" to "C:\Documents and > Settings\cklingb\Local Settings\Temp\xxe27031\images\logo.png" > convertdoc: Invoking process command "db5.toHTML" > with parameter ""file:/c:/work/HOT/pflichtenheft/out"" > convertdoc: Invoking process command "db5.convertStep1" > with parameter "" > convertdoc: Creating directory "resources" > convertdoc: Creating directory "raw" > convertdoc: Copying document to "__doc.xml" > [...] > convertdoc: Copying file > "file:/C:/programs/XmlMindEditor4/addon/config/docbook5/xsl/images/callouts/9.png" > to "C:\Documents > and Settings\cklingb\Local Settings\Temp\xxe27031\images\callouts\9.png" > convertdoc: Copying ressources specified by "xsl/css/html.css" to "html.css" > convertdoc: Copying file > "file:/C:/programs/XmlMindEditor4/addon/config/docbook5/xsl/css/html.css" > to "C:\Documents and Settings\cklingb\Local Settings\Temp\xxe27031\html.css" > convertdoc: Transforming XML file "__doc.xml" to "__doc.html" using > "file:/C:/Documents0and0Settings/cklingb/Application0Data/XMLmind/XMLEditor4/addon/my_stylesheet.xsl" > convertdoc: Compiling style sheet > "file:/C:/Documents0and0Settings/cklingb/Application0Data/XMLmind/XMLEditor4/addon/my_stylesheet.xsl" > convertdoc: *** error: Command execution has failed: > javax.xml.transform.TransformerConfigurationException: > java.io.FileNotFoundException: > C:\Documents0and0Settings\cklingb\Application0Data\XMLmind\XMLEditor4\addon\my_stylesheet.xsl > (Das System kann den angegebenen Pfad nicht finden) > +--------------------------------------- > | com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:121) > | > com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:120) > | > com.icl.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:72) > | > com.xmlmind.xmleditapp.cmd.process.TransformItem.createTransformer(TransformItem.java:319) > | > com.xmlmind.xmleditapp.cmd.process.TransformItem.doExecute(TransformItem.java:212) > | > com.xmlmind.xmleditapp.cmd.process.TransformItem.execute(TransformItem.java:157) > | > com.xmlmind.xmleditapp.cmd.process.SubProcessItem.execute(SubProcessItem.java:78) > | > com.xmlmind.xmleditapp.cmd.process.ProcessCommand$1.run(ProcessCommand.java:176) > +--------------------------------------- > [...] > > Note the only difference is my home-path. On Vista, it's without spaces > on XP it contains spaces. > > What am I doing wrong or how is one supposed to encode the path on XP > machines? >
--> This problem is related to the way cmd.exe interprets the % character in a quoted string, and not to XMLmind XML Editor or to convertdoc. (Here cmd.exe seems to interpret %2 as a reference to the second argument of an hypothetical .bat file). Not being a Windows expert, I have no real answer to this problem. Personally, I would try [1] -t file:/C:/Documents%20and%20Settings/cklingb/Application%20Data/XMLmind/XMLEditor4/addon/my_stylesheet.xsl That is, no quotes at all. [2] -t "file:/C:/Documents%%20and%%20Settings/cklingb/Application%%20Data/XMLmind/XMLEditor4/addon/my_stylesheet.xsl" Escape % by doubling this character. [3] -t "file:/C:/Documents^%20and^%20Settings/cklingb/Application^%20Data/XMLmind/XMLEditor4/addon/my_stylesheet.xsl" Escape % by adding ^ in front of it. --> This being said, the doc -- http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html -- says that -t expects a file or URL argument. Therefore -t "C:\Documents and Settings\cklingb\Application Data\XMLmind\XMLEditor4\addon\my_stylesheet.xsl" should work fine too.

