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 29436 - [XSLT30] List in 5.7 sequence constructor seems a bit off
Summary: [XSLT30] List in 5.7 sequence constructor seems a bit off
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
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: 2016-02-08 21:23 UTC by Abel Braaksma
Modified: 2016-02-19 12:14 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2016-02-08 21:23:11 UTC
Under 5.7, second bullet (the part after the numbered list) constains the following:

<quote>
The sequence may be returned as the result of the containing element. This happens when the element containing the sequence constructor is xsl:analyze-string, xsl:apply-imports, xsl:apply-templates, xsl:break, xsl:call-template, xsl:catch, xsl:choose, xsl:fallback, xsl:for-each, xsl:for-each-group, xsl:fork, xsl:if, xsl:iterate, xsl:matching-substring, xsl:next-match, xsl:non-matching-substring, xsl:on-completion, xsl:otherwise, xsl:perform-sort, xsl:sequence, xsl:try, or xsl:when. 
</quote>

This list contains items that cannot contain a sequence constructor. Also, xsl:template is not in the list, while it *can* contain a sequence constructor. What is more, it has the same semantics with the "as" attribute, but is not mentioned in the first bullet (which only talks about variables).

Items that, I think, do not belong in this list:
- xsl:apply-imports
- xsl:apply-templates
- xsl:call-template

Items that, I think, should be added are:
- xsl:template (perhaps in its own bullet)
- xsl:sort
- xsl:on-empty
- xsl:on-non-empty
- xsl:where-populated

(not sure this is complete)
Comment 1 Michael Kay 2016-02-09 09:24:27 UTC
I agree, the list is incomplete/incorrect. I'm inclined to replace it with a "for example" and a much shorter list; and also to add something that makes it clear the whole section is essentially tutorial/introductory: the definitive statement as to what happens to the result of a sequence constructor belongs with the spec of the containing element.
Comment 2 Michael Kay 2016-02-15 14:45:35 UTC
Resolution: as suggested, (a) don't try to make this list complete, make it an example, and (b) make it clearer that this section is expository.
Comment 3 Michael Kay 2016-02-19 12:14:51 UTC
The change has been applied.