[xsl] Simplest way to return an empty node-set

Subject: [xsl] Simplest way to return an empty node-set
From: Brian Smith <blsmith@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Dec 2001 00:27:25 -0600
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?


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread