- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 08 Jun 2007 17:42:29 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4610 Summary: K2-ReplaceFunc-3 Product: XML Query Test Suite Version: unspecified Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: XML Query Test Suite AssignedTo: frans.englich@telia.com ReportedBy: andrew.eisenberg@us.ibm.com QAContact: public-qt-comments@w3.org The query for K2-ReplaceFunc-3 is: replace("abcd", "(a)\2(b)", "") I believe that this test case should raise error FORX0002. A sentence in 7.6.3 fn:replace says: "An error is raised [err:FORX0002] if the value of $pattern is invalid according to the rules described in section 7.6.1 Regular Expression Syntax." The bullet that defines back-reference in 7.6.1 Regular Expression Syntax says: "A back-reference matches the string that was matched by the nth capturing subexpression within the regular expression, that is, the parenthesized subexpression whose opening left parenthesis is the nth unescaped left parenthesis within the regular expression. The closing right parenthesis of this subexpression must occur before the back-reference." The closing right parenthesis of the 2nd capturing subexpression occurs after the back-reference.
Received on Friday, 8 June 2007 17:42:35 UTC