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]
Other format: [Raw text]

RE: mystery #1: document() without validation


> Can I force Xalan's implementation of document() to instance a
> /non-validating/ parser?
>
Xalan supports the JAXP interface. It will probably load whatever parser is
identified by the javax.xml.parsers.SAXParser system property.

If you want to be more specific, you can write a URIResolver, which will be
called to process the URI passed to the document() function. Your
URIResolver can return a SAXSource object which contains a parser; the XSLT
processor will use this parser to process the supplied document. This allows
you to pre-configure the parser with the options you want, for example
switching validation on or off, and your code should work with any
JAXP-conformant XSLT processor.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com


 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]