This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: check node
- To: xsl-list at mulberrytech dot com
- Subject: Re: check node
- From: YueMa <may at mail dot nlm dot nih dot gov>
- Date: Fri, 01 Dec 2000 15:07:54 -0500
- Organization: NLM
- References: <6D98540C0CD2D311808500E018C1EBFEFFE461@novant1>
- Reply-To: xsl-list at mulberrytech dot com
Got it, thanks!
Yue
"Nanto, Dan" wrote:
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list