Solve XSLT / FOP interaction bug on qandaset

The qandaset had a defaultlabel="none" attribute.  This is DocBook legal, but
the XSLT layer was producing FO output that included an empty
fo:list-item-label, with the following error message:
  "fo:list-item-label" is missing child elements. Required content model:
  marker* (%block;)+
By omitting the defaultlabel="none", the entire problem disappears.

Also, adjusted paths for reference to the ./Annimals/ which are now in
./resources/Annimals/.
This commit is contained in:
Martin A. Brown 2016-01-27 21:44:53 -08:00
parent 0301fc15cd
commit 4df140ef1b
1 changed files with 20 additions and 12 deletions

View File

@ -1,12 +1,13 @@
<?xml version='1.0' encoding="iso-8859-1" standalone='no'?>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" []>
<book><?dbhtml filename="coverpage.html"?>
<bookinfo>
<mediaobject>
<imageobject><imagedata fileref="./Annimals/Chapter3.gif" format="GIF"/></imageobject>
<imageobject><imagedata fileref="./resources/resources/Annimals/Chapter3.gif" format="GIF"/></imageobject>
<textobject><phrase>Wolf</phrase></textobject>
</mediaobject>
<mediaobject><imageobject><imagedata fileref="./images/OpenNA-NewLogo-Penguin.gif" format="GIF"/></imageobject>
@ -249,7 +250,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter12.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter12.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>Owl</phrase></textobject>
</mediaobject>
@ -564,7 +565,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter7-8.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter7-8.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>Turtle!</phrase></textobject>
</mediaobject>
@ -3146,7 +3147,7 @@
</simplelist>
</para>
</section>
<section><?dbhtml filename="chap4sec26"?>
<section><?dbhtml filename="./resources/chap4sec26"?>
<title>Verify,Cross-check</title>
<para>
After we have uninstalled all the software that must be uninstalled after the installation of our Linux server see <link linkend="ch3sc3.1-1">Software that must be uninstalled</link>
@ -3535,7 +3536,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter15.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter15.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>Bat</phrase></textobject>
</mediaobject>
@ -8018,7 +8019,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter10.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter10.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>PIG</phrase></textobject>
</mediaobject>
@ -11346,7 +11347,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter21.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter21.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>Spoonbill</phrase></textobject>
</mediaobject>
@ -12903,7 +12904,7 @@
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter16.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter16.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>Two ducks!</phrase></textobject>
</mediaobject>
@ -20680,7 +20681,14 @@ drwxr-xr-x 2 harrypotter harrypotter 4096 Jun 8 13:00 pam.d/
<section>
<title>Securing <acronym>IMAP</acronym>/<acronym>POP</acronym></title>
<qandaset defaultlabel="none">
<!--
xsltproc-20903 and docbook-xsl-stylesheets-1.78.1+svn9743 manage to
generate FO that confuses xmlgraphics-fop-1.1; but commenting
out just this one attribute makes it possible to build the
entire document
-->
<!-- <qandaset defaultlabel="none"> -->
<qandaset>
<qandaentry><question><para>
Do you really need <acronym>IMAP</acronym>/<acronym>POP</acronym> service?
</para></question><answer><para>
@ -32226,7 +32234,7 @@ Require only if you are not using the <parameter class="option">--enable-ls</par
<partintro>
<mediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter19-20.gif" format="GIF" align="center"/>
<imagedata fileref="./resources/Annimals/Chapter19-20.gif" format="GIF" align="center"/>
</imageobject>
<textobject><phrase>hen, cock!</phrase></textobject>
</mediaobject>
@ -33389,7 +33397,7 @@ BRU Homepage: <link linkend="prtinxfp26">http://www.bru.com/</link>
<row valign="middle"><entry align="center">
<inlinemediaobject>
<imageobject>
<imagedata fileref="./Annimals/Chapter17.gif" format="GIF"/>
<imagedata fileref="./resources/Annimals/Chapter17.gif" format="GIF"/>
</imageobject>
<textobject><phrase>Elephant</phrase></textobject>