To dynamically set namespaces at run time, use the <xsl:element>attribute value template.
<xsl:element name="SomeElement" namespace="{$some_ns}">
</xsl:element>
If you do not need to set dynamic namespaces, declare a prefix for them and use this:
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:foo="http://something.com/misc/blah/1.0"
>
<xsl:template match="/">
<foo:SomeElement>
</foo:SomeElement>
</xsl:template>
</xsl:stylesheet>
:
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://something.com/misc/blah/1.0"
>
<xsl:template match="/">
<SomeElement>
</SomeElement>
</xsl:template>
</xsl:stylesheet>