cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicki Møller <nicki_mol...@yahoo.dk>
Subject count() doesn't work
Date Sun, 09 Jul 2000 18:46:10 GMT
Hi 
I can't seem to get the count() function working, no
matter how I call the function it always returns 0

Here's the code I'm using

----------
<xsl:variable name="totalChapters">  
<xsl:value-of select="count(ROWSET/ROW)"/>  
</xsl:variable>  

<xsl:template match="ROWSET">
    <table border="2" cellspacing="1" cellpadding="6">
     <xsl:for-each select="ROW">
     <xsl:value-of select="position(ROW)"/>
     <xsl:value-of select="$totalChapters"/>
     <xsl:value-of select="count(ROW)"/>
      <tr>
        <xsl:apply-templates/>
      </tr>
     </xsl:for-each>
    </table>
</xsl:template>
----------

The position() returns 8 hits 

All help is appreciated 

Nicki


______________________________________________________
Do You Yahoo!?
Få en gratis @yahoo.dk-adresse på http://mail.yahoo.dk

Mime
View raw message