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

JAXP/TrAX: how to set parser for transforms?

Subject: JAXP/TrAX: how to set parser for transforms?
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 24 Apr 2001 20:28:06 -0600 (MDT)
trax parser
I'm new to JAXP/TrAX, so forgive me if this a stupid question.

I've looked through the JAXP spec and the TraxExamples that come with 
SAXON, and still can't figure this out.

How does a Transformer know what XML parser to use?

I can see that it is somewhat insulated from the parser by the Source
interface, but for example, when I construct a StreamSource from a File,
and pass this to the Transformer.transform(), at some point an XML parser
is going to be invoked... So how do I establish which parser to use?

I also see that there is a URIResolver interface that affects document() 
and xsl:include ... but I didn't see any answers in there, either.

If I want all the XML parsing to be done with a certain parser, what do I 
do?

What if I want the parser for the main source document to be different
than the one used by document() and xsl:include?

Thanks in advance.

   - Mike
_____________________________________________________________________________
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal: http://hyperreal.org/~mike/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2013 All Rights Reserved.