Re: [xsl] Check if current node have child with specific attribute

Subject: Re: [xsl] Check if current node have child with specific attribute
From: Jacob Friis <webcom.dk@xxxxxxxxx>
Date: Thu, 23 Jun 2005 13:26:11 +0200
On 6/23/05, David Carlisle <davidc@xxxxxxxxx> 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'">

Thanks,
Jacob

Current Thread