<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29436</bug_id>
          
          <creation_ts>2016-02-08 21:23:11 +0000</creation_ts>
          <short_desc>[XSLT30] List in 5.7 sequence constructor seems a bit off</short_desc>
          <delta_ts>2016-02-19 12:14:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124915</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-02-08 21:23:11 +0000</bug_when>
    <thetext>Under 5.7, second bullet (the part after the numbered list) constains the following:

&lt;quote&gt;
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. 
&lt;/quote&gt;

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 &quot;as&quot; 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124930</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-02-09 09:24:27 +0000</bug_when>
    <thetext>I agree, the list is incomplete/incorrect. I&apos;m inclined to replace it with a &quot;for example&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125043</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-02-15 14:45:35 +0000</bug_when>
    <thetext>Resolution: as suggested, (a) don&apos;t try to make this list complete, make it an example, and (b) make it clearer that this section is expository.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125158</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-02-19 12:14:51 +0000</bug_when>
    <thetext>The change has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>