[Yanel-dev] [FYI] SAXTransformerFactory#newTransformerHandler
returning null
Guillaume Déflache
guillaume.deflache at wyona.com
Mon Apr 19 17:01:36 CEST 2010
Hi!
When using XSLT via the JAXP API, you may use the
SAXTransformerFactory#newTransformerHandler(Source) method
(<http://java.sun.com/javase/6/docs/api/javax/xml/transform/sax/SAXTransformerFactory.html#newTransformerHandler(javax.xml.transform.Source)>).
Please be aware than with Xalan (2.7.1 at least) this method may only
return null if your XSLT is incorrect for some reason (in our case this
was a namespace used in XPath that never got declared), instead of
complaining loudly, which can be extremly confusing.
HTH,
Guillaume
More information about the Yanel-development
mailing list