Re: [xsl] check if a node is empty

Subject: Re: [xsl] check if a node is empty
From: "Raghava Rao" <call_raghava@xxxxxxxxxxx>
Date: Thu, 17 Oct 2002 20:21:05 +0000
<xsl:if test="not(count(node)=0)">
 should help!


From: jeremyf@xxxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] check if a node is empty
Date: Thu, 17 Oct 2002 10:17:18 -0400

Hi all,
      I have done some preliminary research, but perhaps I am making this
harder than it is (or perhaps I have not asked the right questions of the
knowledge base)

Here is my problem:

I have an XML document that may contain nodes with no children


I need to test if this is the case in my XSL in order to output the correct

            <xsl:when test .... >
                  do some process here
                  no process to do

I am sure it is simple so if someone could point me in the right direction
or give a bit of a clue I am very appreciative.

Thanks in advance


XSL-List info and archive:

Get faster connections -- switch to MSN Internet Access!

XSL-List info and archive:

Current Thread