|
Subject: [xsl] sum of price * qty, without node-set() From: Charles Gebhard <cgebhard@xxxxxxxxxxxxxxxx> Date: Wed, 28 Jan 2004 19:22:38 -0800 |
<BATCH>
<RECEIPT>
<qtyRcpt>1</qtyRcpt>
<line>
<pr>102.00</pr>
</line>
</RECEIPT>
<RECEIPT>
<qtyRcpt>3</qtyRcpt>
<line>
<pr>20.00</pr>
</line>
</RECEIPT>
</BATCH>i've seen this FAQ: http://www.dpawson.co.uk/xsl/sect2/N5121.html#d5351e202
<xsl:template match="BATCH">
<xsl:variable name="tmpTotal">
<xsl:for-each select="RECEIPT">
<item>
<xsl:value-of select="( qtyRcpt * line/pr )"/>
</item>
</xsl:for-each>
</xsl:variable><xsl:variable name="myTotal" select="exslt:node-set($tmpTotal)"/> <xsl:value-of select="sum($myTotal/item)" /> </xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Antwort: RE: Antwort: [xsl] real XS, manfred . weigel | Thread | Re: [xsl] sum of price * qty, witho, G. Ken Holman |
| Re: [xsl] Empty object, scott gabelhart | Date | Re: [xsl] sum of price * qty, witho, G. Ken Holman |
| Month |