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 append at the end of html-chunk

I'm not sure I understand what the results should be.  When you say you want
the list of figures at the end of a chunked book, do you mean that the list
is to be appended to whatever content is in the last chunk?  So if your last
HTML chunk contains the last section of an appendix, do you want the list of
figures to appear after the last paragraph of that section in that chunk?

Or do you want the list of figure to be put into their own chunk?  In that
case, making it appear at the end just means appending it to the end of the
book's table of contents, and having its chunk appear in the "Next" field of
that last section chunk's header/footer.

Also, does the same apply to other lists, such as lists of tables, examples,

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Conny Hagemeister" <kh@planoweb.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, November 22, 2004 10:47 AM
Subject: [docbook-apps] list of figures append at the end of html-chunk

> Hello,
> I'm converting books from Docbook to HTML-chunk. For my needs it is
> necessary to append the list of figures at the end instead the
> beginning of the book as it is default in docbook.
> After many different attempts I'm stumped :-(.
> So i could really need any help.
> My last attempt which didn't work:
> <!-- Thought that I can call the list of figures when there is an
> appendix-tag
>      which now will be overridden -->
> <xsl:template match="appendix">
>   <!- I'm calling the template which generates the list of figures -->
>   <xsl:apply-templates select="/book//figure" mode="test"/>
> </xsl:template>
> <xsl:template match="figure" mode="test">
>   <xsl:param name="toc-context" select="."/>
>   <xsl:element name="{$toc.listitem.type}"-->
>     <xsl:variable name="label">
>       <xsl:apply-templates select="." mode="label.markup"/>
>     </xsl:variable>
>     <xsl:copy-of select="$label"/>
>     <xsl:if test="$label != ''">
>       <xsl:value-of select="$autotoc.label.separator"/>
>     </xsl:if>
>     <a>
>       <xsl:attribute name="href">
>         <xsl:call-template name="href.target"/>
>       </xsl:attribute>
>       <xsl:apply-templates select="." mode="title.markup"/>
>     </a>
>   <!--/xsl:element>
> </xsl:template>
> The result is as follow:
> The list of figures is generated but placed at the first site (chunk)
> instead of the last site (chunk) as it was before :-(.
> At the last site stands:  Chapter 6
>                           List of Figures (without any gnerated toc
> only the heading)
> So please, can anybody out there assist?
> It seems so easy to place the generated list of figures to another
> place of the document but I couldn't find out how :-(.
> Conny

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