Subject: Sum() function From: "Callum Elliott" <c.j.elliott-96@xxxxxxxxxxxxxxxxxxx> Date: Wed, 23 Feb 2000 14:49:09 +1100 |
Hi there, I'm trying to sum report totals, but I only want to sum certain attributes. For example My.xml <report> <tranxs> <tranx cccf="N" amt="200"> </tranx> </report> My.xsl <xsl:for-each select="report"> ... <xsl:value-of select="sum(tranxs/tranx[@cccf = 'N']/@amt)"/> I know the above line is wrong, but I don't know how to fix it. I want it to sum depending on the cccf attribute value. Thanks in advance, Callum Elliott XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
xalan 0.19 Why am I getting alot of, Linda Derezinski | Thread | Re: Sum() function, Steve Muench |
Re: Can XSLT take datasource other , Paul Tchistopolskii | Date | Re: Sum() function, Steve Muench |
Month |