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

position() function always returns 0

           Summary: position() function always returns 0
           Product: XalanJ2
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


for the following xml file:
**** test.xml ****
<?xml version="1.0"?>
<test>
        <hello>
                <bye>
                </bye>
        </hello>
</test>

when running the xtags taglibs that use xalan in the following manner:

**** test.jsp ****
<xtags:parse uri="test.xml" />
<xtags:stylesheet>
  <xtags:template match="hello|bye">    
        position:<xtags:valueOf select="position()"/><br>
  </xtags:template>  
</xtags:stylesheet>


**** output ****
position:0<br>

Reply via email to