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

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