[xsl] counting the number of following siblings

Subject: [xsl] counting the number of following siblings
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Nov 2001 13:12:37 -0000
Help please.

I am trying to write a function that tests that the current node is of type
D and that the number of following D type nodes is greater than 3. Something
like this:

<xsl:when test="./@type='D' and
count(following-sibling::faostat:table-row[1]/@type='D')&gt3">

.....

</xsl:when>

My problem is with the
"count(following-sibling::faostat:table-row[1]/@type='D')&gt3" aspect.

Thanks.

Tanz





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


Current Thread