[xml/sgml-pkgs] Bug#246181: libxml2: xmllint and xsltproc produce badly formatted output

Sebastian Reichelt Sebastian Reichelt <SebastianR@gmx.de>, 246181@bugs.debian.org
Tue, 27 Apr 2004 20:05:02 +0200


Package: libxml2
Version: 2.6.9-1
Severity: minor
Tags: sid

The following small XML file (not valid to save space) produces badly
formatted output when run through "xmllint --format": There is a line break in
front of the "</abbr>". It used to work fine until about a month ago, and at
the same time setting "indent=yes" in an XSLT stylesheet started showing a
similar problem when run though xsltproc. Therefore I think it is an error in
libxml2.

If you remove the DOCTYPE declaration, the output is fine. Maybe this helps in
tracking the error. (Yes, it also happens if the file is actually valid.)

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <body>
    <h1><abbr>a</abbr> b</h1>
  </body>
</html>

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages libxml2 depends on:
ii  libc6                       2.3.2.ds1-12 GNU C Library: Shared libraries an
ii  zlib1g                      1:1.2.1-5    compression library - runtime

-- no debconf information