[Bug 18868] New: [QT3TS] try-catch-all-dynamic-errors-caught-1

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

           Summary: [QT3TS] try-catch-all-dynamic-errors-caught-1
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: oneil@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


I disagree with the expected result of the following test.

  <test-case name="try-catch-all-dynamic-errors-caught-1">
    <description>XPDY0002 must be caught.</description>
    <created by="Ghislain Fourny" on="2011-07-28"/>
    <environment ref="err"/>

    <test>try { . } catch err:XPDY0002 { "Context item not set." }</test>
    <result>
      <assert-string-value>Context item not set.</assert-string-value>
    </result>
  </test-case>

I do not think that XPDY0002 should be caught here.

Recall that . is represented by the Formal Semantics as a variable called
$fs:dot.

Compare with variations on this test:

declare variable $x external;
try { $x } catch err:XPDY0002 { "External variable not set." }

declare variable $x := fn:error("err:XPDY0002");
try { $x } catch err:XPDY0002 { "External variable raised error." }

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 13 September 2012 14:11:53 UTC