Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the @ (at) symbol used for in XSLT?

Tags:

Please explain what is the use of the @ (at) symbol in XSLT with an example.

like image 661
Lokesh Yadav Avatar asked May 31 '10 10:05

Lokesh Yadav


People also ask

What is Dot XSLT?

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.


2 Answers

It represents an attribute in XPath. See here for more details.

like image 163
Brian Agnew Avatar answered Sep 25 '22 08:09

Brian Agnew


From the XPath 1.0 W3C Spec (fifth bullet):

@* selects all the attributes of the context node

@* is a shorthand for attribute::*

like image 29
Dimitre Novatchev Avatar answered Sep 22 '22 08:09

Dimitre Novatchev