After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 62458 - optional <!DOCTYPE>
optional <!DOCTYPE>
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Windows
: Normal enhancement
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-10-16 17:57 UTC by Ondrej Tucny
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ondrej Tucny 2001-10-16 17:57:07 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.
Comment 1 Daniel Veillard 2001-10-24 14:33:14 UTC
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
Comment 2 Daniel Veillard 2001-10-30 19:16:24 UTC
Should be fixed in the 1.0.6 libxslt release,

 thanks,

Daniel