This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]