[Refdb-users] FO stylesheet problem #1: duplicate "Reference List" text
Status: Beta
Brought to you by:
mhoenicka
|
From: David N. <dav...@bi...> - 2004-03-06 14:24:05
|
Hi all, When producing pdf output from a docbook xml article, the text "Reference List" is duplicated immediately after the "Reference List" heading. Here is the xml source file: .......................................................................................... <?xml version="1.0"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ <!ENTITY bibliography SYSTEM "reftoc.bib.xml"> ]> <article> [... snip ...] <para>My current working theory is that it wil be absent in simple documents. This document is a test of that theory. So, here goes …</para> </section> &bibliography; </article> ........................................................................................... After tranformation to FO, the last part of the .fo file reads: ........................................................................................... My current working theory is that it wil be absent in simple documents. This doument is a test of that theory. So, here goes …</fo:block></fo:block><fo:block id="id2514948"><fo:block><fo:block><fo:block margin-left="-4pc" font-size="24.8832pt" font-family="sans-serif,Symbol,ZapfDingbats" font-weight="bold"><fo:block keep-with-next.within-column="always" space-before.optimum="10pt" space-before.minimum="8pt" space-before.maximum="12pt" hyphenate="false" hyphenation-character="-" hyphenation-push-character-count="2" hyphenation-remain-character-count="2">Reference List</fo:block></fo:block></fo:block><fo:block/></fo:block>Reference List<fo:block id="IDlamport1994" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Lamport L., 1994, LaTeX: A Document Preparation System (Addison-Wesley, Massachusetts) </fo:block><fo:block id="IDsavitch2001" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Savitch W., 2001, Java: An Introduction to Computer Science (Prentice Hall, New Jersey) </fo:block><fo:block id="id2575077" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"/></fo:block></fo:flow></fo:page-sequence></fo:root> ........................................................................................... The FO is simply hideous to read in plain text, but the relevant portion is: <fo:block [... lots of attributes ...]>Reference List</fo:block></fo:block></fo:block><fo:block/></fo:block>Reference List<fo:block ... You can see that the text does, in fact, appear again after the heading. This does not occur with html output. It appears to be an artefact caused by the refdb FO stylesheets. I've attempted to delve into the stylesheets but am only beginning to fathom xsl. If there's anyone out there who can help solve this problem, I'll do all I can to assist. Regards, David. |