xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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

Hi Robert,

> 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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor