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

preceding-sibling axis problems 

           Summary: preceding-sibling axis problems
           Product: XalanJ2
           Version: 2.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This is with the 10/27/02 nightly build.

There seems really strange, but when there is a document() function in a
stylesheet the preceding-sibling axis iterates in the wrong direction.

Test case attached.

Files:

test.xml - Source XML file

jdgmtPartyStatusCodes-test.xml - Test external resource (note it contains the
root element and nothing else)

test.xsl - Test XSL file (comment out xsl:variable on line 3 and it will give
the expected output).  Don't and you'll get the incorrect results.  Note also
that the incorrect results are incorrect in more than one way depending on the
predicate [true()] (which shouldn't change anything if I'm reading Kay correctly)

I've also tried this with Saxon (6.5.2) and Xalan (same nightly).

Saxan gets it right all the time.

Xalan gets it wrong (problem with last() function), but consistently wrong.

Reply via email to