Subject: Re: [xsl] Is xsl:for-each "syntactic sugar"? From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 07 May 2010 13:46:39 +0100 |
As you said, many XSLT programming situations could be equivanetly handled by for-each& apply-templates.
.. <xsl:variable name="a">...</xsl:variable> .. <xsl:variable name="z">...</xsl:variable> ... <xsl:for-each select="foo"> body </xsl:for-each>
. <xsl:variable name="a">...</xsl:variable> .. <xsl:variable name="z">...</xsl:variable> ... <xsl:apply-templates select="foo" mode="unique-d"> <xsl:with-param name="a" select="$a"/> <xsl:with-param name="z" select="$z"/> </xsl:apply-templates>
<xsl:template match="/|node()" mode="unique-id"> <xsl:param name="a"/> <xsl:param name="z"/> body </xsl:template>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is xsl:for-each "syntacti, Mukul Gandhi | Thread | Re: [xsl] Is xsl:for-each "syntacti, Florent Georges |
Re: [xsl] Is xsl:for-each "syntacti, Mukul Gandhi | Date | Re: [xsl] Is xsl:for-each "syntacti, Florent Georges |
Month |