xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 27 Nov 2001 15:43:51 -0000

> 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">
> 

Try count(following-sibling::faostat:table-row[@type='D'])

I've no idea what the [1] was doing there.

Mike Kay

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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor