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

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