xsl-list
[Top] [All Lists]

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

2010-02-11 00:48:34
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





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--