[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|