Subject: Need help with parameters and Indexes
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Tue, 27 Feb 2001 14:11:18 -0000
|
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 |
|
Jo Kong HO - Tue, 27 Feb 2001 06:34:57 -0500 (EST)
|
|