XslCompiledTransform eats my DOCTYPE!
Posted
by
pukipuki
on Stack Overflow
See other posts from Stack Overflow
or by pukipuki
Published on 2010-12-28T21:50:34Z
Indexed on
2010/12/28
21:53 UTC
Read the original article
Hit count: 502
Made a xslt template with output instruction for <DOCTYPE>
<xsl:output media-type="text/html" method="html" encoding="windows-1251" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" omit-xml-declaration="yes"/>
In xsl-debug I'm receiving right <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
on top of the html.
But when I'm using XslCompiledTransform etc.. output starts from <html xmlns="http://www.w3.org/1999/xhtml">
. So, Doctype is missed. Why? Right properties of XslCompiledTransform initialized just like I set in .
How can I get DOCTYPE from XslCompiledTransform?
© Stack Overflow or respective owner