Thread: $@src
View Single Post
 
Old March 12th, 2008, 03:38 PM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You can refer to an attribute as simply @src, provided you are in the correct context.

You can assign an attribute to a variable like so:

<xsl:variable name="poopsrc" select="/poop/@src" />

/- Sam Judson : Wrox Technical Editor -/