|
-
Feb 27th, 2003, 07:55 AM
#1
Thread Starter
Addicted Member
XML question - urgent
Hi,
I am trying to write an XSL stylesheet that will produce a summary of some input XML data. I have the code as below: -
Code:
<xsl:for-each select="whatever"...>
<xsl:choose>
<xsl:when test="whatever">
'add current node value to running total
</xsl:when>
</xsl:choose>
</xsl:for-each>
So I want to loop a load of nodes, and keep a running total - I don't know how to do this..... does anybody? After the code above I will need to place the value in a summary block. Would I use a variable? If so, how?
Please please help!!!
DJ
-
Mar 3rd, 2003, 04:15 AM
#2
As far as I know variables can only be set once.
Code:
<xsl:value-of select = "sum(//nodeset)" />
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|