tags:

views:

55

answers:

2

Please explain what is the use of @ symbol in XSLT with example.

Cheers! Lokesh Yadav

+5  A: 

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

Brian Agnew
correct, for example `<xsl:value-of select="node/@id" />` will display 123 (based on `<node id="123" />`)
CharlesLeaf
thanks a lot Brian!
Lokesh
+1  A: 

From the XPath 1.0 W3C Spec (fifth bullet):

@* selects all the attributes of the context node

@* is a shorthand for attribute::*

Dimitre Novatchev