xsl-list
[Top] [All Lists]

Re: Calculation of Minimum or Maximum value of an element

2002-11-11 20:51:43
Chitra Lalita Madhwacharyula wrote:
      Can anyone please tell me how to calculate the minimum or
maximum values of a set of nodes and display them using       XSLT ?
      For e.g if I have
      <A>300</A>
      <A>250</A>
      <A>900</A>
      How can I write a template or a function which calculates the
least A element value and displays it ???

This is in the FAQ.
http://www.dpawson.co.uk/xsl/sect2/N5121.html#d4545e199

   - 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



<Prev in Thread] Current Thread [Next in Thread>