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

Subject: RE: [xsl] namespace - don't like to like the like
From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 11:50:02 -0400
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>&#x0020;</xsl:text>'>
   <!ENTITY nl '<xsl:text>&#x000A;</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


Current Thread