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/>

--- 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 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.4.0 : Friday, 17 January 2020 16:57:54 UTC