RE: [xsl] determining if one or more instances of a child are present in the current node element

Subject: RE: [xsl] determining if one or more instances of a child are present in the current node element
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 18 Sep 2003 14:53:33 +0100
> 
> <xsl:if test="count(child::*[name()=('ParaItem')]) &gt;=1"> 
> <!-- Check if this expression is correct -->
> 
> Is this expression correct in being able to determine if the 
> current node has one or more instances of the child ParaItem?
> 

Yes, and it is equivalent to the expression

<xsl:if test="ParaItem">

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread