RE: [xsl] Control DOCTYPE for HTML output

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

> 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"
>     "";>
> <html xmlns:ms="urn:schemas-microsoft-com:xslt"
> xmlns="";>

Did you even try to search for "doctype" in <>?

See <>: 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 <>, the XHTML DTD doesn't allow that namespace declaration.


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

 XSL-List info and archive:

Current Thread