|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Trying to use the SUM function on an attribute
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@xxxxxxxxx
New Email Address: peter@xxxxxxxxxxxx
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
|
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








