xsl-list
[Top] [All Lists]

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

2003-09-17 22:41:57
Hi,

<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, but the easies way would be just to test with

  <xsl:if test="ParaItem"/>

Cheers,

Jarno - VNV Nation: Amhrain Comhrac


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