This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: check node
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: check node
- From: "Nanto, Dan" <dnanto at solant dot com>
- Date: Fri, 1 Dec 2000 11:37:39 -0700
- Reply-To: xsl-list at mulberrytech dot com
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@mail.nlm.nih.gov]
Sent: Friday, December 01, 2000 9:20 AM
To: xsl-list@mulberrytech.com
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