[oXygen-user] External tool differences between Windows and Linux [Was: Getting <oXygen/> to run Calabash to run Saxon with -dtd:off or with catalogs?]

Tony Graham
Mon Feb 14 10:27:40 CST 2011


On Wed, February 9, 2011 10:17 am, Tony Graham wrote:
...
> Thanks for that, that helped but wasn't the complete solution.  It's now
> working, but not quite the way that it should.

It's also working differently on Windows and Linux using oXygen 12.1 on both.

The Linux command line for the external tool is:

"${oxygenInstallDir}/jre/bin/java" 
-Dxml.catalog.files="${frameworksDir}/xml/catalog.xml${ps}${frameworksDir}/DTD/schema/catalog.xml"
-cp 
"${oxygenInstallDir}/lib/xproc/calabash/calabash.jar"${ps}"${oxygenInstallDir}/lib/saxon9ee.jar"${ps}"${oxygenInstallDir}/lib/resolver.jar"
com.xmlcalabash.drivers.Main  -U
org.apache.xml.resolver.tools.CatalogResolver -E
org.apache.xml.resolver.tools.CatalogResolver XProc/test-schematron.xpl
path="${pdu}"/Tests schematron=Schematron/testing.sch

and the Windows command line is:

"${oxygenInstallDir}/jre/bin/java.exe" 
-Dxml.catalog.files="${frameworksDir}/xml/catalog.xml${ps}${frameworksDir}/DTD/schema/catalog.xml"
-cp 
"${oxygenInstallDir}/lib/xproc/calabash/calabash.jar"${ps}"${oxygenInstallDir}/lib/saxon9ee.jar"${ps}"${oxygenInstallDir}/lib/resolver.jar"
com.xmlcalabash.drivers.Main  -U
org.apache.xml.resolver.tools.CatalogResolver -E
org.apache.xml.resolver.tools.CatalogResolver XProc/test-schematron.xpl
path="${pdu}"/Tests schematron=Schematron/testing.sch

The only difference is the extra '.exe' in the Windows version (and
without that sort of trivial difference, I could have half as many
external tool definitions).

The Windows version works, but the Linux version can't find the DTD
because it's looking for it in the same directory as the XML files, which
would indicate that the catalog isn't being used.

Regards,


Tony Graham                         
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2




More information about the oXygen-user mailing list