So anyways, the above is what I get if I don't use an identity transformation that strips namespaces. My original question was whether there is a cleaner solution than copying (manual, recursive, likely slower than the built-in xsl:copy-of operation) to remove these redundant namespace declarations from the xhtml output.