RE: [docbook-apps] help desperately needed a.k.a. can't get any of the 3 major free xslt engines to work

From
Mauritz Jeanson <>
Date
2006-09-08T17:40:06+00:00
ID
000c01c6d36d$d3695730$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] help desperately needed a.k.a. can't get any of the 3 major free xslt engines to work
> -----Original Message-----
> From:  
> [mailto:] 
> 
> I ran the updated saxon command and redirected the output (via &>) to
> the same file. It looks the same as before. I will now try to trim the
> example.


Try this: put xerces.jar in your classpath for Saxon and use the following
system properties:

javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuil
derFactoryImpl 
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryIm
pl
org.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parser
s.XIncludeParserConfiguration

This will force the use of Xerces as XML parser instead of the buggier
AElfred. It also adds XInclude capability.

The command should now look like this:

java
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBu
ilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactory
Impl
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.pars
ers.XIncludeParserConfiguration -cp
"/usr/share/xerces-1.3/lib/xerces.jar:/usr/share/saxon-bin/lib/saxon.jar:/us
r/share/sgml/docbook/xsl-stylesheets-1.70.1/extensions/saxon653.jar:/usr/sha
re/xml-commons/lib/resolver.jar:/etc/xml" com.icl.saxon.StyleSheet -r
org.apache.xml.resolver.tools.CatalogResolver -x
org.apache.xml.resolver.tools.ResolvingXMLReader -y
org.apache.xml.resolver.tools.ResolvingXMLReader -o
src/Engineering_Optimization.fo src/Engineering_Optimization.xml xsl/fo.xsl 

(That's one heck of a command...)

Does this help?

/MJ