[Bug 3655] specification of item-sequence-to-* functions unclear

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





------- Comment #1 from oliver@cbcl.co.uk  2006-09-05 15:14 -------
> These rules should be applied to the content expression, not the sequence of
> items, and so this should read:

It seems I had my terminoligy confused - where I had said "content expression",
I meant "content sequence".

The following sentence is from section 3.7.1.3 of the XQuery 1.0 spec (just
above the sentence referred in the description of
item-sequence-to-node-sequence:

The content expression of a computed element constructor (if present) is
processed in exactly the same way as an enclosed expression in the content of a
direct element constructor, as described in Step 1e of 3.7.1.3 Content.  The
result of processing the content expression is a sequence of nodes called the
content sequence. If the content expression is absent, the content sequence is
an empty sequence.

It is this bit of processing that is not mentioned at all in any of the
function descriptions, and also was the source of my confusion.  Perhaps this
should be repeated in the formal semantics spec and made more obvious in the
descriptions of the aforementioned functions

Received on Tuesday, 5 September 2006 15:14:22 UTC