xsl-list
[Top] [All Lists]

RE: Knowing if a node has children

2003-11-18 05:57:06
<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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Jaime A Stuardo
Bahamondes
Sent: Tuesday, November 18, 2003 8:41 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>