cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bas Passon <BPas...@parite.nl>
Subject problems counting in loops
Date Tue, 24 Oct 2000 09:36:50 GMT
Hello,

I have got a small problem, counting in xsl, see the following fragment of
code

	<xsl:variable name="count" select="1"/>
	<xsl:for-each select="item">
		...do something
		<xsl:variable name="count" select="$count+1"/>
	</xsl:for-each>

for some reason the count variable stays 1. What am i doing
wrong. I looked at the XPath docs, but this is a valid
expr.

Thnx

Bas

Mime
View raw message