This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22017 - [XSLT 3.0] Examples: Using xsl:stream with aggregate functions
Summary: [XSLT 3.0] Examples: Using xsl:stream with aggregate functions
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 09:43 UTC by Michael Kay
Modified: 2014-05-15 14:00 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2013-05-13 09:43:23 UTC
The first example box in 19.1.1 needs attention.

It is preceded by the sentence: "These examples no longer work; it is no longer possible to compute an aggregate over descendant values using a path expression. Instead, traversal using templates is required.". This sentence should be deleted; the problems with the examples were fixed before publication.

However, the two examples in the first example box were originally intended to use count() and max(), and they have been changed to use xsl:iterate because they didn't work as originally written. I believe our streamability rules now allow them to be written as originally intended using count() and max().

[Thanks to David Rudel for pointing this out].
Comment 1 Michael Kay 2013-05-23 17:21:06 UTC
Reclassified as editorial.
Comment 2 Michael Kay 2013-08-12 13:51:25 UTC
The two examples have been rewritten to use count() and max(), and an analysis has been added to the examples to show why they are streamable.