xsl-list
[Top] [All Lists]

Re: [xsl] Assigning serial numbers

2010-04-10 02:20:24
Great Ramesh!! Thanks very very much..

----- Original Message ----- From: "Ramesh, Marimuthu" <M(_dot_)Ramesh(_at_)spi-bpo(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Cc: <siddhi(_dot_)thakkar(_at_)aptaracorp(_dot_)com>
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>




--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>