DeltaXML.com - Change Control For XML, In XML.(spacer) Home    About Us    Contact Us    Search
(spacer)

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

README.txt

This file as ASCII

build.xml

Ant script for compilation, running, tidyup

FiveStages.java

Pipeline source code

in.xml

Example input data

stage1.xsl

Stage 1 XSLT source

stage2.xsl

Stage 2 XSLT source

stage3.xsl

Stage 3 XSLT source

stage4.xsl

Stage 4 XSLT source

stage5.xsl

Stage 5 XSLT source

 (spacer)Copyright © 2000-2005 DeltaXML Ltd, Malvern, UK. All rights reserved.
info@deltaxml.com