GNOME Bugzilla – Bug 62458
optional <!DOCTYPE>
Last modified: 2009-08-15 18:40:50 UTC
The generation of <!DOCTYPE> shloud be optional. I'm using xsltproc to generate fragments of HTML code (e.g. a <body> part while the <head> part is generated by an eclosing PHP script), so in my case there appear multiple <!DOCTYPE> declarations in the resulting page constructed from such fragments. There shloud be a "--nodoctype" command line switch.
Okay it is actually a bug. If the xsl:output states method="html" but doesn't indicate a version, nor system or public identifier, the DOCTYPE node should not be genrated. I fixed this in CVS, it requires changes to both libxslt and libxml so I don't have a single patch to provide, but it will be fixed in the next releases. thanks for the feedback ! Daniel
Should be fixed in the 1.0.6 libxslt release, thanks, Daniel