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

Re: Check if current node have child with specific at

Subject: Re: Check if current node have child with specific attribute
From: Jacob Friis <webcom.dk@xxxxxxxxx>
Date: Fri, 24 Jun 2005 07:57:55 +0200
jacob friis
On 6/23/05, Aron Bock <aronbock@xxxxxxxxxxx> wrote:
> > > > How can I check if the current node have a child with a specific
> >attribute?
> > > <xsl:if test="*/@specific">
> > >   there is a child with an attribute with name specific
> > > </xsl:if
> >
> >Great. To get any grandchild I did it like this:
> >
> ><xsl:if test="*//@this='true'">
> That actually looks for a descendent at any depth; to check a grandchild,
> i.e. 2 levels down, you really want test="*/*/@this"

Sorry I meant (grand)+child :)


Current Thread


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.
First Name
Last Name
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.