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

RE: Control DOCTYPE for HTML output

Subject: RE: Control DOCTYPE for HTML output
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 4 Feb 2004 08:30:07 +0200
doctype en
Hi,

> How do I control the doctype?
> 
> My stylesheet kicks out the following doctype:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html xmlns:ms="urn:schemas-microsoft-com:xslt">
> 
> However, I need to produce the following:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns:ms="urn:schemas-microsoft-com:xslt"
> xmlns="http://www.w3.org/1999/xhtml">

Did you even try to search for "doctype" in <http://www.w3.org/TR/xslt>?

See <http://www.w3.org/TR/xslt#output>: set the output method to "xml", create the elements into the result tree in XHTML namespace, and set the doctype-public and doctype-system to their corresponding values. Also, add "ms" prefix to the exclude-result-prefixes attribute of the xsl:stylesheet element <http://www.w3.org/TR/xslt#stylesheet-element>, the XHTML DTD doesn't allow that namespace declaration.

Cheers,

Jarno - Suicide Commando: Face Of Death (Waking Up The Dancefloor Mix By Implant)

 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.