You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/05 12:49:30 UTC
DO NOT REPLY [Bug 4602] -
Problems with last() function and the ancestor iterator
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4602>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4602
Problems with last() function and the ancestor iterator
morten@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|xalan-dev@xml.apache.org |morten@apache.org
Summary|xsltc fails axes87 axes90 |Problems with last()
|axes91 axes97 |function and the ancestor
| |iterator
------- Additional Comments From morten@apache.org 2001-11-05 03:49 -------
This covers three unrelated bugs. I have fixed axes87 and 97 (the same bug)
and axes90 (second bug). axes91 (the third bug) fails because of a problem
with the ancestor iterator and the last() function. I am changing the synopsis
of the bug to cover the actual problem.
The problem is this expression:
select="ancestor::*[last()]"
XSLTC seems to pick the parent of the current node (ie. the last ancestor in
document order), while Xalan and Saxon pick the first element in the document
(ie. the last ancestor in the natural order of the ancestor axis). I'll have to
look into this to see what is correct.