<?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>29798</bug_id>
          
          <creation_ts>2016-08-29 10:28:44 +0000</creation_ts>
          <short_desc>[XSLT30]Request for clarification on built-in template rules for arrays</short_desc>
          <delta_ts>2016-09-09 21:45:55 +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>RESOLVED</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="Martin Honnen">martin.honnen</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>127255</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Honnen">martin.honnen</who>
    <bug_when>2016-08-29 10:28:44 +0000</bug_when>
    <thetext>In section https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/#built-in-templates-text-only-copy the text for arrays says:

The built-in template rule for arrays (see 27.7.1 Arrays) is to apply templates to the members of the array. It is equivalent to invoking xsl:apply-templates with the select attribute set to ?* (which selects the members of the array)...

However, the XSLT snippet given then is

&lt;xsl:template match=&quot;.[. instance of array(*)]&quot; mode=&quot;M&quot;&gt;
  &lt;xsl:apply-templates mode=&quot;#current&quot;/&gt;
&lt;/xsl:template&gt;

Is there a &apos;select=&quot;?*&quot;&apos; missing on the &apos;xsl:apply-templates&apos;? 

The same problem occurs in section https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/#built-in-templates-shallow-skip, again the text says:

The built-in template rule for arrays (see 27.7.1 Arrays) is to apply templates to the members of the array. It is equivalent to invoking xsl:apply-templates with the select attribute set to ?* (which selects the members of the array)...

however, the XSLT snippet given is

&lt;xsl:template match=&quot;.[. instance of array(*)]&quot; mode=&quot;M&quot;&gt;
  &lt;xsl:apply-templates mode=&quot;#current&quot;/&gt;
&lt;/xsl:template&gt;

It seems again a &apos;select=&quot;?*&quot;&apos; missing on the &apos;xsl:apply-templates&apos;.

Or why does the text suggest &quot;the select attribute set to ?*&quot; while the samples don&apos;t do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127332</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-07 23:01:00 +0000</bug_when>
    <thetext>&gt; Is there a &apos;select=&quot;?*&quot;&apos; missing on the &apos;xsl:apply-templates&apos;?

Yes.

Thanks for pointing out these typos.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127359</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-09 21:45:55 +0000</bug_when>
    <thetext>The corrections have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>