[Bug 13027] New: [XQUF] copying behaviour

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 13027] New: [XQUF] copying behaviour

Bugzilla from bugzilla@jessica.w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13027

           Summary: [XQUF] copying behaviour
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
               URL: http://www.w3.org/TR/xquery-update-10/#id-transform
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Update Facility
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]


In section 2.4.5 Transform, the specification states that

v. All other properties of the copied nodes are preserved.

The copied node may be a document node.  This means that the document-uri
property will be copied.

However, in section 2.1.2 Dynamic Context of XQuery 1.0 it is stated that

"This means that given a document node $N, the result of
fn:doc(fn:document-uri($N)) is $N will always be True, unless
fn:document-uri($N) is an empty sequence."

The query

  copy $N := doc('data.xml')
   modify ()
   return fn:doc(document-uri($N)) is $N

demonstrates that this is violated.

I would expect that the document-uri property should not be copied, and that
document-uri($N) should be the empty sequence.

--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 13027] [XQUF] copying behaviour

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=13027

John Snelson <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Update 3.0                  |Update Facility
         Resolution|---                         |FIXED
           Assignee|[hidden email]  |[hidden email]

--- Comment #1 from John Snelson <[hidden email]> ---
The XQuery WG discussed this on 2013/01/15 and agreed that the suggested change
should be made in the XQuery Update 3.0 working draft.

Implementations of XQuery Update 1.0 can consider making the same change.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 13027] [XQUF] copying behaviour

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=13027

Tim Mills <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Tim Mills <[hidden email]> ---
I'm reopening, as I'm unable to find the agreed change in the XQuery Update 3.0
editor's draft.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 13027] [XQUF] copying behaviour

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=13027

John Snelson <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |[hidden email]
         Resolution|---                         |FIXED

--- Comment #3 from John Snelson <[hidden email]> ---
I'm closing this bug again, as the decision is recorded in changes.txt and will
be made in the course of time.

--
You are receiving this mail because:
You are the QA Contact for the bug.