OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] List of figures appears empty in PDF file


This is odd. Your markup looks fine. I cannot figure out where that WARNING message is coming from. It doesn't seem to exist in the stock stylesheets. I cannot even find the word "Unknown" in any error message generated by the stylesheet. Are you using a customization layer?

Bob Stayton
bobs@sagehill.net
On 12/21/2021 6:30 AM, Filippo Rusconi wrote:
Greetings,

I would like to have a list of figures in the print output for my book project.

I have set the following in fo/params.xls:

<!-- 3. ToC/LoT/Index Generation ================================ -->
<xsl:param name="autotoc.label.separator" select="' '"/>
<xsl:param name="generate.toc">
/article toc,title
articleÂÂ toc,title
bookÂÂÂÂÂ toc,title,figure
partÂÂÂÂÂ toc,title
reference toc,title
setÂÂÂÂÂÂ toc,title
</xsl:param>
<xsl:param name="toc.indent.width">1</xsl:param>

Now, I run fop and interestingly this is what I get:

Making portrait pages on A4 paper (210mmx297mm)
height is now: 297
unit is now: mm
goldenratio: 1.618/>
blockHeight is: 113.454
tableWidth is: 187.5
cellHeight is: 123.75
WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ WARNING: toc : Unknown TOC element figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ .
.
.

I suspect there are as many such lines above as there are figures in my book. My
figures always are specified like this in the xml source files:


<figure xml:id="fig_xtpcpp-main-window-edit-menu-modifications">

 <title>The <guimenu>Edit</guimenu> menu showing various configuration
 tasks</title>

<mediaobject>

 <imageobject role="fo">
ÂÂÂ <imagedata fileref="print-xtpcpp-main-window-edit-menu-modifications.png"/>
 </imageobject>
 <imageobject role="html">
ÂÂÂ <imagedata fileref="web-xtpcpp-main-window-edit-menu-modifications.png"/>
 </imageobject>

 <caption><para>This menu becomes available in the main program window only when
 identification data have been loaded in &xtpcpp;</para></caption>

 </mediaobject>

</figure>


When rendering the book, I effectively get a "List of figures" title, but the
list is empty.

What am I missing here ?

Thank you for your attention.

Sincerely,
Filippo



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]