no need to embed this in
<xsl:variable name="length" select="count(nodes/node)"/>
though ... you can just print it like this:
<xsl:value-of select="count(nodes/node)"/>
or use it in an if statement:
<xsl:if test="count(comments/comment) > '0'"> <ul> <xsl:apply-templates select="comments/comment"/> </ul> </xsl:if>
Pierre spring
source share