[Bug 23644] New: Relax update checks and allow last step of path to be updating

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

[Bug 23644] New: Relax update checks and allow last step of path to be updating

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

            Bug ID: 23644
           Summary: Relax update checks and allow last step of path to be
                    updating
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Update 3.0
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

The current XQUF spec forbids path expressions to be updating. This in contrast
to other iterating expressions, such as FLWOR, which allows the RETURN clause
to be simple, vacuous, or updating.

As path and FLWOR expressions have similar semantics, the path semantics could
be extended and relaxed to the simple rule that (only) the last step of a path
may be updating. The following queries would then be valid:

* //item/(delete node text())

* (1, <x/>) ! (if(. instance of node())
    then insert node text { 'X' } into . else ())

The queries can be currently be formulated as follows:

* for $i in //item
  return delete node $i/text()

* for $i in (1, <x/>)
  return if($i instance of node())
    then insert node text { 'X' } into $i else ())

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

Reply | Threaded
Open this post in threaded view
|

[Bug 23644] Relax update checks and allow last step of path to be updating

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

--- Comment #1 from John Snelson <[hidden email]> ---
That functionality might just be better off using the "!" operator.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 23644] [UPD 3.0] Relax update checks and allow last step of path to be updating

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=23644

Jonathan Robie <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[hidden email]
         Resolution|---                         |WONTFIX

--- Comment #2 from Jonathan Robie <[hidden email]> ---
The Working Group decided not to add this functionality.

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