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

Need help with parameters and Indexes

Subject: Need help with parameters and Indexes
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Tue, 27 Feb 2001 14:11:18 -0000
daniel newman
OK, finally getting the hang of this now, but getting some funny results,
and can't find a reason for them.

In my code you'll notice I pass the parameter $count. Now this is either 1
or 2. When I run this transformation, I always get the result of
ANNUALFORECAST[1]/ESTIMATEDATA, even though when I print the value of $count
on the page, the first time it's 1, and the second time it's 2. Also, if I
manually ask for ANNUALFORECAST[2]/ESTIMATEDATA, I get it. So, why aren't
the indexes responding to the value I'm asking for? Do you have to change
the data type of $count or something?

Hope you can help (again)...

Daniel Newman.

<xsl:template name="IndividualRows">
 <xsl:param name="count" />
 <tr>
  <td align="left" valign="center">
   <b><font face="Arial" size="2" color="cc3300"><xsl:value-of
select="BROKER/BROKERNAME" /></font></b>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><xsl:value-of select="REC/RECABBREV"
/></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B>-</B></font>
  </td>
  <td align="center" nowrap="true">
   <font size="2" Face="Arial"><B><xsl:value-of select="FORECASTDATE"
/></B></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B><xsl:value-of
select="ANNUALFORECAST[$count]/ESTIMATEDATA/SALES" /></B></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B><xsl:value-of
select="ANNUALFORECAST[$count]/ESTIMATEDATA/PROFIT" /></B></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B><xsl:value-of
select="ANNUALFORECAST[$count]/ESTIMATEDATA/EPS" /></B></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B><xsl:value-of
select="ANNUALFORECAST[$count]/ESTIMATEDATA/CFPS" /></B></font>
  </td>
  <td align="center">
   <font size="2" Face="Arial"><B><xsl:value-of
select="ANNUALFORECAST[$count]/ESTIMATEDATA/DPS" /></B></font>
  </td>
 </tr>
</xsl:template>


 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.