This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: 1st or second sibling
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: 1st or second sibling
- From: "Beckers, Marc" <Marc dot Beckers at softwareag dot com>
- Date: Tue, 7 Nov 2000 14:37:34 +0100
- Reply-To: xsl-list at mulberrytech dot com
>
> 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() < 3][local-name()='ead']
Cheers -- Marc
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list