W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2013

[Bug 24109] New: [xslt 3.0] streamability of xsl:variable when atomised

From: <bugzilla@jessica.w3.org>
Date: Mon, 16 Dec 2013 10:18:15 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-24109-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24109

            Bug ID: 24109
           Summary: [xslt 3.0] streamability of xsl:variable when atomised
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

(Reported by John Lumley)

The following template is deemed non-streamable under current rules:

   <xsl:template match="your:extra" mode="s" xmlns:your="http://your.com/ns">
     <extra>
       <xsl:variable name="n" as="xs:integer" select="."/>
       <xsl:value-of select="$n gt 20"/>
     </extra>
   </xsl:template>

The analysis fails to take into account that the as="xs:integer" ensures the
context item is atomized, and the usage should therefore be absorption. The
concept of "type-determined usage" should come into this somehow.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 16 December 2013 10:18:18 UTC

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