Thanks, David. I'm using xalan in a third party software.
I tried <xsl:output method="xml"/> and I have the namespace in the top tag.
I'll try another XSLT processor, but I probably cannot switch it.
Thanks.
Peiyun
-------
This is what I have. Do you see anything wrong?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp '<xsl:text> </xsl:text>'>
<!ENTITY nl '<xsl:text>
</xsl:text>'>
]>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:java = "java"
version="1.0" >
<xsl:output method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="no" />
<xsl:template match="/">
<xsl:element name="html" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="lang">en</xsl:attribute>&nl;
<head>&nl;
<title>.....</title>&nl;
</head>&nl;
<body bgcolor="#FFFFFF">&nl;
<a name="top" id="top"></a>&nl;
<!-- apply templates -->
</body>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list