Subject: Re: Remove duplicates from a list From: "Clark C. Evans" <clark.evans@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 27 Oct 1999 18:24:00 -0400 (EDT) |
<xsl:variable name="unique-list" select="//state[not(.=following::state)]" /> <xsl:for-each select="$unique-list"> <xsl:value-of select="." /> </xsl:for-each> On Wed, 27 Oct 1999, Minita Jha wrote: > <location> > <state>xxxx</state> > </location> > > <location> > <state>yyyy</state> > </location> > > <location> > <state>xxxx</state> > </location> > > The desired output is: > > xxxx > yyyy > > That is, duplicate values of state should not be printed. > Can this be done? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Remove duplicates from a list, Minita Jha | Thread | Re: Remove duplicates from a list, Tim Taylor |
Remove duplicates from a list, Minita Jha | Date | Re: XML/XSL on the client for dynam, Steve Tinney |
Month |