[Bug 24651] New: Streamability rules of accumulator-before/after do not help with dependency on current node

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

            Bug ID: 24651
           Summary: Streamability rules of accumulator-before/after do not
                    help with dependency on current node
           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.online@xs4all.nl
        QA Contact: public-qt-comments@w3.org

Related to bug 24650 and bug 24649.

The operand usage of the only argument of the functions fn:accumulator-before
and fn:accumulator-after is Navigation[1]. The text says this is to make it
independent of the current node.

Hence we cannot write this:

<xsl:value-of select="accumulator-after(@foo)" />

because a climbing posture in a navigation context is disallowed. However, we
can write this:

<xsl:value-of select="accumulator-after(string(@foo))" />

which removes the problem with Navigation (the result of string() is grounded,
not climbing), but does not remove the dependency on the current node.

Considering that the type of the first argument is xs:string (and provided that
the resolution to bug 24560 is not equal to changing this), the argument will
be atomized, hence there is no need for setting the operand usage to
Navigation, because there is no way to navigate away from it.

[1] http://www.w3.org/TR/xslt-30/#streamability-fn-accumulator-after

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

Received on Thursday, 13 February 2014 11:10:40 UTC