RE: [xsl] How to check is element has children.

Subject: RE: [xsl] How to check is element has children.
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 19:38:27 -0000
> I need to test if an element has children 

Assuming it is the current element:

xsl:if test="node()" for any children, or
xsl:if test="*" for element children.

Mike Kay

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


Current Thread