[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: Cascading ( Or processing twice?) how to apply-templates to results
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 25 Apr 2000 10:05:21 +0100
applying templates on intermediate trees
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.