I have an XML document with un-namespaced elements, and I want to use XSLT to add namespaces to them. Most elements will be in namespace A; a few will be in namespace B. How
You will need two main ingredients for this recipe.
The sauce stock will be the identity transform, and the main flavor will be given by the namespace
attribute to xsl:element.
The following, untested code, should add the http://example.com/ namespace to all elements.
Personal message: Hello, Jeni Tennison. I know you are reading this.