Lokesh Yadav
Lokesh Yadav

Reputation: 1602

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

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

Upvotes: 25

Views: 21846

Answers (2)

Dimitre Novatchev
Dimitre Novatchev

Reputation: 243449

From the XPath 1.0 W3C Spec (fifth bullet):

@* selects all the attributes of the context node

@* is a shorthand for attribute::*

Upvotes: 10

Brian Agnew
Brian Agnew

Reputation: 272267

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

Upvotes: 27

Related Questions