LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2003, 06:49 AM   #1
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Rep: Reputation: 0
ePlease help-> XML, XSLT James Clarkes XT software


Im setting up James Clarkes xt software (http://www.blnz.com/xt/index.html) on REDHAT 8 so I can transform xml file using xtsl templates (it's uni work). I know that xt is a java based program and I haven't learned much java but I have successfully installed it (j2sdk-1_4_1_01-linux-i586.bin), and set the path in my .bashrc file to point to the java programs (java javac etc).

However I cant seem to get XT working, It wont run from the xt-20020426a-src/demo directory. My main concerns are A) how to set the java classpath (so I can put xt.jar there) or how to find out where this classpath points to, and b) which is also related to a, what does this following instructions meen (the instructions are from the xt readme notes http://www.blnz.com/xt/xt-20020426a-src/index.html)

ps. i have a perl module XML::SAX installed which I have been using for other similar work.



---- from http://www.blnz.com/xt/xt-20020426a-...tml-----------

o use XT, you need:

the XT distribution
an XML parser in Java that supports SAX 1 API, such as XP (which is, for your convenience, included in the distribution); you should choose a SAX parser that provides Locator information, otherwise you won't get any line numbers in error messages

Put XT.jar in your CLASSPATH, together with whatever is needed for your XML parser and with xml-apis.jar if the SAX API definitions aren't included with your XML parser. Then use the command:


java -Dcom.jclark.xsl.sax.parser=your-sax-driver com.jclark.xsl.sax.Driver source stylesheet [result] [name=value][...]


The name=value arguments are optional and specify parameter names and values; they can occur in any order with respect to the other arguments. They will be ignored unless the stylesheet contains a corresponding top-level xsl: param element. The value of the parameter will be of type string.


To find a SAX parser, XT first uses the value of the system property com.jclark.xsl.sax.parser; if this is not set it uses the value of the system property org.xml.sax.parser; if this is not set it uses the class com.jclark.xml.sax.CommentDriver
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT/xml enforcing full tag syntax bigearsbilly Programming 2 11-23-2005 02:38 AM
Apache James Problem ol1v3r Linux - Software 3 09-07-2005 04:54 AM
James Turner and Dee-Ann LeBlanc Interviewed jeremy LQ Suggestions & Feedback 2 05-19-2005 01:06 PM
Command-line XSLT translator Spudley Programming 3 04-18-2005 03:01 PM
Installing xslt pk21 Linux - Software 0 09-15-2003 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration