This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Trying to use the SUM function on an attribute
- To: XSL <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Trying to use the SUM function on an attribute
- From: desimonp at iname dot com
- Date: Thu, 25 Jan 2001 08:43:45 -0500 (EST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
I have the following xml:
<sub-root>
<Row attr1="10.00" attr2="Val1" />
<Row attr1="20.00" attr2="Val2" />
<Row attr1="30.00" attr2="Val3" />
</sub-root>
I would like to do the following in JScript:
var totalVal = xmlToSum.selectSingleNode("sum(///@attr1")
But when I try to open this page, I get an error "Expected Identifier".
What would be the proper syntax.
Peter
++++++++++++++++++++++++++++++++++++++++++++++
Peter DeSimone
Email Address: desimonp@iname.com
New Email Address: peter@desimone.com
Web Address: Http://www.bigfoot.com/~desimonp
New Web Address: http://www.peter.desimone.com
ICQ: 20177836
AOL Instant Messenger: Peterdesi1
++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------
Get free personalized email at http://www.iname.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list