This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
tryCatchExpr is defined as follows: [169] TryCatchExpr ::= TryClause CatchClause+ [170] TryClause ::= "try" "{" TryTargetExpr "}" [171] TryTargetExpr ::= Expr [172] CatchClause ::= "catch" CatchErrorList CatchVars? "{" Expr "}" [173] CatchErrorList ::= NameTest ("|" NameTest)* We also say: [102] NameTest ::= QName | Wildcard This allows expressions such as: try {1} catch * {2} In XQueryX 1.1 we see: <!-- CatchErrorList (part of the TryCatchExpression) --> <!-- Corresponds to the following XQuery syntax --> <!-- CatchErrorList ::= --> <!-- NameTest ( "|" NameTest )* --> <xsd:complexType name="catchErrorList"> <xsd:sequence> <xsd:element ref="nameTest" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:element name="catchErrorList" type="catchErrorList"/> We also see: <xsd:element name="nameTest" type="QName"/> I don't believe that we can represent the query above in XQueryX 1.1. xqx:catchErrorList needs to be able to contain xqx:Wildcard.
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'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.