[Bug 29767] New: [QT3TS] fn-replace-55

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29767

            Bug ID: 29767
           Summary: [QT3TS] fn-replace-55
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

I disagree with the expected result.

$1 refers to the string captured by (a).

In this case (a) will match 'a', (b) with match 'b' etc.
When matching (a), the captured string $1 will be 'a', ptherwise, it will be
the empty string.

Therefore I expected 

       <assert-string-value>ak</assert-string-value>

to hold.


   <test-case name="fn-replace-55">
      <description>Test case with undefined captures. Saxon bug
2865.</description>
      <created by="Michael Kay after Gunther Rademacher" on="2016-07-31"/>
      <test>replace('abcdefghijk', '(a)|(b)|(c)|(d)|(e)|(f)|(g)|(h)|(i)|(j)',
'$1')
      </test>
      <result>
         <assert-string-value>abcdefghijk</assert-string-value>
      </result>
   </test-case>

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

Received on Monday, 8 August 2016 08:11:18 UTC