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

[Bug 29120] [xslt 3.0] last() in a streamable xsl:merge

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Sep 2015 13:04:15 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29120-523-5crJqZYy8J@http.www.w3.org/Bugs/Public/>

Abel Braaksma <abel.braaksma@xs4all.nl> changed:

           What    |Removed                     |Added
                 CC|                            |abel.braaksma@xs4all.nl

--- Comment #2 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
We could say that the context size is unavailable and any attempt to get the
context size is an error while streaming. This would prevent extension
functions or instructions to somehow make a call to fn:last().

Another observation is that it is therefore not possible to create a specific
action on the last item of a merge. I.e., it is not possible to get a sum, a
total or a summary at the end. I am not sure if accumulators can help
circumvent this, because after the xsl:merge instruction they will be out of
scope. We could consider a child <xsl:last-merge-action> (similar to
xsl:on-completion), but at this stage we stopped adding new features ;). Or is
there another workaround?

I don't think it is necessary to ban fn:function-lookup. Since the context is a
grounded snapshot, one can circumvent this with assigning the result of
fn:function-lookup to a variable and calling that variable from within the
xsl:merge-action. Hence I think prohibiting getting the context size may be an
easier way to prevent this.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 23 September 2015 13:04:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 23 September 2015 13:04:17 UTC