I want to output the following XML ...

<ns1:Message xmlns:ns1="http://url-1" xmlns:ns2="http://url-2">
  <ns1:Body my-attribute="ns2:something"/>
</ns1:Message>

My XSLT code is as follows, but it creates an extra dummy attribute.

<xsl:template match="/">
  <xsl:element name="ns1:Message" namespace="http://url-1">
    <xsl:attribute name="ns2:dummy" namespace="http://url-2"/>
    <xsl:element name="ns1:Body" namespace="http://url-1">
      <xsl:attribute name="my-attribute"> ns2:something </xsl:attribute>
    </xsl:element>
  </xsl:element>
</xsl:template>

Now I can get closer to what I have, but now I have an extra dummy attribute. Here is the output ...

<?xml version="1.0" encoding="UTF-8"?>
<ns1:Message xmlns:ns1="http://url-1" xmlns:ns2="http://url-2" ns2:dummy="">
  <ns1:Body my-attribute="ns2:something"/>
</ns1:Message>


Does anyone got a better idea ?

Best regards,
Ricky