[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Non-existing node

Subject: RE: Non-existing node
From: "Casadome, Francisco Javier" <Francisco.Casadome@xxxxxxxxxxxxxx>
Date: Mon, 17 Sep 2001 09:44:45 +0200
xsl finding non existent nodes
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@xxxxxxx [mailto:timw@xxxxxxx]
Sent: lunes, 17 de septiembre de 2001 9:00
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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@xxxxxxxxxxxxxx]
> Sent: Monday, 17 September 2001 3:49 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.