<?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>10134</bug_id>
          
          <creation_ts>2010-07-11 21:56:40 +0000</creation_ts>
          <short_desc>$err:description should be optional</short_desc>
          <delta_ts>2010-12-02 11:46:06 +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>XSLT 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://w3.org/TR/xslt-21/#try-catch</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="Florent Georges">fgeorges</reporter>
          <assigned_to name="Michael Kay">mike</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>36765</commentid>
    <comment_count>0</comment_count>
    <who name="Florent Georges">fgeorges</who>
    <bug_when>2010-07-11 21:56:40 +0000</bug_when>
    <thetext>In an xsl:catch, several variables are automatically bound, to
access error details (err:code, err:description, etc.)[1] The
type of err:description is defined to be xs:string.  What is it
supposed to be bound to in the following case (i.e. when invoking
error() without any description string):

    &lt;xsl:try select=&quot;error(QName(&apos;ns&apos;, &apos;code&apos;))&quot;&gt;
       &lt;xsl:catch&gt;
          &lt;xsl:value-of select=&quot;$err:description&quot;/&gt;
       &lt;/xsl:catch&gt;
    &lt;/xsl:try&gt;

  Note that XQuery 1.1 defines the equivalent variable (in its
own grammar) to be of kind xs:string?, so optional.  My humble
opinion is that XQuery is correct here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36965</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-16 16:40:09 +0000</bug_when>
    <thetext>Agreed, this needs to be fixed. (Not formally discussed by the WG, but discussed by some WG members after the close of the meeting).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42987</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-12-02 11:46:06 +0000</bug_when>
    <thetext>Change applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>