|
Subject: [xsl] Setting values for variable From: "john lee" <excel_man@xxxxxxxxxxx> Date: Thu, 09 Sep 2004 21:03:40 +0000 |
<xsl:variable name="pterm" select="0"/>
<xsl:for-each select="$lstAccount[Account_Type=$grpRecord]">
<xsll:choose>
<xsl:when test="string-length(normalize-space(Payment))!=0">
<xsl:variable name="pterm" select="$pterm + Payment"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="pterm" select="$pterm + 0.02*Balance"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:value-of select="$pterm"/>But this will generate error since pterm is declared more than once. Anybody know what's the other way around this ?
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| AW: AW: AW: AW: AW: [xsl] xhtml out, Dominic Krüger | Thread | Re: [xsl] Setting values for variab, Colin Paul Adams |
| Re: [xsl] xsl grabbing specific dat, tom jones | Date | Re: [xsl] XSLT - Multiple Level Gro, Jeni Tennison |
| Month |