[Bug 23391] New: [xslt 3.0] Streaming variables

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23391

            Bug ID: 23391
           Summary: [xslt 3.0] Streaming variables
           Product: XPath / XQuery / XSLT
           Version: Working 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

We carefully disallow binding of variables to nodes in a streamed document.

Except that we don't. We provide a workaround:

<xsl:for-each-group select="." group-adjacent="0" bind-group="var">

which is just another way of doing

<xsl:variable name="var" select="."/>

Having a variable bound to the streamed node is really useful in some contexts,
e.g. inside xsl:analyze-string where the context item has been switched to a
string. So people will undoubtedly use the workaround if we leave it open.

Now either grouping variables work, in which case we can use the same
mechanisms to make ordinary streamed variables work; or they don't work, in
which case we need to fix them.

I have a feeling that with the new "posture" mechanism, we can make streamed
variables work. The essence of the solution is that the posture of a variable
reference is the same as the posture of the initialising expression of the
variable.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 28 September 2013 07:38:49 UTC