[Home] [By Thread] [By Date] [Recent Entries]
John Cavalieri wrote:
Doesn't the following suffice to achieve the same result? <xsl:template match="/pairs">
<xsl:copy>
<xsl:for-each select="*[position() mod 2 = 1]">
<pair>
<xsl:copy-of select="."/>
<xsl:copy-of select="following-sibling::*[1]"/>
</pair>
</xsl:for-each>
</xsl:copy>
</xsl:template>-- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



