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

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 28 Sep 2013 07:38:47 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-23391-523@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:53 UTC