xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Smirnov" <vic...@uwc.ru>
Subject How to use position() ?
Date Tue, 28 Mar 2000 05:55:26 GMT
Hello all!

It seems to me that the following construction should put the position of
the blk_item in the list of all selected blk_item nodes. May be i am wrong ?

<xsl:template match="blk_item">
 <tr>
  <td>
   <xsl:apply-templates select="position()"/>.
   <xsl:apply-templates select="blk"/>
  </td>
  <td>
   <xsl:apply-templates select="cnt"/>
  </td>
 </tr>
</xsl:template>

But it produces the error:

XSL Error: SAX Exception
org.apache.xalan.xslt.XSLProcessorException: Can not convert #UNKNOWN to a
NodeList!

May be there is some other way of doing this ?

Thank you in advance
- Victor

p.s. I use Xalan 0.20.0
Any additional information?



Mime
View raw message