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

[Bug 28368] New: [XSLT30] Clarify that circularity errors in variables or keys cannot be caught with try/catch

From: <bugzilla@jessica.w3.org>
Date: Sun, 29 Mar 2015 19:16:51 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28368-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28368

            Bug ID: 28368
           Summary: [XSLT30] Clarify that circularity errors in variables
                    or keys cannot be caught with try/catch
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

As an example, if we were to allow catching this error, it is not clear whether
the following would yield CAUGHT or STUMPED:

<xsl:variable name="t">
 <xsl:try>
   <xsl:value-of select="$u" />
   <xsl:catch errors="err:XTDE0640">
     CAUGHT
   </xsl:catch>
 </xsl:try>
</xsl:variable>

<xsl:variable name="u">
 <xsl:try>
   <xsl:value-of select="$t" />
   <xsl:catch errors="err:XTDE0640">
     STUMPED
   </xsl:catch>
 </xsl:try>
</xsl:variable>

Hence it makes sense to disallow catching the dynamic error XTDE0640.

The preceding discussion on this bug and origin of example can be found in the
mail archive (member only)
* https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0067.html
* https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0068.html

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 29 March 2015 19:16:53 UTC

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