- From: <bugzilla@jessica.w3.org>
- Date: Wed, 09 Mar 2016 18:09:14 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29522
Bug ID: 29522
Summary: fn:replace() with q flag
Product: XPath / XQuery / XSLT
Version: Working drafts
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Functions and Operators 3.1
Assignee: mike@saxonica.com
Reporter: debbie@saxonica.com
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
The error conditions under 5.6.3 fn:replace which raise err:FORX0004 should
only be raised if the q flag has not been set, so it would be useful to add
this condition to the descriptions. Currently these state:
A dynamic error is raised [err:FORX0004] if the value of $replacement contains
a "$" character that is not immediately followed by a digit 0-9 and not
immediately preceded by a "\".
A dynamic error is raised [err:FORX0004] if the value of $replacement contains
a "\" character that is not part of a "\\" pair, unless it is immediately
followed by a "$" character.
See the example under the section about the q flag in 5.6.1.1 Flags (which
expects some output not an error):
fn:replace("a/b/c", "/", "$", "q") returns "a$b$c"
[I will add this example (and others) as test cases to the QT3 fn-replace test
set in anticipation of this clarification; see fn-replace-49 to 53.]
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 9 March 2016 18:09:18 UTC