W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2014

[Bug 24496] New: Streamability of xsl:try can be improved with a choice operand group for xsl:catch

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Feb 2014 01:57:42 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-24496-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24496

            Bug ID: 24496
           Summary: Streamability of xsl:try can be improved with a choice
                    operand group for xsl:catch
           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

I think we can add another rule for xsl:try, between rule 1 and 2:

1. .. current rule ...
2. If the highest sweep of each the choice operand group of all xsl:catch
elements is consuming, and the posture and sweep of the select and/or sequence
constructor of xsl:try are grounded and motionless then the combined posture of
the choice operand group and a sweep of consuming.
3. Otherwise, roaming and free-ranging

This allows us to write:

<xsl:try>
   <xsl:value-of select="10 div @amount" />
   <xsl:catch>
      <xsl:message select="copy-of(.)" />
   </xsl:catch>
</xsl:try>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 5 February 2014 01:57:44 UTC

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