Skip to main content

Chaining XSLT transformations with StaX (aka pipelining)

1 reply [Last post]
Joined: 2007-07-04

I spend hours searching google, javadocs and forums to no end.

Several documents mention that similar to SAX, StAX supports chaining XSLT transformations.

Does anybody know how to do that?

Thanks in advance!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-10

If your goal it to chain them to avoid building intermediate trees, then you'd need a streaming XSLT implementation. I'm not aware of any one myself, and even if there is one, if wouldn't handle the complete XSLT language.

If your goal is to write some code that chains XSLT transforms in a readable manner (and not the performance implications of it) have a look at the documentation for XMLFilter and SAXTransformerFactory.newXMLFilter().