[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: check if a node is empty

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

Rao






From: jeremyf@xxxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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

      <node>
      </node>

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

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

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

Jeremy



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


_________________________________________________________________
Get faster connections?-- switch to?MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp



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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.