xsl-list
[Top] [All Lists]

Re: Check if current node have child with specific attribute

2005-06-23 04:26:11
On 6/23/05, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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

--~------------------------------------------------------------------
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>
--~--