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 11:44:45 UTC

DO NOT REPLY [Bug 4638] New: - Semantic of last() inside a for-each guard

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=4638>.
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=4638

Semantic of last() inside a for-each guard

           Summary: Semantic of last() inside a for-each guard
           Product: XalanJ2
           Version: 2.2.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: sacerdot@cs.unibo.it


The semantic of last() inside a for-each guard is flawed.
(It was OK in previous releases of Xalan-J). In particular, the next two
for-each should have the same semantics, but this is not the case.

<xsl:variable name="last" select="count(*)"/>
<xsl:for-each select="*[$last > position()]">

<xsl:for-each select="*[last() > position()]">