Subject: Re: [xsl] multiple passes for one stylsheet From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 17 Dec 2010 12:33:06 +0100 |
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 intovariables.
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] multiple passes for one styls, Szabo, Patrick \(LNG | Thread | [xsl] XSLT 3.0, Andrew Welch |
[xsl] multiple passes for one styls, Szabo, Patrick \(LNG | Date | Re: [xsl] Controlling namespace in , Martin Honnen |
Month |