RE: Cascading ( Or processing twice?) how to apply-templates to r esults

Subject: RE: Cascading ( Or processing twice?) how to apply-templates to r esults
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 25 Apr 2000 10:05:21 +0100
> I'm wondering what to call to get two transformations applied 
> to one XML document, one after the other.

As Paul T pointed out, there are two solutions:
a) the node-set() extension function
b) stylesheet chaining

Solution (b) doesn't require serialization and reparsing of the intermediate
XML document, as Paul's solution of an OS pipe would suggest; it can usually
be done by passing the tree directly, either as an in-memory tree or as a
SAX event stream. Saxon has an extension to make the latter approach easy,
just write

<saxon:output next-in-chain="phase2.xsl">

in the first stylesheet, to direct its output to a second stylesheet. With
other products you can achieve the same effect through the product's API.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread