According to the Javadoc for SAXSource, the Transformer and the SAXTransformerFactory creates a reader via XMLReaderFactory, which in turn uses the value of the property 'org.xml.sax.driver'. Due to caching on thread locals, the transformer API sometimes ignores the value of this property and uses an instance of XMLReader of a different type. Unit test added to JAXP RI workspace.
|