I need to add an attribute with a static value to all nodes of a specific type in an existing xml file using xslt. Basically something like this:
<xsl:template match="mynode">
<xsl:copy>
<xsl:attribute name="newatt">static string</xsl:attribute>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
(or something like that) inserted into an XSLT that does an identity transform (see http://www.dpawson.co.uk/xsl/sect2/identity.html) should do the trick for you.