Re: [xsl] Assigning serial numbers

Subject: Re: [xsl] Assigning serial numbers
From: "Siddhi Thakkar" <siddhi.thakkar@xxxxxxxxxxxxxx>
Date: Sat, 10 Apr 2010 12:46:34 +0530
Great Ramesh!! Thanks very very much..

----- Original Message ----- From: "Ramesh, Marimuthu" <M.Ramesh@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Cc: <siddhi.thakkar@xxxxxxxxxxxxxx>
Sent: Saturday, April 10, 2010 12:39 PM
Subject: RE: [xsl] Assigning serial numbers



Try the below:


<xsl:template match="/">
<table>
<xsl:variable name="serial">
<xsl:for-each select="//a/@href">
<xsl:if test="not(for $x in //@id return
$x[$x=current()])">
<xsl:copy-of select="ancestor::a[1]"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>


Current Thread