You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Volcoff, Ari" <Ar...@comverse.com> on 2002/03/25 11:01:06 UTC

position() function always returns 0

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>

does somebody know of this issue ?
what is the solution ?



Regards

Ari Volcoff
 
--------------------------------
    http://www.log-on.com
    
    E-Mail: ari@log-on.com

       Tel: 972-3-6452298       

       Fax: 972-3-6452521

 Home Page: http://www.ari-v.com
--------------------------------