Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 1st, 2008, 10:55 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saxon Parser

Hi

Please can any one tall me how to use the Saxon Parser

These are the steps i have fallowd :

I have downloaded the saxon jar files and updated the classpath with this jar files
When i run the developed XSLT using below command am getting error

java com.icl.saxon.StyleSheet input.xml fixedlength.xsl >output.html

Exception in thread "main" java.lang.NoClassDefFoundError: com/icl/saxon/StyleSheet

Could please help me

Reply With Quote
  #2 (permalink)  
Old February 1st, 2008, 11:08 AM
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Which version of Saxon are you trying to use and which version have you downloaded?
Your command line seems to try to use Saxon 6. The latest version however is Saxon 9 which implements XSLT/XPath 2.0 and needs a different command line, either
  java net.sf.saxon.Transform -s:source -xsl:stylesheet -o:output
or
  java -jar dir/saxon9.jar [options] [params]

Reply With Quote
  #3 (permalink)  
Old February 1st, 2008, 07:05 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This message could mean two things:

(a) you have put Saxon 9.x on the classpath rather than Saxon 6.x - the command you are using is the one for Saxon 6.x

(b) you haven't set up the classpath correctly. It can be a bit difficult to diagnose this remotely because there are so many ways of getting it wrong. The best way is to describe exactly where you have installed Saxon, list the contents of the relevant directory, and explain how you set the classpath variable.

Alternatively, if you don't want to bother with the complications of running Java from the command line, why not try the Kernow front-end? You can find it at www.sourceforge.net

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #4 (permalink)  
Old February 5th, 2008, 03:09 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Michael,

Thanks for this, its working fine

But when i downloaded the Saxon parser it got downloaded the 13 jar files

Is all jar files are required for using the XSLT2.0 functionality?

Could you please tell me which all are the required mandatory Saxon jar files to use XSLT2.0 instead of setting the 13 jar files in class path?



Reply With Quote
  #5 (permalink)  
Old February 5th, 2008, 12:20 PM
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

If you want to run XSLT from the command line then you can use
  java -jar dir/saxon9.jar [options] [params]
so for that approach only saxon9.jar is needed.


Reply With Quote
  #6 (permalink)  
Old February 8th, 2008, 04:19 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

am not running the XSLT through the command

is the saxon9 is the Beta release or final release?



Reply With Quote
  #7 (permalink)  
Old February 8th, 2008, 05:09 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Its a final release (don't be confused by the Saxon-B - the B doesn't mean 'beta', but 'basic' I believe).

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #8 (permalink)  
Old February 8th, 2008, 06:25 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

is the saxon9 is the Beta release or final release?

Neither. It is just a release. I don't produce beta releases. If I get run over by a bus it might turn out to be a final release, but that's not the plan.

Michael Kay

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saxon 9.0 question ojasrege XSLT 1 November 27th, 2007 06:32 PM
error on saxon 8.8 rjonk XSLT 1 October 24th, 2006 09:03 AM
SAXON Ques dev.user06 XSLT 4 July 26th, 2006 10:44 AM
saxon + eclipse integration dextermagnific XSLT 3 July 12th, 2006 11:18 PM
Saxon variable go4java XSLT 1 July 6th, 2006 10:12 AM



All times are GMT -4. The time now is 02:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.