Subject: Re: get the max-value
From: Antonio Fiol <fiol@xxxxxxxxxx>
Date: Thu, 13 Jun 2002 10:59:45 +0200
|
//Data/Characteristic/Value[not(number(following-sibling::Value) >
number(.)]
Or maybe even without the number()...
Antonio
Pfitzner, Jan wrote:
Hi,
I want to get the maximum value in my xml-file.
xml:
<Data>
<Characteristic>
<Value>9879</Value>
<Value>93425</Value>
<Value>23465</Value>
<Value>234</Value>
<Value>1235</Value>
<Value>96569</Value>
...
</Characteristic>
<Characteristic>
<Value>1239</Value>
...
</Characteristic>
...
</Data>
I tried it with xsl:for-each and xsl:sort, but I didn't managed.
Thanks
JP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|