OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] CLASSPATH and Saxon


Hi,
Yes, my book is out of date when it mentions Saxon 8, since Saxon 9 is the current 
release. That will get fixed in the next edition.

Keep in mind that Saxon 9 is an XSLT 2.0 processor, while the DocBook XSL stylesheets 
in general distribution are written for XSLT 1.0.  Although they may work in Saxon 9 
in backwards compatibility mode, you may experience some problems. I don't write about 
using Saxon 9 in my book because I'm not  willing to support using it with the current 
stylesheets.  8^)

There is a new version of the DocBook stylesheets under development in XSLT 2.0. 
However, those are a complete rewrite by Norm Walsh, and my current book won't be very 
useful for using them.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "SriKrishnan" <srikrishnan@techset.co.uk>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, November 09, 2010 2:00 AM
Subject: RE: [docbook-apps] CLASSPATH and Saxon


> Hi Tony,
>
> Thanks for your suggestion.
>
> Yes I came to knew that from "Saxonica" website. I think "DocBook XSL: The
> Complete Guide Fourth Edition" has outdated information in this regard.
>
> But still sample syntaxes mentioned in the
> "http://www.saxonica.com/documentation/about/gettingstarted/gettingstarteddo
> tnet.xml" are not working properly in my case:
>
> java -cp saxon9he.jar net.sf.saxon.Transform -t -s:samples/data/books.xml
> -xsl:samples/styles/books.xsl -o:c:/temp.html
>
> The above syntax not working, whereas if I modified something like below it
> works:
>
> java net.sf.saxon.Transform -t -s:C:/saxonhe9-2-1-5j/samples/data/books.xml
> -xsl:C:/saxonhe9-2-1-5j/samples/styles/books.xsl -o:c:/temp.html
>
> Original first syntax gives error as follows:
>
> C:\Documents and Settings\007.TECHSETINDIA.000>java -cp saxon9he.jar
> net.sf.saxon.Transform -t -s:samples/data/books.xml
> -xsl:samples/styles/books.xsl -o:c:/temp.html
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/sf/saxon/Transform
> Caused by: java.lang.ClassNotFoundException: net.sf.saxon.Transform
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: net.sf.saxon.Transform.  Program will exit.
>
> Whereas modified second syntax works correctly. Can anyone help me why "-cp"
> is not working as expected in "windows XP"?
>
> Thanks,
> Srikrishnan
>
> -----Original Message-----
> From: Tony Graham [mailto:Tony.Graham@MenteithConsulting.com]
> Sent: Tuesday, November 09, 2010 3:22 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: Re: [docbook-apps] CLASSPATH and Saxon
>
> On Tue, November 9, 2010 5:53 am, SriKrishnan wrote:
> ...
>> In my Environmental variable for CLASSPATH has been as follows:
>>
>> .;C:\Program
>>
> Files\Java\jre6\lib\ext\QTJava.zip;C:\saxonhe9-2-1-5j\saxon9he.jar;C:\docboo
>>
> k-xsl-1.76.1-RC2\extensions\saxon65.jar;C:\xml-commons-resolver-1.2\resolver
>> .jar;L:/catalog.xml;C:\fop-1.0\;
>>
>> But when I open command prompt and typed the error message appears as
>> below:
> ...
>>
>> C:\Documents and Settings\007.TECHSETINDIA.000>java
>> com.icl.saxon.StyleSheet
>> -t
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> com/icl/saxon/StyleSheet
>
> You have a mismatch between the Saxon version that you say you want to use
> and the Saxon version that you are using.
>
> Saxon 9 uses package names that begin 'net.sf.saxon' and, AFAICT, doesn't
> have a 'StyleSheet' class.  In fact, Saxon package names haven't begun
> with 'com.icl.saxon' for many years.
>
> It may be that you want the old Saxon 6.5 version, not the newer Saxon 9.
>
> Regards,
>
>
> Tony Graham                         Tony.Graham@MenteithConsulting.com
> Director                                  W3C XSL FO SG Invited Expert
> Menteith Consulting Ltd                               XML Guild member
> XML, XSL and XSLT consulting, programming and training
> Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
> Registered in Ireland - No. 428599   http://www.menteithconsulting.com
>  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
> xmlroff XSL Formatter                               http://xmlroff.org
> xslide Emacs mode                  http://www.menteith.com/wiki/xslide
> Unicode: A Primer                               urn:isbn:0-7645-4625-2
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]