A simple question about XSLT default rules. In the recommendation there is
a default rule as this:
<xsl:template match="text() | @*">
So, if you have a XML source
and an XSLT sheet
it will result -- according to the default rule -- into
Is that right? Or did I get it wrong? I'm a bit surprised because this
behaviour doesn't make any sense to me. I cant think of
any example where this behaviour is useful. Who needs the attribute values?
I'm ok with
but not with the @* in it.
O.K., I browsed through the Data Model section in XPath and found the
"Each element node has an associated set of attribute nodes; the element is
the parent of each of these attribute nodes;
however, an attribute node is not a child of its parent element."
Sorry, but that's simply nonsens, isn't it? However, that would solve my
Every hint or comment is welcome!
([log in to unmask])