This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]