|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: runaway template application
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








