Subject: Re: [xsl] Removing Duplicates & Formatting From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 10 Dec 2003 10:37:58 GMT |
You wouldn't need to remove duplicates if you didn't have duplicates to start with. In this case that means not selecting a child if it's got a younger sibling with the same name, so... <xsl:for-each select="//*[not(*)]"> <xsl:variable name="n" select="name()"/> <xsl:if test="not(preceding-sibling::*[name()=$n])"> <xsl:call-template name="path"/><br/> </xsl:if> </xsl:for-each> -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Removing Duplicates & Formatt, JCS | Thread | Re: [xsl] Removing Duplicates & For, JCS |
AW: [xsl] Antenna House Release Inf, Sebastian Fey | Date | RE: [xsl] Clearing up XSL-speak, Michael Kay |
Month |