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]

Node with maximum attribute value


I have fairly flat XML Structure:
 
<closing-price date="8/5/1998" mid="203.12" />
<closing-price date="11/5/1998" mid="198.75" />
<closing-price date="12/5/1998" mid="187.5" />
<closing-price date="13/5/1998" mid="194.37" />
 
and I want to find the maximum mid attribute from the node-set.
 
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?
 
 
 
Thanks,
Richard

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