This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19281 - [QT3TS] try-catch-fn-error-1
Summary: [QT3TS] try-catch-fn-error-1
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 08:23 UTC by Tim Mills
Modified: 2012-10-05 14:30 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-10-05 08:23:22 UTC
This test shows a limitation of the current test suite. The "code" attribute is an NCName, and the check assumes that the expected error is in the standard error namespace.  In this test, the assumption does not hold.

  <test-case name="try-catch-fn-error-1" covers="fn-error">
    <description>Try-catch must match fn:error semantics.</description>
    <created by="Ghislain Fourny" on="2012-10-03"/>
    
    <test>fn:error(fn:QName("http://www.example.com/", "example:EXER3141"))</test>
    <result>
      <error code="EXER3141"/>
    </result>
  </test-case>
Comment 1 Michael Kay 2012-10-05 09:20:23 UTC
Actually the schema currently allows union(NCName, "*"). I will fix this so it also allows an EQName, and change this test to use an EQName. Test drivers, of course, will have to adapt.
Comment 2 Tim Mills 2012-10-05 14:30:59 UTC
Thanks.