cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicki Møller <>
Subject count() doesn't work
Date Sun, 09 Jul 2000 18:46:10 GMT
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: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)"/>

The position() returns 8 hits 

All help is appreciated 


Do You Yahoo!?
Få en gratis på

View raw message