Subject: [xsl] Trying to use the SUM function on an attribute From: desimonp@xxxxxxxxx Date: Thu, 25 Jan 2001 08:43:45 -0500 (EST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] lists, DPawson | Thread | RE: [xsl] Trying to use the SUM fun, Michael Kay |
Re: [xsl] dynamic font, Zafer Bayraktar | Date | Re: [xsl] lists, David Carlisle |
Month |