> What name space may i use that is compatible both with : > <xsl:attribute name="xmlns:mytree"/> and <xsl:variable> I think you should use the http://www.w3.org/1999/XSL/Transform namespace and <xsl:attribute name="mytree" namespace="xmlns"/>