Package: docbook-xsl
Version: 1.68.1-0.1
Severity: important

When using xmlproc to transform the book-multi.txt which comes with 
the asciidoc package (debian package version 7.0.2-4). 

The toolchainto turn this from asciidoc formatted .txt to pdf is as 
follows (as documeted at 
http://www.methods.co.nz/asciidoc/userguide.html, section 28): 

1) run "asciidoc -d book -b docbook book-multi.txt"
2) run "xsltproc --nonet 
/usr/share/xml/docbook/stylesheet/nwalsh/fo/fo.xsl 
book-multi.xml > book-multi.fo"
3) run "fop book-multi.fo test.pdf"

However, step 2 seems to be generating output that does not conform to 
the fop parser (debian fop 1:0.20.5-8, j2re1.4 packaged on this system, 
dpkg lists the version as 1.4.0.99beta-1). The error message 
looks like this:

[EMAIL PROTECTED]:~/tmp/asciidoc$ fop book-multi.fo test.pdf [INFO] Using 
org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[Fatal Error] book-multi.fo:4:5: Content is not allowed in prolog.
[ERROR] Content is not allowed in prolog.

If I allow xsltproc to do 2 things differently, the rendering chain 
completes.

1) Use the fo.xsl from the asciidoc distribution 
(/usr/share/doc/asciidoc/fo.xsl.gz)
2) remove the --nonet flag from xsltproc to allow it to resolve links 
via the network.

The output between the two methods is very different. For the invalid 
output, the following is generated:

<?xml version="1.0"?>


    Multi-Part Book Title Goes Here
    Dec 2003

        Author's
        Name

    AN

1.0Dec 2003AN
[etc]

The valid output looks like this:

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
font-family="serif,Symbol,ZapfDingbats" font-size="12pt" 
text-align="left" line-height="normal" 
font-selection-strategy="character-by-character" 
line-height-shift-adjustment="disregard-shifts" 
language="en"><fo:layout-master-set><fo:simple-page-master 
master-name="blank" page-width="210mm" page-height="297mm" 
margin-top="0.5in" margin-bottom="0.25in" margin-left="0.5in - -12pt" 
margin-right="0.5in"><fo:region-body display-align="center" 
margin-bottom="0.5in" margin-top="0.5in"/><fo:region-before 
region-name="xsl-region-before-blank" extent="0.4in" 
display-align="before"/><fo:region-after 
region-name="xsl-region-after-blank" extent="0.4in" 
display-align="after"/></fo:simple-page-master><fo:simple-page-master 
master-name="titlepage-first" page-width="210mm" page-height="297mm" 
margin-top="0.5in" margin-bottom="0.25in" margin-left="0.5in - -12pt" 
margin-right="0.5in"><fo:region-body margin-bottom="0.5in" 
margin-top="0.5in" column-gap="12pt" column-count="1"/>

[unwrapped in its source form, but the editor is mangling this]

Probably updating the package to the current docbook-xsl version will 
resolve this issue, as the asciidoc maintainer has success using the 
source package (I haven't tried yet). 

Currently this makes asciidoc and fop unuseable to me.

Thanks,

-Peter



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versiouns of packages docbook-xsl depends on:
ii  xml-core                      0.09       XML infrastructure and XML catalog

Versions of packages docbook-xsl recommends:
ii  apache [httpd]                1.3.34-1   versatile, high-performance HTTP s
ii  docbook-xml                   4.4-4      standard XML documentation system,
ii  elinks [www-browser]          0.10.6-1   advanced text-mode WWW browser
ii  firefox [www-browser]         1.5.dfsg-2 lightweight web browser based on M
ii  galeon [www-browser]          2.0.0-1    GNOME web browser for advanced use
ii  mozilla-browser [www-browser] 2:1.7.12-1 The Mozilla Internet application s

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to