[Bug 28130] New: [xslt 3.0] xsl:merge and accumulators

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

            Bug ID: 28130
           Summary: [xslt 3.0] xsl:merge and accumulators
           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

We have added an attribute use-accumulators to xsl:merge-source to indicate
which accumulators are available on the streamed input document.

However, because xsl:merge only makes nodes available by means of
current-merge-group(), and current-merge-group() does not return the original
streamed node, but rather a snapshot, accumulators are not useful during
merging. An attempt to use accumulator-before() or accumulator-after() returns
the accumulator value for the snapshotted node, not the value for the original
streamed node.

We could try and fix this by preserving accumulator values across a snapshot
but it would get pretty messy. It would mean that the accumulator is no longer
a pure function of the node (within its tree), but also depends on how the node
was created, which we would have to represent in the data model.

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

Received on Tuesday, 3 March 2015 14:03:19 UTC