This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: grouping problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] grouping problem
- From: "Corey Spitzer" <cspitzer at cisco dot com>
- Date: Thu, 20 Sep 2001 09:38:35 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
assuming your input cid's are in alphabetic or numeric order... this should
work:
<xsl:for-each select="//concept[not(following::concept[1]/@cid=@cid)]">
<xsl:value-of select="@cid"/>
</xsl:for-each>
I would expect what you have already would work, but I think this is a
little bit more definite.. I don't know, but it's worth a try.
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of thomas george
Sent: Thursday, September 20, 2001 9:11 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] grouping problem
Hi Folks,
I am just trying to get the unique values
of an attribute and just not getting it. I had
succcess in getting the unique values for elements
with the same expression.Am i missing something or is
there a different way to get the unique values for
attributes
<xsl:for-each select="//conept/@cid[not(. =
following::concept/@cid)]">
<xsl:value-of select="."/>
</xsl:for-each>
The above statement doesnot give me the unique values
of the @cid attribute.
Thanks
Thomas
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list