W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2015

[Bug 28221] New: [XSLT] (editorial) error in example of try/catch

From: <bugzilla@jessica.w3.org>
Date: Sun, 15 Mar 2015 17:52:35 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28221-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28221

            Bug ID: 28221
           Summary: [XSLT] (editorial) error in example of try/catch
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

The current example in the try/catch section (under 8.3.2) is as follows:

<xsl:try select="salary div length-of-service">
  <xsl:catch errors="err:FOA0001" select="()"/>
</xsl:try>

The error FOA0001 does not exist (and I wonder whether it is mandatory to raise
an error if the EQName does not resolve to an existing error code in the linked
specifications).

It should be err:FOAR0001 (division by zero).

Also note that the third example in this section has a closing "</xsl:try>"
that is incorrectly indented.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 15 March 2015 17:52:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:53 UTC