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 55508 - duplicate !DOCTYPE emitted
duplicate !DOCTYPE emitted
Status: VERIFIED DUPLICATE of bug 55505
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-05-31 03:41 UTC by stinney
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description stinney 2001-05-31 03:41:16 UTC
With libxslt 0.10.0, given xo.xsl:

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml"
  doctype-public="-//W3C//DTD XHTML 1.1//EN"
  doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>

<xsl:template match="/">
  <o/>
</xsl:template>

</xsl:stylesheet>

the command 

xsltproc xo.xsl xo.xsl

produces

<?xml version="1.0"?>
<!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<o/>

(happens with any .xml file as input, not just xo.xsl).

That should be a bug, no?

 Steve
Comment 1 stinney 2001-05-31 03:43:02 UTC

*** This bug has been marked as a duplicate of 55505 ***