[Bug 26268] New: [xslt 3.0] Context for xsl:accumulator/@initial-value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 26268] New: [xslt 3.0] Context for xsl:accumulator/@initial-value

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26268

            Bug ID: 26268
           Summary: [xslt 3.0] Context for xsl:accumulator/@initial-value
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

We say that the context for xsl:accumulator/@initial-value is the "same as the
context for global variables" (i.e., the global context item).

We also say that if the accumulator is streamable, the initial-value expression
must be grounded and motionless.

These statements are contradictory. The expression only needs to be grounded
and motionless if it is evaluated with the document node of the streamed
document as the focus.

It actually makes more sense to me for the focus to be the document node of the
streamed document to which the accumulator applies. For example, the initial
value could then be the base URI of that document.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 26268] [xslt 3.0] Context for xsl:accumulator/@initial-value

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26268

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Michael Kay <[hidden email]> ---
The WG decided that the focus for evaluation of @initial-value should be the
root of the streamable "document". There was some discussion of whether
streaming only applies to documents; that discussion is ongoing, but as far as
this bug is concerned the decision is that the focus is the root, whatever that
might be.

With this decision, it makes obvious sense to require the expression to be
grounded and motionless.

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