Subject: [xsl] multiple passes for one stylsheet From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx> Date: Fri, 17 Dec 2010 12:27:16 +0100 |
Hi, 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. 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> Of course there had to be a lot of other templates for each mode but this is the basic structure right ?! Kind regards . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT-Entwickler LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.szabo@xxxxxxxxxxxxx Tel.: +43 (1) 534 52 - 1573 Fax: +43 (1) 534 52 - 146
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Do you use RDF?, Martynas Jusevicius | Thread | Re: [xsl] multiple passes for one s, Martin Honnen |
[xsl] Do you use RDF?, Dave Pawson | Date | Re: [xsl] multiple passes for one s, Martin Honnen |
Month |