Subject: [xsl] round-robin template call From: Aragon Gouveia <aragon@xxxxxxxxxxx> Date: Sun, 05 Apr 2009 18:47:42 +0200 |
<xsl:stylesheet> <xsl:template match="/"> <output> <xsl:call-template name="makenode"/> <tagX>data</tagX> <tagY>data</tagY> <xsl:call-template name="makenode"/> </output> </xsl:template> <xsl:template name="makenode"> <xsl:choose> <xsl:when test="oddcalls()"> <tagA type="odd">data</tagA> </xsl:when> <xsl:when test="evencalls()"> <tagA type="even">data</tagA> </xsl:when> </xsl:choose> </xsl:template> </xsl:stylesheet>
Thanks, Aragon
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem with <xsl:if>, Michael Kay | Thread | Re: [xsl] round-robin template call, G. Ken Holman |
Re: [xsl] parametrized return value, Mukul Gandhi | Date | Re: [xsl] round-robin template call, G. Ken Holman |
Month |