Subject: RE: Remove duplicates from a list From: Kay Michael <Michael.Kay@xxxxxxx> Date: Thu, 28 Oct 1999 10:32:08 +0100 |
> On Wed, 27 Oct 1999, Minita Jha wrote: > > Duplicate values of state should not be printed. > > Can this be done? > Clark C. Evans [mailto:clark.evans@xxxxxxxxxxxxxxxxxxxx] responded: > > <xsl:variable name="unique-list" > select="//state[not(.=following::state)]" /> > > <xsl:for-each select="$unique-list"> > <xsl:value-of select="." /> > </xsl:for-each> > That was too easy. Now give us an answer that has n*log(n) performance. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Remove duplicates from a list, Francis Norton | Thread | Re: Remove duplicates from a list, David Carlisle |
A theory problem, Kay Michael | Date | RE: Apply XSL on HTML/MathML ?, Kay Michael |
Month |