[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] conditional increment under XSL for-each loop


Subject: Re: [xsl] conditional increment under XSL for-each loop
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 10 Feb 2010 12:25:28 +0100

anil an.kumar wrote:

iam using  XSL  version 1,
and  i got the required out put by applying the below logic..

<xsl:for-each select="G_REP_TRX_DETAIL_INFO/C_TAX_REPORTING_NAME">
<mezo eazon="{format-number((position()+1) idiv 2,'000')}X{((position()+1) mod 2) + 1}A">
<xsl:value-of select="."/>
</mezo>
</xsl:for-each>

Interesting, which XSLT 1.0 processor supports the 'idiv' operator? I thought that operator is new in XPath/XSLT 2.0.



--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread
Keywords