Subject: Re: [xsl] xmlns="" / XML to XHTML|
From: Alexander Nichau <ml@xxxxxxxxxx>
Date: Tue, 13 Sep 2005 13:45:54 +0200
If you've written an <html> element in the XHTML namespace, and then copy the <h2> element from the source as a child of this, then I would expect the xmlns="" to appear. That's because the <h2> element is in no namespace. It must stay in the same namespace (or non-namespace) when copied, and the only way to keep it in the non-namespace is to add an xmlns="" declaration.
<html lang="de" xml:lang="de"> <xsl:attribute name="xmlns">http://www.w3.org/1999/xhtml</xsl:attribute>
So far, Alexander