following-sibling::input selects a nodeset containing all of the input
nodes that follow the current node, and share the same parent node.
following-sibling::*[1][self::input]
will return a nodeset containing a single node if the immediate
following sibling node is an "input" node, or an empty nodeset if it
is not.
A nodeset is "true" if it is not empty.
Josh
On Mon, 21 Jun 2004 12:43:19 +0100, Andrew Welch
<ajwelch(_at_)piper-group(_dot_)com> wrote:
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
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--