xsl-list
[Top] [All Lists]

Re: Comparing element values

2004-10-04 06:25:19

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


<Prev in Thread] Current Thread [Next in Thread>