W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2014

[Bug 24317] [xslt 3.0] Parallel splitting: the dynamic multi-coloured widgets problem

From: <bugzilla@jessica.w3.org>
Date: Wed, 29 Jan 2014 11:24:34 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-24317-523-E5SSDJ9zTN@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24317

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
I'm a bit inclined to make xsl:for-each-group/@group-by streamable under the
same conditions as xsl:for-each-group/@group-adjacent. This would be consistent
with our approach to distinct-values().

Otherwise there is no convenient way to do something like

<xsl:for-each-group select="*" group-by="colour"
  bind-group="g" bind-grouping-key="k">
  <a colour="{$k}" count="{count($g)}"/>
</xsl:for-each-group>

which is streamable for all practical purposes (it needs memory proportional to
the number of groups, which in many cases will be constant memory independent
of the size of the population).

In essence this is the same as xsl:fork, except the number of "prongs" in the
fork is not fixed statically by the stylesheet author, but instead is
one-per-group based on the number of distinct grouping key values found in the
data.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 29 January 2014 11:24:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:45 UTC