This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Trying to use the SUM function on an attribute
- To: XSL <XSL-List at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Trying to use the SUM function on an attribute
- From: desimonp at iname dot com
- Date: Fri, 26 Jan 2001 17:05:48 -0500 (EST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
When I try to run this line in IE 5.5, I get an error "unknown method" -->sum(/<--/@attr1)
What does that mean?
Peter
--- Michael Kay <mhkay@iclway.co.uk> wrote:
> > 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.
> >
>
> var totalVal =
> xmlToSum.selectSingleNode("sum(//@attr1)")
>
> Mike Kay
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
++++++++++++++++++++++++++++++++++++++++++++++
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