This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5666 - [UPD] use of fs:item-sequence-to-node-sequence in XQuery Update FS
Summary: [UPD] use of fs:item-sequence-to-node-sequence in XQuery Update FS
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Candidate Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 19:29 UTC by Michael Dyck
Modified: 2008-10-07 08:52 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2008-04-28 19:29:40 UTC
In the XQuery Update CR, normalization introduces calls to
fs:item-sequence-to-node-sequence in three places:
     4.4.1 Insert:    the source expr
     4.4.3 Replace:   the replacement when replacing a node
     4.4.5 Transform: the initializer for each variable binding

In 4.4.5 Transform, the uses are left over from an earlier draft, and are no longer correct. To fix, simply take each call to fs:item-sequence-to-node-sequence and replace it with its argument.

In 4.4.1 Insert and 4.4.3 Replace, the calls lead to to unsound static type inference (as in Bug 3771 comment #6) and also don't convey quite the right dynamic semantics.  The changes to FS proposed in Bug 3771 comment #8 would allow solutions for static & dynamic problems, involving edits to 4.4.1 and 4.4.3. However, a slightly different version of the Bug 3771 changes would cause 4.4.1 and 4.4.3 to become correct without any edits.

[For more details, see members-only http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2008Mar/0127.html .]
Comment 1 Michael Dyck 2008-10-07 08:52:00 UTC
(In reply to comment #0)
> 
> In 4.4.5 Transform, the uses are left over from an earlier draft, and are no
> longer correct. To fix, simply take each call to
> fs:item-sequence-to-node-sequence and replace it with its argument.

At its meeting on 2008-09-16, the XQuery WG approved this fix. I have made the change in the source for the Update Facility document.

> In 4.4.1 Insert and 4.4.3 Replace, the calls lead to to unsound static type
> inference (as in Bug 3771 comment #6) and also don't convey quite the right
> dynamic semantics.  The changes to FS proposed in Bug 3771 comment #8 would
> allow solutions for static & dynamic problems, involving edits to 4.4.1 and
> 4.4.3. However, a slightly different version of the Bug 3771 changes would
> cause 4.4.1 and 4.4.3 to become correct without any edits.

The "slightly different version" appeared as Bug 3771 Comment #15, which
was approved by the WGs on 2008-06-03. Assuming the new definition of
fs:item-sequence-to-node-sequence eventually becomes normative, the
Insert and Replace sections (now 4.5.1 and 4.5.3) do not need edits.

Therefore, I am marking this bug resolved-fixed. Since I was the original reporter, I will also mark it CLOSED.