[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: identify lowest value within a range of elements

Subject: RE: identify lowest value within a range of elements
From: "Kevin Bird \(Matrix\)" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 May 2006 13:54:16 +0100
price position matrix
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.