[XSL-LIST Mailing List Archive Home]
Re: [xsl] what does xsl:sort do if "select" doesn't evaluate to anything?
Subject: Re: [xsl] what does xsl:sort do if "select" doesn't evaluate to anything?|
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Mar 2003 10:35:03 +0000
> what is the defined behavior for <xsl:sort> if the "select="
> expression is not satisfied by anything?
You mean if the result of the select expression is an empty node set?
The empty node set gets turned into an empty string, which will then
be sorted in the same way as any other empty string. Usually in
alphabetical sorting that means such nodes will be sorted before those
whose sort key has some characters in it.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list