The following rule generates an attribute name in the target document with the value of the attribute NAME in the original document.
<xsl:attribute name="name">
<xsl:value-of select="NAME">
</xsl:attribute>
This functionality is only available for certain module packages.