Five Stage Example
Introduction
This code demonstrates a five stage pipeline where the middle
stage is triggered with Trasformer.transform()
and with 2 pull-mode stages and 2 push mode stages.
An explicit XMLReader is not used
in the code and the output is configured through the use
of a StreamResult parameter.
The exmaple is rather artificial in that each stage of the pipeline
will add a paragraph (<p>) to the input data, but it does simply
demonstrate the application of the various stages.
Compile and Run
Please use the provided Ant script, or for Windows
Systems with J2SE 1.4.x, use the following commands:
Compile:
javac FiveStages.java
Run:
java -cp ../saxon.jar;. FiveStages in.xml out.xml
Manifest
|