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

Re: multiple passes for one stylsheet

Subject: Re: multiple passes for one stylsheet
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 17 Dec 2010 12:33:06 +0100
Re:  multiple passes for one stylsheet
Szabo, Patrick (LNG-VIE) wrote:

I'm using XSLT 2.0 and Saxon 9 -EE.

I want to have one Stylesheet do do a few passes. (isntead of using more
than one stylesheet).
From what i read i just have to store the results from each pass into
variables.

Yes, and use modes as you do below.


Am i unterstanding this correctly:

<xsl:template match="/">
	<apply-templates select="$pass5">
</xsl:template>

<xsl:variable name="pass1">
	<apply-templates select="//*" mode="pass1">
</xsl:variable>

<xsl:variable name="pass2">
	<apply-templates select="$pass1/*" mode="pass2">
</xsl:variable>

.
.
.

<xsl:variable name="pass5">
	<apply-templates select="$pass4/*" mode="pass5">
</xsl:variable>


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.