W3C home > Mailing lists > Public > public-xsl-wg@w3.org > February 2016

ACTION-2016-02-25-003 - bug 29455 - on-empty

From: Michael Kay <mike@saxonica.com>
Date: Sat, 27 Feb 2016 23:07:02 +0000
Message-Id: <C98BE2B0-CCED-4893-9886-18C7DB1E56B9@saxonica.com>
To: Public XSLWG <public-xsl-wg@w3.org>
ACTION-2016-02-25-003: MK to rack his head and/or thesaurus to find an
alternative to 'significant' and 'insignificant' for the discussion of
xsl:on-empty and bug 29455.

I propose "vacuous".

Here's a flavour of how it reads:

[Definition: an item is *vacuous* if it is one of the following: a zero-length text node; a document node with no children; an atomic value which, on casting to xs:string, produces a zero-length string; or an array which on flattening (using the array:flatten function) produces either an empty sequence or a sequence consisting entirely of vacuous items.]

An xsl:on-empty instruction is triggered only if every preceding sibling instruction, text node, and literal result element in the same sequence constructor returns either an empty sequence, or a sequence consisting entirely of *vacuous* items.
An xsl:on-non-empty instruction is evaluated only if there is at least one sibling node in the same sequence constructor, excluding xsl:on-empty and xsl:on-non-empty instructions, whose evaluation yields a sequence containing an item that is not *vacuous*. If this condition applies, then all xsl:on-non-empty instructions in the containing sequence constructor are evaluated, and their results are included in the result of the containing sequence constructor in their proper positions.

Michael Kay

Received on Saturday, 27 February 2016 23:07:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:43:27 UTC