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: sibling axis: can't restrict




> -----Original Message-----
> From: Pollington, Lee (ELSLON) [mailto:lee.pollington@biomednet.com]
> Sent: 06 October 2000 14:45
> To: 'xsl-list@mulberrytech.com'
> 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

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