RE: [xsl] Knowing if a node has children

Subject: RE: [xsl] Knowing if a node has children
From: "Kirk Allen Evans" <kaevans@xxxxxxxxxxxxx>
Date: Tue, 18 Nov 2003 07:57:06 -0500
<xsl:if test="child::*">

Or

<xsl:if test="*">

-- 

Kirk Allen Evans
Microsoft MVP, AspInsider, XmlInsider
www.xmlandasp.net
Read my web log at http://weblogs.asp.net/kaevans

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jaime A Stuardo
Bahamondes
Sent: Tuesday, November 18, 2003 8:41 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Knowing if a node has children

Hi...

How can I test if a node has children? I have tested with:

<xsl:if test="count(child::*)">

<xsl:if test="child">

and others but everything didn't work

Thanks
Jaime

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





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


Current Thread