This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: check node


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]