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: Non-existing node


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


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