[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: Paul Tchistopolskii <paul@xxxxxxx>
Date: Mon, 24 Apr 2000 00:31:38 -0700
apply templates twice
> The thing is, that after apply-templates has dealt with my nodes, they
> are part of the result tree, and will not be parsed again. Is there an
> XSLT invocation to re-interpret the results?
> 
> 
> XML -> XML -> HTML
>     ^      ^
>     |      |
>    XSLa    XSLb
> 
> 

1. Accumulate result of the transformation (a) into the variable
( result tree fragment ):

<xsl:variable name="result">
your transformation (a) here.
</xsl:variable>

2. Use XSLT-engine-specific-not-portable to-node-set()  
hack/typecast ( turn result tree fragment into node-set ).

3. Apply transformation (b) to node-set which is 
produced on step 2.

Or just use plain OS pipe ( 2 stylesheets e t.c. - could be 
even faster ;-)

Rgds.Paul.



 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.