|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Sum() function
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








