<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29097</bug_id>
          
          <creation_ts>2015-08-28 20:37:16 +0000</creation_ts>
          <short_desc>try-012 should not expect a specific error description</short_desc>
          <delta_ts>2015-09-23 16:50:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122885</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2015-08-28 20:37:16 +0000</bug_when>
    <thetext>&lt;test-case name=&quot;try-012&quot;&gt;
    &lt;description&gt;Use err:description local variable, implicitly declared&lt;/description&gt;
    &lt;created by=&quot;O&apos;Neil Delpratt&quot; on=&quot;2012-03-02&quot;/&gt;
    &lt;environment ref=&quot;err&quot;/&gt;&lt;test&gt;&lt;![CDATA[
        declare function local:f($d as xs:integer) { 10 div $d };
        try { local:f(0) } catch * {$err:description}
      ]]&gt;&lt;/test&gt;
    &lt;result&gt;
      &lt;any-of&gt;
        &lt;assert-string-value&gt;Integer division by zero&lt;/assert-string-value&gt;
        &lt;assert-type&gt;xs:string&lt;/assert-type&gt;
      &lt;/any-of&gt;
    &lt;/result&gt;
  &lt;/test-case&gt;

I don&apos;t think an error description is defined for err:FOAR0001 so this test shouldn&apos;t assert description &quot;Integer division by zero&quot;.  Also, I think it is valid for $err:description to be empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123131</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2015-09-08 15:38:34 +0000</bug_when>
    <thetext>WG. agrees with proposal by Josh. I will make the fix accordingly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123173</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2015-09-11 13:58:24 +0000</bug_when>
    <thetext>Bug fix applied in cvs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123295</commentid>
    <comment_count>3</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2015-09-23 16:50:51 +0000</bug_when>
    <thetext>The change applied is not enough because $description may also be empty.  It needs to be something like:

&lt;any-of&gt;
  &lt;assert-type&gt;xs:string&lt;/assert-type&gt;
  &lt;assert-empty/&gt;
&lt;/any-of&gt;

I will apply this change and leave the bug resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>