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: Sun, 07 Jun 2015 19:49:34 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28774-523-f3xkGuBwTx@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28774

--- Comment #4 from Michael Kay <mike@saxonica.com> ---
The built-in template for element nodes does apply-templates to child nodes, so
I don't see a problem with processing text nodes: if there is a template rule
that matches text nodes then it will fire. 

It's true that it doesn't apply-templates to attribute nodes, so your example
using attribute rules wouldn't work. That's something we could consider
changing: that is, make the default template for element nodes apply templates
to attributes as well as children. That would align it with shallow-copy. It
would depart from the default rule for text-only-copy, which we cannot change
for compatibility reasons.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 7 June 2015 19:49:37 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 7 June 2015 19:49:37 UTC