Closed
Bug 67349
Opened 24 years ago
Closed 24 years ago
XPath sum() does not work in transformiix
Categories
(Core :: XSLT, defect)
Tracking
()
People
(Reporter: darkmane, Assigned: keith)
Details
I have not been able to determine if this should or should not work in XSLT.
Sicking helped me develop a template to sum up a series of numbers in XSLT,
however on further exploration there seems to be a sum function in XPath
"Function: number sum(node-set)
The sum function returns the sum, for each node in the argument node-set, of the
result of converting the string-values of the node to a number."
SO I tried to get <xsl:value-of select='sum(elem@value)'/> to work. Both
Sections 3 and 4 of the XSLT spec state that XPath is used, so I think this
should work. But either my syntax is wrong or there is a bug preventing it from
working.
| Assignee | ||
Comment 1•24 years ago
|
||
As with your last bug report you are missing a "/" in your XPath expression.
And I'll make the same comment I made last time. We should report an error in
your XPath expression if we do not already.
Thanks,
--Keith
Comment 2•24 years ago
|
||
So is the underlying problem still a problem here as well?
Comment 3•24 years ago
|
||
this is the same malformed XPath, therefor marking duplicate.
Axel
*** This bug has been marked as a duplicate of 67004 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•