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



Description stinney 2001-05-31 02:42: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:01 UTC
*** Bug 55508 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Veillard 2001-05-31 21:27:36 UTC
I think this was fixed in CVS, and indeed I can't reproduce it here
with my installed version from RPMs nor with the one from CVS:

 orchis:~/XSLT/tests/general -> xsltproc bug-32-.xsl bug-32-.xsl
<?xml version="1.0"?>
<!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<o/>
orchis:~/XSLT/tests/general -> /usr/bin/xsltproc bug-32-.xsl
bug-32-.xsl
<?xml version="1.0"?>
<!DOCTYPE o PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<o/>
orchis:~/XSLT/tests/general -> 

  Make sure you have the latest versions of libxml2 and libxslt,

Daniel
Comment 3 Daniel Veillard 2001-06-06 09:23:55 UTC
This was released in 0.11.0, so I assume the bug is closed

Daniel