Re: [xsl] runaway template application

Subject: Re: [xsl] runaway template application
From: "Terence Kearns" <tk.lists@xxxxxxxxxxx>
Date: Sun, 09 Feb 2003 17:30:43 +1100
<xsl:template match="context[position() mod 3 = 1]" mode="group">
    <td>
        <xsl:apply-templates select="." mode="leaf"/>
        <xsl:apply-templates select="." mode="leaf"/>
        <xsl:apply-templates select="." mode="leaf"/>
    </td>
</xsl:template>

behaves as expected. Why can't this behave in the same way?

<xsl:template match="context[position() mod 3 = 1]" mode="group">
    <td>
        <xsl:apply-templates select="." mode="leaf"/>
        <xsl:variable name="nextNode"
        select="following-sibling::node()"/>
        <xsl:apply-templates select="$nextNode" mode="leaf"/>
        <xsl:apply-templates select="." mode="leaf"/>
    </td>
</xsl:template>
_____________________________
http://terencekearns.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread