Re: [xsl] Comparing element values

Subject: Re: [xsl] Comparing element values
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 4 Oct 2004 14:25:19 +0100
<xsl:template match="price">
  <xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="price[position()=4]">
  <xsl:copy-of select="self::*[. &gt;= preceding-sibling::price[1]]"/>
</xsl:template>

<xsl:template match="price[position()=3]">
  <xsl:copy-of select="self::*[. &gt; following-sibling::price[1]]"/>
</xsl:template>

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

Current Thread