[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Node with maximum attribute value


Subject: Re: Node with maximum attribute value
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Feb 2000 18:05:26 GMT

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



Current Thread