This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 1st or second sibling


> 
> Hi, need to find out if the first or second following sibling 
> is the node
> "ead", I need something like:
> following-sibling::*[1|2][self::ead], however I know this 
> doesn't work. Can
> I do this without explicitly writing out the case for 1st and 
> 2nd positions?
> 
How about:
following-sibling::*[position() &lt 3][local-name()='ead']

Cheers -- Marc 


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]