This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Node with maximum attribute value
- To: xsl-list at mulberrytech dot com
- Subject: Re: Node with maximum attribute value
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 21 Feb 2000 18:05:26 GMT
- References: <LPBBKKGMPEHFJIDKHOMGKEMHCBAA.rbirkby@thundermain.com>
- Reply-To: xsl-list at mulberrytech dot com
why did you mime encode that?
however...
> My first idea was to use a sorted for-each, and assign a variable to
> the maximum value, however variables cannot be reassigned. Is there
> another way?
use your first idea then use
<xsl:if test="position()=last()">maximum = <xsl:value-of select="@mid"/></xsl:if>
as the template body of the for-each.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list