xsl-list
[Top] [All Lists]

RE: following-sibling::input and preceding-sibling::input

2004-06-21 04:43:19

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


<Prev in Thread] Current Thread [Next in Thread>