[xml/sgml-pkgs] Bug#589875: libxslt1.1: should output encoding declaration with method=xml

brian m. carlson sandals at crustytoothpaste.net
Wed Jul 21 20:05:04 UTC 2010


Package: libxslt1.1
Version: 1.1.26-5
Severity: minor

When using the output method xml (whether implicitly or explicitly),
libxslt1.1 outputs an XML declaration.  However, it does not include an
encoding pseudo-attribute.  Obviously, libxslt1.1 knows what encoding it
used to output the data (hopefully UTF-8) and it should be explicit
about that.

The XSLT spec says:

  The xml output method should output an XML declaration unless the
  omit-xml-declaration attribute has the value yes. The XML declaration
  should include both version information and an encoding declaration.

Please be sure that when emitting an encoding declaration that you use
the upper-case form of "UTF-8" (see #568347).  I have not included a
testcase because this behavior is trivially reproducible with xsltproc.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxslt1.1 depends on:
ii  libc6                       2.11.2-2     Embedded GNU C Library: Shared lib
ii  libgcrypt11                 1.4.5-2      LGPL Crypto library - runtime libr
ii  libxml2                     2.7.7.dfsg-4 GNOME XML library

libxslt1.1 recommends no packages.

libxslt1.1 suggests no packages.

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20100721/56f98f14/attachment.pgp>


More information about the debian-xml-sgml-pkgs mailing list