- From: <bugzilla@jessica.w3.org>
- Date: Sat, 26 Oct 2013 14:47:03 +0000
- To: public-qt-comments@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: john.snelson@marklogic.com
Reporter: christian.gruen@gmail.com
QA Contact: public-qt-comments@w3.org
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.
Received on Saturday, 26 October 2013 14:47:04 UTC