[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: namespace - don't like to like the like

Subject: RE: namespace - don't like to like the like
From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 11:50:02 -0400
xsl output xhtml transitional
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.