[Bug 10134] New: $err:description should be optional

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10134

           Summary: $err:description should be optional
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
               URL: http://w3.org/TR/xslt-21/#try-catch
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 2.1
        AssignedTo: mike@saxonica.com
        ReportedBy: fgeorges@gmail.com
         QAContact: public-qt-comments@w3.org


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):

    <xsl:try select="error(QName('ns', 'code'))">
       <xsl:catch>
          <xsl:value-of select="$err:description"/>
       </xsl:catch>
    </xsl:try>

  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.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 11 July 2010 21:56:42 UTC