Subject: Re: [xsl] identify lowest value within a range of elements From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 26 May 2006 12:04:37 +0100 |
something like <xsl:template match="price"> <xsl:param name="range" select="../price"/> <xsl:param name="rangename" select="'default'"/> <xsl:copy> <xsl:if test="empty($range[number(.) < number(current())])"> <xsl:attribute name="lowest" select="$rangename"/> </xsl:if> <xsl:copy-of select="node()"/> </xsl:copy> </xsl:template> and <xsl:apply-templates select="price"> <xsl:with-param name="rangename" select="'range1'"/> <xsl:with-param name="range" select="price[position[< 5]"/> </xsl:apply-templates> ________________________________________________________________________ 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] identify lowest value within , Kevin Bird | Thread | Re: [xsl] identify lowest value wit, David Carlisle |
[xsl] identify lowest value within , Kevin Bird | Date | Re: [xsl] identify lowest value wit, David Carlisle |
Month |