[xml/sgml-pkgs] Bug#318817: xsltproc: Trys to access network entity
when --nonet is specified
Karl O. Pinc
kop at meme.com
Sun Jul 17 23:24:01 UTC 2005
Package: xsltproc
Version: 1.1.12-8
Severity: minor
When I generate any sort of output from docbook I get
the message:
I/O error : Attempt to load network entity
http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd
I see that xsltproc is called with '--nonet' so I would not expect to
see this message. I'm not sure this is the package where the problem
lies....
I can generate txt output just fine, AFIK, but not PDF output. I'm
filing another bug for the PDF problem in case it's unrelated.
See also: Debian bug #286540
I note that wget can retrieve the url content without a problem.
The first 3 lines of my xml file are:
<?xml version='1.0'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
There's no problem on a RedHat AS 3 system upgraded to support
docbook 4.3 with rebuilt rpms from Fedora (or maybe AS4):
docbook-style-xsl-1.65.1-2.noarch.rpm
docbook-dtds-1.0-25.noarch.rpm
docbook-utils-0.6.14-4.noarch.rpm
docbook-style-dsssl-1.78-4.noarch.rpm
docbook-utils-pdf-0.6.14-4.noarch.rpm
I also note (FWIW) that:
/usr/share/xml/docbook/schema/dtd/4.3/catalog
says:
-- public identifiers override system identifiers, if both are supplied --
OVERRIDE YES
This is different from the RH system.
Or maybe there some other problem in the mapping to local files?
Complete example transcript:
---------<snip>-------------
$ xmlto -v txt babase_system.xml
Format script: /usr/share/xmlto/format/docbook/txt
Convert to HTML (no chunks)
Real stylesheet: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
xmllint >/dev/null --xinclude --postvalid /home/kop/biz/babase/tla/babase-live/doc/babase_system.xml
Stylesheet: /tmp/xmlto-xsl.AehTPt
xsltproc --nonet --xinclude \
-o /tmp/xmlto.GB0nmx/babase_system.proc \
/tmp/xmlto-xsl.AehTPt \
/home/kop/biz/babase/tla/babase-live/doc/babase_system.xml
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd
/home/kop/biz/babase/tla/babase-live/doc/babase_system.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
^
Convert HTML to ASCII
$
--------<snip>----------
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages xsltproc depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgcrypt11 1.2.0-11.1 LGPL Crypto library - runtime libr
ii libgpg-error0 1.0-1 library for common error values an
ii libxml2 2.6.16-7 GNOME XML library
ii libxslt1.1 1.1.12-8 XSLT processing library - runtime
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
More information about the debian-xml-sgml-pkgs
mailing list