XSL and Attributes

[SIZE=1]Is there a way to use XSL to format a tag’s attribute?

For example, if you had

<tag attribute="value" />

could you take that and use something like

<xsl:value-of select="attribute"/>

?

[SIZE=2]Edit: The answer is: Yes. Use:

<xsl:attribute name="elementAttributeName">someValue</xsl:attribute>

[/SIZE]
[/SIZE]