|
[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








