[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: following-sibling::input and preceding-sibling::in

Subject: Re: following-sibling::input and preceding-sibling::input
From: Josh Canfield <joshcanfield@xxxxxxxxx>
Date: Mon, 21 Jun 2004 13:07:40 -0700
following sibling
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.