Hi Craig,

this command line doesn't work on my system too.

But this works:
java \
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
\
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
\
-jar saxon-6.5.5.jar  \
-o myfile.html myfile.xml  docbook-xsl/html/docbook.xsl

But I use Xerces 2.9.0, Java 1.6_03 on Windows XP.

In batch files or shell scripts I prefer the "-jar" method to start a
saxon XSLT transformation.

Regards

Stefan

Craig White schrieb:
> trying to add Xerces to the mix and am getting error...
>
> # echo $CLASSPATH
> :/var/www/html/docbook-xsl/extensions/saxon65.jar:\
> /var/www/html/docbook-xsl/extentions/xalan27.jar:\
> /var/www/html/saxon/saxon.jar:\
> /var/www/html/saxon/xercesImpl.jar
> (these are all valid paths)
>
> # java \
>>   -Djavax.xml.parsers.DocumentBuilderFactory=\
>>      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
>>   -Djavax.xml.parsers.SAXParserFactory=\
>>      org.apache.xerces.jaxp.SAXParserFactoryImpl \
>>   com.icl.saxon.StyleSheet -t \
>>   -o myfile.html \
>>   /var/www/html/books/content/books/xml/qm_manual/en/index.xml \
>>   /var/www/html/docbook-xsl/html/docbook.xsl
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> (bulk of example taken from page 21 of Bob's 4th Ed Docbook XSL with
> obvious substitution of input file but error occurs regardless)
>
> xercesImp.jar taken from downloaded binary
> file...Xerces-J-bin.2.9.1.tar.gz and obviously put into folder with
> saxon stuff...
>
> Did I do something wrong?
>
> Craig
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to