Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#831 SAX startDocument() called twice from XMLFilter

v9.0
closed
Michael Kay
5
2012-10-08
2008-06-06
Michael Kay
No

When an XSLT transformation is run in the form of a JAXP XMLFilter (using TransformerFactory.newXMLFilter()), and the result is a SAXResult, the startDocument() method of the supplied ContentHandler is called twice. This may cause some ContentHandlers to malfunction; for example, it breaks Apache FOP.

A patch (to net.sf.saxon.Filter) is being placed in Subversion. Test case added: TransformChainTest.

Discussion

  • Michael Kay
    Michael Kay
    2008-07-03

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.1.0.1 and in 9.0.0.7 (which is SA-only)