Larry Garfield wrote:
When I try to run the build script, however, I am getting the following error:
Transformation failed: Failed to load
org.apache.xml.resolver.tools.CatalogResolver
<property name="resolver.jar"
value="/usr/share/java/xml-commons-resolver-1.1.jar"/>
Is the resolver at that location?
Does it contain the class
org.apache.xml.resolver.tools.CatalogResolver?
<target name="html.tm" depends="init, html.titlepage">
<java classname="${xslt.processor.class}" fork="yes" failonerror="true">
<classpath refid="xslt.processor.classpath" />
<jvmarg
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<jvmarg
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<jvmarg
value="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"/>
<arg line="-x ${resolving.reader.class}"/>
<arg line="-y ${resolving.reader.class}"/>
<arg line="-r ${catalog.resolver.class}"/>
<arg line="-u"/>
<arg line="${source.dir}/tm/book.xml"/>
<arg line="${xslHtmlTm}" />
<arg line="base.dir=${build.dir}/" />
</java>
</target>
For comparison
<target name="docbook" depends="init">
<java classname="${xslt.processor.class}"
fork="yes"
dir="${in.dir}"
failonerror="true">
<classpath refid="xslt.processor.classpath" />
<arg line="-o ${out.dir}/${main.outfile}"/>
<arg line="-l"/>
<arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
<arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
<arg line="-r org.apache.xml.resolver.tools.CatalogResolver "/>
<arg line="${in.dir}/${main.infile} ${main.stylesheet}
${param.args.post}" />
</java>
</target>
with
<path id="xslt.processor.classpath">
<pathelement path="/myjava/saxon655.jar" /> <!-- Saxon jar -->
<pathelement path="/myjava/resolver.jar"/> <!-- resolver jar -->
<pathelement path="${websiteHome}/extensions/saxon64.jar"/> <!--
docbook extensions -->
<pathelement path="/sgml"/> <!-- for catalogManager.properties -->
</path>
I'm using saxon and xerces for the tranformer and resolver.
HTH
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]