[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: get the max-value
Pfitzner, Jan wrote: > 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. It should have worked. The Math section of the XSL FAQ at http://www.dpawson.co.uk/xsl/sect2/N5121.html has several examples of finding maximum and minumum values in a node-set, along with discussion of performance issues. Questions 9, 12 and 20 are of particular interest. - Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|