[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: [XSL] xi:include coded in XSL

Subject: Re: Re: [XSL] xi:include coded in XSL
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Tue, 01 Apr 2008 14:02:35 -0500
Re:  Re: [XSL] xi:include coded in XSL
Alain wrote:

So if I understand your instructions correctly:
- install the Java JRE (obviously for SaxonJ under linux)

Yes. You may need to first remove the non-Sun JRE that is installed with some Linux distributions (e.g., Ubuntu). I just did this the other day and Sun's instructions for installing under Ubuntu were pretty clear.


You'll need a JDK to compile the class and package it into a Jar. If you're new to Java I'd recommend installing Eclipse (www.eclipse.org) and follow the tutorial for creating a simple Java project.

- install Xerces

Yes--this is the Apache XercesJ package. You need the xercesImpl and xml-api jars.


- if Saxon still complains about using gnu.XML.SAXParser (I didn't try under Mandriva), use the class you mention.

Yes.


As I'm a total newbie about Java (and at the moment not a lot of time to learn about it), is the package you mention (org.fasb.xerces) already part of Xerces and I just add -x SchemaValidatingCatalogResolvingXMLReader to Saxon,
or do I have to type somewhere the classes you give as examples?

org.fasb.xerces is a private package (I should have corrected that before I posted but I missed that bit).


You'll want to put the class in a package of your naming, e.g. fr.free.xerces or whatever makes sense for you. The "xerces" in this case is just my convention to indicate that this class is related to Xerces.

Assuming you've worked out how to compile the class into a jar (e.g., my-parser.jar) and they're all in the directory where you're running the command, you would use it with Saxon like so:

java -cp my-parser.jar:saxon9.jar:saxon9-dom.jar net.sf.saxon.Transform -x:fr.free.xerces.SchemaValidatingCatalogResolvingXMLReader {other saxon arguments}

Cheers,

Eliot


-- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.