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

Outputing SGML DOCTYPE in Prolog to HTML Document

Subject: Outputing SGML DOCTYPE in Prolog to HTML Document
From: "Vyse, Jonathan" <Jonathan.Vyse@xxxxxxxxxxxxxxxxx>
Date: Wed, 7 Oct 1998 10:54:48 +0200
sgml doctype
I want to ensure my HTML generated from an XSL stylesheet contains a DOCTYPE
declaration.

Is the correct approach to use CDATA, as in the example below?

Should using a namespace like <html:html
xmlns:html='http://www.w3.org/TR/REC-html40'> generate a DOCTYPE
declaration?

Yours
Jon

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
	xmlns:fo="http://www.w3.org/TR/WD-xsl/FO"
		result-ns="html" indent-result="yes">
<xsl:template match='/'>
   <xsl:text><![CDATA[<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">]]></xsl:text>
    <html>
    <head><title>My Doc</title></head>
    <body>
    <xsl:process-children/>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>



> 	Jonathan Vyse				
> 	Equities Research IT Analyst
> 	Dresdner Kleinwort Benson
> 	Tel: +44 171 475 8765 / 623 8000
> 	Fax: +44 171 475 9540 / 9530
> 	mailto:Jonathan.Vyse@xxxxxxxxxxxxxxxxx
> 	http://www.dresdnerkb.com
> 
> 


 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.