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