Closed Bug 65987 Opened 25 years ago Closed 25 years ago

Need to implement the current() XSLT function

Categories

(Core :: XSLT, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: peterv, Assigned: keith)

References

Details

Attachments

(4 files)

We need to implement the current() XSLT extension function (http://www.w3.org/TR/xslt.html#function-current) in Transformiix.
Blocks: 63906
Status: NEW → ASSIGNED
Checked in implementation.
I'm doubtful about the current (hehe) implementation.
Target Milestone: --- → mozilla0.8
Do we have a test case for this?
I'll attach the xml-xalan test case for this. And yes, it's done wrong at the moment Axel
Attached file xml file
Attached file xsl file
Attached file reference solution
Thanks Axel...I'll have this working ASAP...probably tonight. --Keith
I wonder if we have some stack of context nodes. and if current() would be the very first one, instead of the top one. Axel
Judging from the output it looks as if current is the context node used at the start of the evaluating the expression. Should be a quick fix. I just don't have the code in front of me until I go home. --Keith
I just looked at XSL:P and had the same bug....so I fixed it for that. It was a quick fix. I'll do the same for Transformiix tonight. --Keith
The test cases are now working properly. Axel or Peter, please verify. Thanks, --Keith
Assignee: peterv → kvisco
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Looks ok to me (Keith, could you use cvs diff -u in the future?). r=peterv.
r=me, had to add $(srcdir)/../util to xslt/functions/Makefile.in and gave the makefile.win an overwhaul, too, of course adding -I..\util there. Checking in Axel
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: