Concatenating Transformations with a Filter Chain
It is sometimes useful to create a filter chain: a concatenation of XSLT transformations in which the output of one transformation becomes the input of the next. This section shows you how to do that.
Writing the Program
Start by writing a program to do the filtering. This example shows the full source code, but to make things easier you can use one of the programs you've been working on as a basis.
Note
The code described here is contained in FilterChain.java.
The sample program includes the import statements that identify the package locations for each class:
import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; ...
Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.