This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Simplest way to return an empty node-set
- From: "Oleg Tkachenko" <olegt at multiconn dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 28 Dec 2001 08:57:42 +0200
- Subject: RE: [xsl] Simplest way to return an empty node-set
- Reply-to: xsl-list at lists dot mulberrytech dot com
It's classic /.. expression - parent of the root node.
---
Oleg Tkachenko,
Multiconn International, Israel
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Brian Smith
> Sent: Friday, December 28, 2001 8:27 AM
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] 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