[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Sun Resolver classes released
If you're using Saxon with these classes, beware of the following problem: AElfred, Saxon's default XML parser, has a serious bug in recent Saxon releases; it calculates the base URI of external entities incorrectly. To avoid this problem, I suggest that you use Xerces or any other JAXP compliant parser, instead of AElfred. This can be accomplished with the following options *to java*: # Force Saxon to use a decent parser (AElfred doesn't do PEs right) DBFACTORY=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl SPFACTORY=org.apache.xerces.jaxp.SAXParserFactoryImpl java -Djavax.xml.parsers.DocumentBuilderFactory=$DBFACTORY \ -Djavax.xml.parsers.SAXParserFactory=$SPFACTORY \ << any other options you want to use: -cp, etc. >> com.icl.saxon.StyleSheet \ << parameters to Saxon >> I have no idea how to do this if you're using InstantSaxon. Be seeing you, norm P.S. If you're using Windows and not UNIX, the relevant bits are the -D options to java, but you'll have to do the variable declarations with 'set' and use % instead of $, etc. -- Norman Walsh <ndw@nwalsh.com> | Those who in their youth did not http://www.oasis-open.org/docbook/ | live in self-harmony, and who did Chair, DocBook Technical Committee | not gain the true treasures of | life, are later like long-legged | old herons standing sadly by a | lake without fish.--The Dhammapada
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC