RE: [xsl] following-sibling::input and preceding-sibling::input

Subject: RE: [xsl] following-sibling::input and preceding-sibling::input
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Mon, 21 Jun 2004 12:43:19 +0100
> Hi all,
> 
> Got a question regarding following-sibling::input and 
> preceding-sibling::input.
> 
> Do they check if the immediate following/preceding sibling is 
> of type 'input'?
> 
> If they do not, then how do I check if the immediate 
> following/preceding sibling is of type 'input'?
> 
> Sorry, I think I mis-read the documentation...

follow-sibling::input will return true if any of the following siblings
are an <input> element.

To check if the immediate following-sibling is an input, you would need

following-sibling::*[1][self::input]

cheers
andrew

Current Thread