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 2002/03/25 10:37:01 UTC
DO NOT REPLY [Bug 7435] New: -
position() function always returns 0
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: xalan-dev@xml.apache.org
ReportedBy: avolcoff@bigfoot.com
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>