[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] counting the number of following siblings
Subject: RE: [xsl] counting the number of following siblings From: Jarno.Elovirta@xxxxxxxxx Date: Tue, 27 Nov 2001 15:27:27 +0200 |
> 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')>3"> > > ..... > > </xsl:when> > > My problem is with the > "count(following-sibling::faostat:table-row[1]/@type='D')>3" aspect. following-sibling::faostat:table-row[1]/@type='D' will return a boolean and count() expects a node-set. count(following-sibling::faostat:table-row[@type='D']) > 3 should work J XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Re: Counting Nodes, Dimitre Novatchev | Thread | [xsl] Binary output, Burisch, Curtis |
[xsl] counting the number of follow, Tanzila Mohammad | Date | Re: [xsl] counting the number of fo, David Carlisle |
Month |