RE: [xsl] identify lowest value within a range of elements

Subject: RE: [xsl] identify lowest value within a range of elements
From: "Kevin Bird \(Matrix\)" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 May 2006 13:54:16 +0100
Hi David

Thanks for the reply. 


>    <xsl:template match="price">
>    <xsl:param name="lowest" select="0"/>
>    <xsl:param name="rangename" select="'default'"/>
>    <xsl:copy>
>    <xsl:if test="[$lowest= number(current())])">
>    <xsl:attribute name="lowest" select="$rangename"/>
>    </xsl:if>
>    <xsl:copy-of select="node()"/>
>    </xsl:copy>
>    </xsl:template>
> 
>    <xsl:apply-templates select="price">
>      <xsl:with-param name="rangename" select="'range1'"/>
>      <xsl:with-param name="lowest" 
> select="min(price[position()&lt; 5]/number(.))"/>
>    </xsl:apply-templates>
> 

This is returning the lowest price within each column and I want to return
the lowest price over all columns (within the range). I apologise if my
exaplanation was poor.

Regards.

--
Kevin

Current Thread