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

RE: Simplest way to return an empty node-set

Subject: RE: Simplest way to return an empty node-set
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Fri, 28 Dec 2001 08:57:42 +0200
xsl empty node set
It's classic /.. expression - parent of the root node.

---
Oleg Tkachenko,
Multiconn International, Israel 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Brian Smith
> Sent: Friday, December 28, 2001 8:27 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Simplest way to return an empty node-set
> 
> 
> What is the simplest XPath expression that is guarenteed to generate an 
> empty node-set in an doucment? I sometimes need to return an empty 
> node-set from an function using the EXSLT functions module. Returning an 
> empty string (the default return value for an EXSLT function) does not 
> work for me.
> 
> I would think there would be a really simple expression for the empty 
> node-set, but I can't find it. I've thought of using "self::*[2]", 
> self::*[not(.)]" and "self::*[. != .]" but those seem rather hack-ish.
> 
> Any suggestions?
> 
> Thanks,
> Brian
> 
> 
>  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.