Is it possible to do the following?

Given an ADODB.Recordset (ADO 2.5), transform the attribute based xml
stream (where each column is an attribute of a z:row element) to an
element based stream (where each column is it's own elemement node) ?

For example, my query returns the following from SQL Server:
<z:row ContactName="Rubble, Barney" StatusDate="2001-04-17" />

I'd like to apply an XSLT stylesheet to transform it to this:

<ContactName>Rubble, Barney</ContactName>

The hard part that I've run into is that I'd like the stylesheet to be
generic enough for any arbirtrary ADO sourced XML stream. I thought
this would be easy since they all share the same structure... but I'm
stuck on how to code a variable an <xsl:Element name="xxx"> in a way
that inserts the current attribute name.

Here's what I've come up with so far:

<xslutput method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="*/rs:data" xml:space="default">
<xsl:for-each select="z:row">
<xsl:element name="Data">
<xsl:for-each select="@*">
<xsl:variable name="c" select="@name"/>
<xsl:element name="$c">
<xsl:value-of select="*"/>

However, when I run the transform I get an error that tells me that
'this name cannot begin with the $ character'.

Does anyone have a suggestion for me?