An XML document has an element with an attribute and i'm trying to assign that attribute to a variable in XSLT. Can't remember how to do that. HELP!!XML:<1stElement> <2ndElement type="leaf"> <3rdElement></3rdElement>XSL:<xsl:variable name="type" select="1stElement/2ndElement **What goes here, to link to the attribute of 2nd Element** " />