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

Subject: Re: [xsl] conditional increment under XSL for-each loop
From: "anil an.kumar" <anil.an.kumar@xxxxxxxxxx>
Date: Thu, 11 Feb 2010 12:17:38 +0530
Hi,

I don't know how to check the version of XPath/XSLT.

but when i click on like http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl

it is giving below details ,

XSL version: 1
Vendor: Microsoft
Vendor URL: http://www.microsoft.com


Thanks Anil



On 2/10/2010 4:55 PM, Martin Honnen wrote:
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

Current Thread