[xml/sgml-pkgs] Bug#245172: xsltproc: multiple non-nested xincludes not outputting fallback

Ryan Nowakowski Ryan Nowakowski <ryan.nowakowski@s1.com>, 245172@bugs.debian.org
Wed, 21 Apr 2004 13:59:02 -0500


Package: xsltproc
Version: 1.1.6-1
Severity: normal



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

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

-- no debconf information

This bug is agaist xsltproc 1.1.6 from
http://glandium.org/debian/unstable/ which will be moved to unstable
shortly.

rnowakow@murdock:~/fallback_test$ cat test.xml 
<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> 
<article> 
        <articleinfo> 
                <title>Test Article</title> 
                        <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 
href="subtitle.xml"> 
                                <xi:fallback><subtitle><emphasis>Warning: 
please put subtitle here!</emphasis></subtitle></xi:fallback> 
                        </xi:include> 
                <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 
href="date.xml"> 
                        <xi:fallback><date><emphasis>Warning: please put date 
here!</emphasis></date></xi:fallback> 
                </xi:include> 
        </articleinfo> 
 
</article> 
rnowakow@murdock:~/fallback_test$ xsltproc 
--xinclude /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl 
test.xml > test.html 
warning: failed to load external entity "subtitle.xml" 
warning: failed to load external entity "date.xml" 
warning: failed to load external entity "date.xml" 
 
rnowakow@murdock:~/fallback_test$ cat test.html 
<html><head><meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title>Test Article</title><meta name="generator" 
content="DocBook XSL Stylesheets V1.64.1"></head><body bgcolor="white" 
text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div 
class="article" lang="en"><div class="titlepage"><div><div><h1 
class="title"><a name="id2428485"></a>Test Article</h1></div><div><h3 
class="subtitle"><i><span class="emphasis"><em>Warning: please put subtitle 
here!</em></span></i></h3></div></div><div></div><hr></div></div></body></html> 
 
 
 
<date><emphasis>Warning: please put date here!</emphasis></date> 
...should also be output but is not.

A bug has already been reported upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=140763