This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Trying to use the SUM function on an attribute


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]