W3C home > Mailing lists > Public > public-xsl-wg@w3.org > April 2016

Proposal for bug 29492 (streamability of attribute sets)

From: Michael Kay <mike@saxonica.com>
Date: Mon, 18 Apr 2016 17:01:15 +0100
Message-Id: <5B34251A-7D4A-4698-8AD5-1973E464DB73@saxonica.com>
To: Public XSLWG <public-xsl-wg@w3.org>
ACTION 2016-04-14-001 on MHK (bug 29492) to review Abel's suggestions and revise as necessary.

A. In 10.2.3, list item 2, delete the phrase "considered as a sequence constructor".

B. Change 19.8.6 as follows:

The posture of an attribute set is always grounded.

The sweep of an attribute set is motionless if the following conditions apply to every xsl:attribute-set declaration within the attribute set:

1. Every xsl:attribute instruction child of the xsl:attribute-set declaration, when assessed with a context posture of striding, is motionless.

2. Every attribute set referenced by a use-attribute-sets attribute on the xsl:attribute-set declaration is guaranteed-streamable.

If the sweep is not motionless then it is deemed to be free-ranging.

Note: for simpllicity, the analysis excludes the possibility of attribute sets being consuming. In practice, it is unusual for the evaluation of an attribute set to be dependent on the focus. While it would be theoretically feasible for evaluation of an attribute set to consume the context item, a stylesheet that has such a requirement can easily be rewritten to use streamable template rules.

C. In xsl:copy (, xsl:element (, and literal result elements (, where [xsl:]-use-attribute-sets is referenced as an operand, make the usage inspection, and add (Note: in practice, for the instruction to be guaranteed streamable, all referenced attribute sets must be declared streamable, in which case they will necessarily be grounded and motionless).

Michael Kay
Received on Monday, 18 April 2016 16:04:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 18 April 2016 16:04:55 UTC