Increment
IVK <[email protected]> Wed, 01 Aug 2007 06:41:36 -0700
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hello, I want to increment a variable in for-each loop. I could use
"<xsl:value-of select="position()" />" if it is a direct one. But my
requirement can be summarized as follows:
declare count
for-each()
{
if(something)
{
increment count
}
else
{
nothing
}
}
can anyone please help me out.