RE: check node

Subject: RE: check node
From: "Nanto, Dan" <dnanto@xxxxxxxxxx>
Date: Fri, 1 Dec 2000 11:37:39 -0700
Are you just trying to check to see if an element exists?  If so, you can
just use:

<xsl:if test="NodeA">

assuming that the xml looks like:

<root>
	<NodeA/>
</root>

-----Original Message-----
From: YueMa [mailto:may@xxxxxxxxxxxxxxxx]
Sent: Friday, December 01, 2000 9:20 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: check node


Hi there,
I use <xsl:if test="false=not(NodeA)"></xsl:if> to test whether there is
a NodeA or not, but I don't really like the "false=not(...)" expression.
Is there any better way instead?

Thanks!
Yue



 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
  • check node
    • YueMa - Fri, 01 Dec 2000 11:19:32 -0500
      • <Possible follow-ups>
      • Nanto, Dan - Fri, 1 Dec 2000 11:37:39 -0700 <=
        • YueMa - Fri, 01 Dec 2000 15:07:54 -0500
      • Clapham, Paul - Fri, 1 Dec 2000 12:59:00 -0800
      • Pendakur, Ramesh - Fri, 1 Dec 2000 13:17:36 -0800