[xml/sgml-pkgs] Bug#223375: marked as done (xsltproc: Wrong return code on parser error)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 10 Aug 2004 07:03:06 -0700

Your message dated Tue, 10 Aug 2004 22:47:06 +0900
with message-id <20040810134706.GB15818@vaio.glandium.org>
and subject line Actually, not a bug
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 9 Dec 2003 00:27:49 +0000
>From bonniot@users.sourceforge.net Mon Dec 08 18:27:48 2003
Return-path: <bonniot@users.sourceforge.net>
Received: from 96.75-182-adsl-pool.axelero.hu (bonniot.dyndns.org) [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ATTxS-0007pw-00; Mon, 08 Dec 2003 16:34:26 -0600
Received: from daniel by bonniot.dyndns.org with local (Exim 3.36 #1 (Debian))
	id 1ATTxQ-0002Bv-00; Mon, 08 Dec 2003 23:34:24 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Daniel Bonniot <bonniot@users.sourceforge.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xsltproc: Wrong return code on parser error
X-Mailer: reportbug 2.36
Date: Mon, 08 Dec 2003 23:34:24 +0100
Message-Id: <E1ATTxQ-0002Bv-00@bonniot.dyndns.org>
Sender: Daniel Bonniot <bonniot@users.sourceforge.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 

Package: xsltproc
Version: 1.0.33-3
Severity: normal

xsltproc sometimes return with an error code of 0 (OK) when there was a
parser error. For instance:

$ xsltproc --nonet -noout new.xsl install.xml
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
install.xml:6: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
  install.xml:137: parser error : Entity 'quest' not defined
$ echo $?

>From the manpage, it seems that it should return 6: error in one of the 
documents. If the current behaviour is intended, then it would be nice
to have a '-strict' option to make it return non-zero on such errors.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux blanche 2.4.21-4-686 #1 Sat Aug 2 23:27:25 EST 2003 i686

Versions of packages xsltproc depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libxml2                     2.6.2-1      GNOME XML library
ii  libxslt1                    1.0.33-3     XSLT processing library - runtime 
ii  zlib1g                      1:1.1.4-16   compression library - runtime

-- no debconf information

Received: (at 223375-done) by bugs.debian.org; 10 Aug 2004 13:47:51 +0000
>From mh@glandium.org Tue Aug 10 06:47:51 2004
Return-path: <mh@glandium.org>
Received: from d21.haichifl6.vectant.ne.jp (glandium.org) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BuWyk-0001Y6-00; Tue, 10 Aug 2004 06:47:51 -0700
Received: from mh by glandium.org with local (Exim 3.36 #1 (Debian))
	id 1BuWy2-0006Xo-00
	for <223375-done@bugs.debian.org>; Tue, 10 Aug 2004 22:47:06 +0900
Date: Tue, 10 Aug 2004 22:47:06 +0900
From: Mike Hommey <mh@glandium.org>
To: 223375-done@bugs.debian.org
Subject: Actually, not a bug
Message-ID: <20040810134706.GB15818@vaio.glandium.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040803i
Delivered-To: 223375-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 


Actually, the bug you reported is not a bug. XSLT processing doesn't
require the entities to be resolved, and can still go on in case they're
not, making the parsing errors only warnings and not fatal errors.

See the thread at
http://mail.gnome.org/archives/xslt/2004-August/msg00002.html for more

Closing the bug.