[Bug 1897] [XSLT2.0] cardinalities of unparsed-text-available function

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1897





------- Additional Comments From mike@saxonica.com  2005-09-16 11:08 -------
The Working Group discussed this and agreed it ought to be fixed, and asked the
editor to propose the detailed revision. Subject to confirmation by the WG, I
propose the following.

(a) to align with doc-available(), the first argument of
unparsed-text-available() will accept an empty sequence, and will return false
in this case.

(b) we normally adopt a principle that where a value is optional, then it ought
to be possible to specify an explicit value whose effect is equivalent to
defaulting it. Applying this principle, I propose that if the second argumnent
of unparsed-text-available() is an empty sequence, the effect should be the same
as calling the one-argument version of the function. [There are
counter-examples. We don't allow an empty sequence as the third argument of
substring(), for example. However, it's not a big issue either way, and this
seems a reasonable approach.]

Michael Kay

Received on Friday, 16 September 2005 11:08:53 UTC