This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

JAXP/TrAX: how to set parser for transforms?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]