<xsl:stylesheet  version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns="http://www.w3.org/1999/xhtml" 
 xmlns:svg="http://www.w3.org/2000/svg"
 xmlns:html="http://www.w3.org/1999/xhtml" 
 xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:my="http://example.com/namespace" > 
	<xsl:template match="/">
			<xsl:apply-templates />
	</xsl:template>
        
	<xsl:template match="*">
		<xsl:copy>
		<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>
        
	<xsl:template match="@*">
		<xsl:copy/>
	</xsl:template> 
        
	<xsl:template match="processing-instruction()">
		<xsl:copy>	
                <xsl:apply-templates select="@*|node()|text"/>
		</xsl:copy>
	</xsl:template>

        <xsl:template match="my:rect">
        <svg:svg width="100" height="100">
        <svg:rect x="0" y="0" width="100" height="100"/>
        </svg:svg>
        </xsl:template>
        
 </xsl:stylesheet>
