[xml/sgml-pkgs] Bug#352634: xmllint --path does not have the expected effect (refer to xsltproc)

Daniel Leidert daniel.leidert.spam at gmx.net
Mon Feb 13 05:04:34 UTC 2006


Package: libxml2-utils
Version: 2.6.23.dfsg.1-0.1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I will try to describe the problem: I build a few manpages using
automake/autoconf. The manpages need a few entities, which I moved into
a file man_entities.dtd.in, which is processed by autoconf. All XML files
import this file using

  <!ENTITY % _man_entities SYSTEM "man_entities.dtd">
  %_man_entities;
		
If I now run make distcheck, the .dtd file is produced in _build. To
process the file I use

  xsltproc --path $(srcdir):$(builddir) man.xsl foobar.xml

which produces my expected manpage. But when I want to check the validity of
the XML file using the same syntax

  xmllint --noout --path $(srcdir):$(builddir) --dtdvalid
  	file:///path/to/docbookx.dtd --valid foobar.xml

it fails with

  I/O error : failed to load external entity "foobar.xml"
  ../foobar.xml:line: I/O error : failed to load external entity "../man_entities.dtd"
  %_man_entities;
  ^
  %_man_entities;
  ^
  ../foobar.xml:line: I/O error : failed to load external entity "../man_entities.dtd"
  %_man_entities;
  ^
  %_man_entities;
  ^

Is it possible to fix this so it loads DTD(s) from the specified --path
option too (as xsltproc seems to work)? If you want to have a look
yourself, you can find the related sources, where I observe this problem
here: http://cvs.wgdd.de/cgi-bin/cvsweb/fglrx_man/

If you need more info, please let me know.

Regards, Daniel


- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.02060113
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages libxml2-utils depends on:
ii  libc6                  2.3.5-13          GNU C Library: Shared libraries an
ii  libncurses5            5.5-1             Shared libraries for terminal hand
ii  libreadline5           5.1-6             GNU readline and history libraries
ii  libxml2                2.6.23.dfsg.1-0.1 GNOME XML library
ii  zlib1g                 1:1.2.3-9         compression library - runtime

libxml2-utils recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD8BNidg0kG0+YFBERAq0hAKCMWDvo3z7YVDJeh/C4pd15kSpxlQCaA9Jn
pvICNq6ZCsfH4LyXrJTCACw=
=X6JV
-----END PGP SIGNATURE-----




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