[xsl] need help with MAX and MIN functions (if they exist)

Subject: [xsl] need help with MAX and MIN functions (if they exist)
From: Ali Zain Banatwala <azb33@xxxxxxxxx>
Date: Mon, 21 Jul 2003 03:18:20 -0700 (PDT)
Hi everyone,

  thanks for your help earlier, especially Jim and
David for their prompt replies. I have one more
problem to resolve. I'd like to select the max (and
min) closing price for each equity. I've been
searching through the zvon.org xslt reference and i
could'nt find max or min functions. Does anyone know
how to do this?

 thanks......Zain

 
   here is a sample of my XML file....
 
  <Equities-List>
    <Equity name="CP">
      <EquityNode date="2000-01-03" close="9.6">
        <Color hex="246f15">
      </EquityNode>                 
      <EquityNode date="2000-01-04" close="9.7">
        <Color hex="227017">
      </EquityNode>                 
      <EquityNode date="2000-01-05" close="9.9">
        <Color hex="1f731a">
      </EquityNode>                 
    </Equity>
  </Equities-List>
 
 
   and here's my XSLT file....
 
   <xsl:template match="/">
    <html>
     <body>
      <table>
       <xsl:for-each select="//Equity">
        <tr>
         <td> 
           <xsl:value-of select="@name"> 
         </td>
         <td> 
     <!-- would like to show MAX(price) here --></td> 
       </xsl:for-each>
      </table>
     </body>
    </html>
   </xsl:template>
 

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Current Thread