Re: [xsl] Removing Duplicates & Formatting

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/>


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:

 XSL-List info and archive:

Current Thread