<?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>7053</bug_id>
          
          <creation_ts>2009-06-23 20:16:42 +0000</creation_ts>
          <short_desc>[XQX11] cannot represent a catchErrorList wildcard in XQueryX</short_desc>
          <delta_ts>2009-11-02 19:59:26 +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>XQueryX 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>25679</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-06-23 20:16:42 +0000</bug_when>
    <thetext>tryCatchExpr is defined as follows:

[169]    TryCatchExpr     ::=    TryClause CatchClause+
[170]    TryClause        ::=    &quot;try&quot; &quot;{&quot; TryTargetExpr &quot;}&quot;
[171]    TryTargetExpr    ::=    Expr
[172]    CatchClause      ::=    &quot;catch&quot; CatchErrorList CatchVars? &quot;{&quot; Expr &quot;}&quot;
[173]    CatchErrorList   ::=    NameTest (&quot;|&quot; NameTest)*

We also say:

[102]    NameTest         ::=    QName | Wildcard

This allows expressions such as:

try {1} catch * {2}


In XQueryX 1.1 we see:

&lt;!-- CatchErrorList (part of the TryCatchExpression)     --&gt;
&lt;!-- Corresponds to the following XQuery syntax          --&gt;
&lt;!-- CatchErrorList ::=                                  --&gt;
&lt;!--       NameTest ( &quot;|&quot; NameTest )*                    --&gt;

  &lt;xsd:complexType name=&quot;catchErrorList&quot;&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element ref=&quot;nameTest&quot; maxOccurs=&quot;unbounded&quot;/&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;

  &lt;xsd:element name=&quot;catchErrorList&quot; type=&quot;catchErrorList&quot;/&gt;

We also see:

  &lt;xsd:element name=&quot;nameTest&quot; type=&quot;QName&quot;/&gt;


I don&apos;t believe that we can represent the query above in XQueryX 1.1. xqx:catchErrorList needs to be able to contain xqx:Wildcard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26859</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2009-09-06 20:31:47 +0000</bug_when>
    <thetext>Good catch!  Thanks for finding this.  I have modified both the XQueryX 1.1 schema and the corresponding stylesheet to support wildcards in addition to QNames within the errlist.  As a result, I&apos;m marking this bug RESOLVED/FIXED.  If you agree with the solution (which you can find in member CVS at the usual place), please mark the bug CLOSED. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>