[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: 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)
xsl max
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.