<?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>7354</bug_id>
          
          <creation_ts>2009-08-17 19:14:12 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Meaning of &quot;part of a sequence constructor&quot;</short_desc>
          <delta_ts>2010-07-20 11:38:58 +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 2.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xslt20/#forwards</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Zongaro">zongaro</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>26494</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-08-17 19:14:12 +0000</bug_when>
    <thetext>In section 3.9 of XSLT 2.0,[1] the third bullet of the second list begins, &quot;if an element in the XSLT namespace appears as part of a sequence constructor, and XSLT 2.0 does not allow such elements to appear as part of a sequence constructor,&quot; and then goes on to describe the behaviour, depending on whether the element has any xsl:fallback children.

Now consider the following fragment:

&lt;xsl:template match=&quot;/&quot;&gt;
  &lt;xsl:choose version=&quot;8.5&quot;&gt;
    &lt;xsl:when test=&quot;condition&quot;&gt;
      Do something
    &lt;/xsl:when&gt;
    &lt;xsl:otherwise&gt;
      Do something else
    &lt;/xsl:otherwise&gt;
    &lt;xsl:finally&gt;
      &lt;xsl:fallback/&gt;
    &lt;/xsl:finally&gt;
  &lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

Presumably the xsl:finally here is not considered to be &quot;part of the sequence constructor,&quot; despite the fact that it is part of the content of a node that is part of the sequence constructor.

If that interpretation is correct, I would suggest adding the following sentence after the second list to decrease the possibility of confusion:  &quot;A node is considered to be part of the sequence constructor if it is one of the sequence of sibling nodes of which the sequence constructor is composed.  Descendants of such a node are not part of the sequence constructor.&quot;

[1] http://www.w3.org/TR/xslt20/#forwards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35860</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-05-27 16:52:15 +0000</bug_when>
    <thetext>Agreed to add this clarification, or an editorial variation of it if the editor can come up with better wording.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36898</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 09:40:57 +0000</bug_when>
    <thetext>This will be erratum E49.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37007</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-20 11:38:58 +0000</bug_when>
    <thetext>I propose to handle this by changing:

if an element in the XSLT namespace appears as part of a sequence constructor

to

if an element in the XSLT namespace appears as a child of an element whose content model requires a sequence constructor</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>