[xsl] Q on incremental processing and count()

Subject: [xsl] Q on incremental processing and count()
From: Enke Michael <Michael.Enke@xxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2002 12:52:36 +0100
Hi people,
I'm new to this list but with some experience in Cocoon.
Now I have a probem I cann't solve myself.
I use xalan as transformer.

My xml looks like this:

In my xsl I need a variable which is the count of <th-row>

If I use:
<xsl:variable name="col-num">
 <xsl:value-of select="10"/>
The I see the incremental processing works fine.

But I have to use:
<xsl:variable name="col-num">
 <xsl:value-of select="count(thead/th-row)"/>

But now I see the result if all row nodes are processed.
I also changed to <xsl:value-of select="count(thead[position() = 1]/th-row)"/>
but also this didn't help.

Can anybody tell me the solution or is this not possible?


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread