W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2015

[Bug 28774] [XSLT30] Suggestion: allow shallow skip to match on non element nodes

From: <bugzilla@jessica.w3.org>
Date: Mon, 08 Jun 2015 07:37:19 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28774-523-d2JoFEvYxO@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28774

--- Comment #6 from Michael Kay <mike@saxonica.com> ---
The shallow-skip section gives two template rules:

<xsl:template match="document-node()|element()" mode="M">
  <xsl:apply-templates mode="#current"/>
</xsl:template>

<xsl:template match="." mode="M"/>

I would have assumed that most readers know that <xsl:apply-templates/> means
<xsl:apply-templates select="child::node()"/>, but if people feel that the
latter would add clarity, I'm happy to oblige.

Perhaps readers are less familiar with the fact that match="." matches anything
(including text nodes, processing instruction and comment nodes, attribute
nodes, atomic values etc). But we do attempt to explain it in the prose.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 8 June 2015 07:37:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 8 June 2015 07:37:23 UTC