This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Non-existing node
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Non-existing node
- From: "Casadome, Francisco Javier" <Francisco dot Casadome at bowneglobal dot es>
- Date: Mon, 17 Sep 2001 09:44:45 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Well, I already knew that ;)
The problem is that this is true for a non-existing node:
<xsl:if test="SomeNode!=''">
So the value returned must be "something"...
You said you get "nothing"... is that the reserved word
for a reference to a node which doesn't exist ?
Or were you just using it in general ?
Frank
-----Original Message-----
From: timw@3d3.com [mailto:timw@3d3.com]
Sent: lunes, 17 de septiembre de 2001 9:00
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Non-existing node
Why don't you try it out? :)
When I stuff up and try finding nodes which don't exist all I get is ...
nothing
There-for <xsl:if test="SomeNode=Whatever"> will always be false.
Tim
> -----Original Message-----
> From: Casadome, Francisco Javier
> [mailto:Francisco.Casadome@bowneglobal.es]
> Sent: Monday, 17 September 2001 3:49 PM
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] Non-existing node
>
>
> Hi *,
>
> I have a (stupid?) question:
>
> What is returned when you try to reach a node that doesn't exist ?
> Imagine the simplest xml possible:
>
> <xml></xml>
>
> what I would like to know is what value is returned if I try
> to reach some
> node inside the xml, thus is:
>
> ...
> <xsl:if test="SomeNode=Whatever">
> ...
> </xsl:if>
> ...
>
> What is the "Whatever" compared to ?
>
> Thanks in advance,
> Frank.
>
> 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