RE: sibling axis: can't restrict

Subject: RE: sibling axis: can't restrict
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 6 Oct 2000 18:31:52 +0100

> -----Original Message-----
> From: Pollington, Lee (ELSLON) [mailto:lee.pollington@xxxxxxxxxxxxx]
> Sent: 06 October 2000 14:45
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: sibling axis: can't restrict
> 
> 
> I saw a previous sibling axis question, but am still stumped 
> on this.
> 		<xsl:when test="following-sibling::ead[1]">

This tests whether there is a following-sibling <ead> element. To test
whether the first following sibling element is an <ead>, use:

<xsl:when test="following-sibling::*[1][self::ead]">

Mike Kay


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


Current Thread