This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28221 - [XSLT] (editorial) error in example of try/catch
Summary: [XSLT] (editorial) error in example of try/catch
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-15 17:52 UTC by Abel Braaksma
Modified: 2015-10-29 09:50 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2015-03-15 17:52:35 UTC
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.
Comment 1 Michael Kay 2015-03-20 12:24:45 UTC
Thanks, fixed (silently).

The incorrect indentation of the last line of examples is some kind of oXygen problem, I've never got to the bottom of it.