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 29798 - [XSLT30]Request for clarification on built-in template rules for arrays
Summary: [XSLT30]Request for clarification on built-in template rules for arrays
Status: RESOLVED 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-08-29 10:28 UTC by Martin Honnen
Modified: 2016-09-09 21:45 UTC (History)
0 users

See Also:


Attachments

Description Martin Honnen 2016-08-29 10:28:44 UTC
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

<xsl:template match=".[. instance of array(*)]" mode="M">
  <xsl:apply-templates mode="#current"/>
</xsl:template>

Is there a 'select="?*"' missing on the 'xsl:apply-templates'? 

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

<xsl:template match=".[. instance of array(*)]" mode="M">
  <xsl:apply-templates mode="#current"/>
</xsl:template>

It seems again a 'select="?*"' missing on the 'xsl:apply-templates'.

Or why does the text suggest "the select attribute set to ?*" while the samples don't do that?
Comment 1 Michael Kay 2016-09-07 23:01:00 UTC
> Is there a 'select="?*"' missing on the 'xsl:apply-templates'?

Yes.

Thanks for pointing out these typos.
Comment 2 Michael Kay 2016-09-09 21:45:55 UTC
The corrections have been applied.