Thanks for the responce, boen_robot. No, the <xml:text> wasn't necessary at all -- it was a byproduct of having started learning XSLT yesterday Ultimately, I ended up NOT using a variable, and instead using the XSLT 2.0 <xsl:namespace> feature, thusly:
<xsl:template match="Foo"> <xsl:element name="xs:element"> <xsl:attribute name="ref"> <xsl:value-of select="concat(Bar, ':', Bar)"/> </xsl:attribute> <xsl:namespace name="{Bar}"> <xsl:value-of select="concat('A:B:C:', Bar)"/> </xsl:namespace> </xsl:element> </xsl:template>
I'll put your example as a comment in the transform, just in case I need to revert back to XSLT 1.0 features :)Cheers,David