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

RE: [xsl] getting the max value in xslt

Subject: RE: [xsl] getting the max value in xslt
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Thu, 8 Jan 2004 09:15:03 -0000

> I'm using XSLT 1.0 and Saxon stylesheet processor.
> Is there a function in XSLT to get the the max value of lots 
> of values? (like the max-function in SQL)
> Or how do i solve this functionality?

You can use the saxon extension function max(), or the xslt 1.0 way is
to select all of the items you want to max, sort the list and then pick
the last one.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread