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

[Bug 28955] New: [XSLT30] xsl:try should probably include xs:error in its enumeration

From: <bugzilla@jessica.w3.org>
Date: Thu, 16 Jul 2015 08:14:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28955-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28955

            Bug ID: 28955
           Summary: [XSLT30] xsl:try should probably include xs:error in
                    its enumeration
           Product: XPath / XQuery / XSLT
           Version: Last Call 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

In XP31 we now have xs:error. The first numbered list item enumerates
conditions that raise a catchable exception. The peculiar nature of xs:error
warrants inclusion, I think.

I assume it will normally behave like a type error, but I'm not sure it will
follow the same semantics entirely.

Example:

<xsl:try>
   <xsl:variable name="err" select="xs:error()" />
   <xsl:value-of select="if(foo) then $err else bar" />
   <xsl:catch>
       <xsl:text>Problem, foo found!</xsl:text>
   </xsl:catch>
</xsl:try>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 16 July 2015 08:15:16 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 16 July 2015 08:15:18 UTC