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()< 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
|