Re: Firefox XSLT position()

David <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Guest of ProXad - France
Message-ID <[email protected]>
Ok, I find something that output what I expected.
Hope it will work on IE6 too.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">

<xsl:template match="/">
   <html>
     <body>
       <p>(<xsl:value-of select="position()" />)</p>
       <xsl:apply-templates select="AAA"/>
     </body>
   </html>
</xsl:template>

<xsl:template match="AAA">
       <xsl:apply-templates select="BBB" />
</xsl:template>

<xsl:template match="BBB">
       <p>(<xsl:value-of select="position()" />)
       <xsl:value-of select="." />
       </p>
</xsl:template>

</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.