W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2016

[Bug 29798] New: [XSLT30]Request for clarification on built-in template rules for arrays

From: <bugzilla@jessica.w3.org>
Date: Mon, 29 Aug 2016 10:28:44 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29798-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29798

            Bug ID: 29798
           Summary: [XSLT30]Request for clarification on built-in template
                    rules for arrays
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: martin.honnen@gmx.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

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?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 29 August 2016 10:28:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:01 UTC