This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Avoiding duplicates in the node selection


Warren Hedley wrote:

> Short answer (not tested):

<xsl:for-each select="//Keywords/*[not(name() = name(following::*))]" />



I would add:

For this to be more generic, sort it by name() using the <xsl:sort> command
within your <xsl:for-each> loop.


Ben


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]