[xsl] namespace - don't like to like the like

Subject: [xsl] namespace - don't like to like the like
From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 10:37:09 -0400
I'm trying hard to produce an (X)HTML file like this:
<!DOCTYPE .....>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml";>
.....
</html>
I want to declare a default namespace for the html tags (I was asked to do
this though it won't make any difference for the browsers at leat for now.
XHTML insists you declare a namespace as I read the standard).

I tried:
<xsl:tylesheet ...>
      <xsl:template match="/">
            <html lang="en" xmlns="http://www.w3.org/1999/xhtml";>
               .....
           </html>
      </xsl:template>
</xsl:stylesheet>

I tried the <xsl:element name="html" namespace="....."> too. The namespace
was not in the HTML file.

I always get <html lang="en">.

Have I missed the obvious and nobody wants to post an answer or else?

Thanks for your help.

	Peiyun

p.s. I wonder if my message is posted. Can someone please let me know? 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread