[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Outputing SGML DOCTYPE in Prolog to HTML Document
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|