This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Docbook stylesheets with Saxon
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Docbook stylesheets with Saxon
- From: Dave Pawson <daveP at dpawson dot freeserve dot co dot uk>
- Date: Thu, 16 Nov 2000 19:43:04 +0000
- References: <4.3.1.2.20001115194509.00b89e70@127.0.0.1>
At 05:03 PM 11/16/00, Norman Walsh wrote:
>/ Dave Pawson <daveP@dpawson.freeserve.co.uk> was heard to say:
>| Has anyone combined using Norm's catalog java 'stuff' with
>| Saxon (or anything else other than XT?)
>|
>| If its not possible, does anyone know how these two beasts might
>| be combined?
>
>Try this:
>
>Saxon has a ParserManager.properties file. In that file, change the
>defaultParser line to read:
>
>
>defaultParser=arbortext
>
>and add
>
>arbortext=com.arbortext.xsl.sax.Driver
Yep. Tried that :-)
Cmd now reads:
java -classpath /myjava/cat/catalog.jar;/myjava/cat/catalog-apps.jar;/myjava/saxon/saxon.jar;/myjava/sax.jar;/myjava/xp.jar;/myjava/xt.jar;/myjava/saxon/ -Dxml.catalog.files=/sgml/catalogx -Dxml.catalog.debug=3 com.icl.saxon.StyleSheet -o op.xml file.xml stylesheet.xsl
Mike Kay's documentation says, to get hold of ParserManager.properties
it must be in the classpath.
Being different to jar files, I just tacked it on to the end of the -cp
option as above. Unsure if this is right.
I'm now getting following errors.
Only other change I made was to add arbortext to the list 'parserPath'
Error received is:
Failed to compile style sheet
Class com.arbortext.xsl.sax.Driver is neither a SAX1 Parser nor a SAX2 XMLReader
Is it Norm? Or is my java not even up to running this!
Regards DaveP