Subject: Re: [xsl] following-sibling::input and preceding-sibling::input From: Josh Canfield <joshcanfield@xxxxxxxxx> Date: Mon, 21 Jun 2004 13:07:40 -0700 |
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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxx> > --+-- > >
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] following-sibling::input , Andrew Welch | Thread | calling templates, james walker |
Re: [xsl] Get Absolute XPath, Samooo | Date | RE: [xsl] xsl:sort, G. Ken Holman |
Month |