No, StAXResult isn't currently recognized. I'm not sure why: Saxon goes to great lengths to recognize StAXSource, despite the complications of needing to work on both JDK 1.5 and JDK 1.6. I think it's simply because no-one has asked for it. Plus the fact that when people want a push API, they generally use SAX, despite the fact that in many ways XMLStreamWriter is a nicer design. (I'm not sure about XMLEventWriter, though).



Does Saxon-HE not support StAX?? Isn't that an API violation? According to the StAXResult Javadoc:

StAXResult can be used in all cases that accept a Result, e.g. Transformer, Validator which accept Result as input.


The JDK 1.6 specification has no right to impose obligations or make assertions regarding non-JDK code that was written before the API was published. It's speaking only for its own implementations of Transformer and Validator.

Michael Kay
Saxonica