Microsoft's XSLT template on Visual Studio has something like:
<xsl:template match="@* | node()">
What is @*?
@*
is short for attribute::*
and selects all attributes of the context node (or, in an XSLT match pattern, it's more appropriate to say that it matches all attributes). From the XPath spec:
There is also an abbreviation for attributes:
attribute::
can be abbreviated to@
. For example, a location pathpara[@type="warning"]
is short forchild::para[attribute::type="warning"]
and so selectspara
children with atype
attribute with value equal towarning
.
That means match any attribute.
http://www.w3.org/TR/1999/REC-xpath-19991116/#path-abbrev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With