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

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

--- Comment #5 from Michael Kay <mike@saxonica.com> ---
In response to comment 4, a typical use case is to take an input document of
the form:

<widgets>
  <widget colour="red" affability="3.2"/>
  <widget colour="blue" affability="3.3"/>
  <widget colour="orange" affability="3.1"/>
  <widget colour="lilac" affability="3.5"/>
  <widget colour="red" affability="3.6"/>
  <widget colour="green" affability="3.1"/>
  <widget colour="green" affability="3.2"/>
  <widget colour="blue" affability="3.4"/>
</widgets>

where the set of colours is not known in advance, and produce output of the
form

<out>
  <group colour="red" count="2" average-affability="3.4"/>
  <group colour="blue" count="2" average-affability="3.3"/>
  <group colour="orange" count="1" average-affability="3.1"/>
  <group colour="lilac" count="1" average-affability="3.5"/>
  <group colour="green" count="2" average-affability="3.15"/>
</out>

A particular variant of the problem is where the output of processing each
group is a separate result document; in this case there is a streaming strategy
that needs no buffering (except I/O buffer space proportional to the number of
groups).

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

Received on Wednesday, 19 March 2014 22:10:07 UTC