xsl-list
[Top] [All Lists]

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

2003-09-18 06:53:33

<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