Closed
Bug 59937
Opened 25 years ago
Closed 25 years ago
XPath and XSLT function lib incomplete
Categories
(Core :: XSLT, defect, P3)
Core
XSLT
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: axel, Assigned: axel)
Details
Attachments
(3 files)
|
15.68 KB,
patch
|
Details | Diff | Splinter Review | |
|
15.74 KB,
patch
|
Details | Diff | Splinter Review | |
|
16.65 KB,
patch
|
Details | Diff | Splinter Review |
The following functions are not implemented yet:
id()
normalize-space()
sum()
key()
unparsed-entity-uri() // what the heck does this? Example?
element-available()
function-available()
Axel
| Assignee | ||
Comment 1•25 years ago
|
||
I assign this bug to me, at least for now.
I implemented the first three functions, patch will come in a minute.
I have no idea about the others, though. So somebody will have to take over.
Axel
Assignee: kvisco → axel
| Assignee | ||
Comment 2•25 years ago
|
||
| Assignee | ||
Comment 3•25 years ago
|
||
More spam, accepting bug.
Please review this one, I'm not sure I did all the memory issues allright, and
I didn't test the mozilla part. As I don't have a working example for the id()
function :-(
Axel
Status: NEW → ASSIGNED
Keywords: review
| Assignee | ||
Comment 4•25 years ago
|
||
OK,
I have looked thru the problems with the id() function. We definitly need to
work dependent on DTD, it's not the "id" attribute, but a as ID specified
attribute. Checking for "id" would work for HTML4, but we don't set the
document type. Therefor I can't check that. I will leave the implementation
for getElementById() in, and return NULL for the standalone.
How is that?
Axel
| Assignee | ||
Comment 5•25 years ago
|
||
I will attach a new patch, that does id() better, my code in
standalone/Document.ccp was under a false impression about what
NodeDefinition::nextSibling is. I completely removed that code in favor of a
return NULL; and some comments.
I didn't return the NodeSet in the id() function, too, and didn't resolve the
function name.
The current patch runs most (I didn't test all) examples from docbook and quite
a few from the XSLT benchmark.
Adding format-number() to the list of unimplemented.
I will file a bug on the benchmark tests, a good amout of work there.
I'd like a review, I think the memory stuff is good, looking at it awake.
Thanx to dr and jag for pointing my nose on to my shameless assumptions on the
id() impl for standalone. We essentially have none, as we don't resolve DTDs
and don't set the doctype, AFAI understood the code.
Adding dr to CCs
Axel
| Assignee | ||
Comment 6•25 years ago
|
||
| Assignee | ||
Comment 7•25 years ago
|
||
| Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → mozilla0.9
| Assignee | ||
Comment 8•25 years ago
|
||
The number functions should be revisited, to return NaN in error cases instead
of 0.0.
Axel
| Assignee | ||
Comment 9•25 years ago
|
||
fix is in, r=peterv. Peter's code r=me.
xpath function lib complete
xslt functions key(), format-number(), unparsed-entity-uri(),
element-available() and function-available() not yet implemented, but parsed
correctly and error handled.
Axel
Keywords: review
Comment 10•25 years ago
|
||
Sounds good... You should probably be able to implement element-available() and
function-available() trivially... I'd suggest closing this bug (as fixed) in
favor of specific ones for the small number of leftover bits.
Comment 11•25 years ago
|
||
Marking fixed. Bugs have been filed per remaining function.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 12•25 years ago
|
||
We haven't been verifying bugs for quite a while :-(
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•