[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Q on incremental processing and count()

Subject: Q on incremental processing and count()
From: Enke Michael <Michael.Enke@xxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2002 12:52:36 +0100
 Q on incremental processing and count()
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:
<table>
 <thead>
  <th-row>...</th-row>
  <th-row>...</th-row>
 </thead>
 <tbody>
  <row>...</row>
  <row>...</row>
 </tbody>
</table>

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"/>
</xsl:variable>
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)"/>
</xsl:variable>

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?

Regards,
Michael

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.