|
[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
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
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






