This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Node with maximum attribute value



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]