Please explain what is the use of the @ (at) symbol in XSLT with an example.
Since XPath is the common sub-language of both XQuery and XSLT, everything in this series applies both to XQuery and XSLT. The dot, or period, character (“.”) in XPath is called the “context item expression” because it refers to the context item.
It represents an attribute in XPath. See here for more details.
From the XPath 1.0 W3C Spec (fifth bullet):
@* selects all the attributes of the context node
@*
is a shorthand for attribute::*
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