This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Catalog resolver and xincludes
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Togan Muftuoglu" <toganm at users dot sourceforge dot net>,"Docbook-apps" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 29 Jan 2004 16:25:07 -0800
- Subject: Re: [docbook-apps] Catalog resolver and xincludes
- References: <20040129180321.GD25853@dinamizm.com>
I'm able to get both the resolver and the XIncludes to work with Saxon.
Here is the command line:
java \
-cp
"/xml/saxon653/saxon.jar;/xml/xerces-2_5_0/xercesImpl.jar;../docbook-xsl-1.6
2.4/extensions/saxon651.jar;/xml/saxon653/saxon-fop.jar;./resolver.jar;." \
-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 \
com.icl.saxon.StyleSheet \
-o xinclude.saxon.html \
-x org.apache.xml.resolver.tools.ResolvingXMLReader \
-y org.apache.xml.resolver.tools.ResolvingXMLReader \
-r org.apache.xml.resolver.tools.CatalogResolver \
xinclude.xml \
../docbook-xsl-1.62.4/html/docbook.xsl
It is big and ugly, but it does work. I'm using Java 1.4.2_03.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
----- Original Message -----
From: "Togan Muftuoglu" <toganm@users.sourceforge.net>
To: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Thursday, January 29, 2004 10:03 AM
Subject: [docbook-apps] Catalog resolver and xincludes
>
> Hi,
>
> I am trying to get saxon work with XIncludes along with the apache
> resolver.
>
> I have read the
> http://www.sagehill.net/docbookxsl/Xinclude.html#JavaXIncludes portion
> and the only thing missing is use of the apache resolver, when I include
> classpath for the resolver [1] I get :-(
>
> Transformation failed: Failed to load
> org.apache.xml.resolver.tools.CatalogResolver
>
> if I do not use the following then resolver works
>
> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=\
> org.apache.xerces.parsers.XIncludeParserConfiguration
>
> What am I missing
>
> [1]http://www.sagehill.net/docbookxsl/UseCatalog.html#UsingCatalogsSaxon
>
> --
>
> Togan Muftuoglu
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.