|$toc-context/chapter
|$toc-context/appendix
|$toc-context/article
+ |$toc-context/topic
|$toc-context/bibliography
|$toc-context/glossary
|$toc-context/index"/>
</xsl:variable>
<xsl:variable name="nodes" select="section|sect1|refentry
- |article|bibliography|glossary
+ |article|topic|bibliography|glossary
|qandaset[$qanda.in.toc != 0]
|appendix|index"/>
<xsl:if test="$nodes">
</xsl:call-template>
<xsl:variable name="nodes" select="glossary|bibliography|preface|chapter
- |reference|part|article|appendix|index"/>
+ |reference|part|article|topic|appendix|index"/>
<xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
</xsl:call-template>
<xsl:variable name="nodes" select="chapter|appendix|preface|reference|
- refentry|article|index|glossary|
+ refentry|article|topic|index|glossary|
bibliography"/>
<xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
</xsl:if>
</xsl:template>
-<xsl:template match="sect5|simplesect|topic" mode="toc">
+<xsl:template match="sect5|simplesect" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+
+ <xsl:call-template name="toc.line">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="topic" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="toc.line">
<xsl:variable name="master-reference">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
<xsl:apply-templates select="." mode="page.sequence">
- <xsl:with-param name="master-reference"
- select="$master-reference"/>
- </xsl:apply-templates>
+ <xsl:with-param name="master-reference" select="$master-reference"/>
+ <xsl:with-param name="content">
+ <xsl:element name="fo:{$section.container.element}">
+ <xsl:attribute name="id"><xsl:value-of
+ select="$id"/></xsl:attribute>
+ <xsl:call-template name="topic.titlepage"/>
+
+ <xsl:apply-templates/>
+
+ </xsl:element>
+ </xsl:with-param>
+ </xsl:apply-templates>
</xsl:template>
<xsl:template match="topic/info"></xsl:template>
</xsl:template>
<xsl:template match="set|book|part|reference|
- preface|chapter|appendix|article
+ preface|chapter|appendix|article|topic
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section"
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
- and (book|part|reference|preface|chapter|appendix|article
+ and (book|part|reference|preface|chapter|appendix|article|topic
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section)">
</xsl:template>
<xsl:template match="set|book|part|reference|
- preface|chapter|appendix|article
+ preface|chapter|appendix|article|topic
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section"
<t:titlepage t:element="topic" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::topic[1]"
margin-left="{$title.margin.left}"
font-family="{$title.fontset}"/>
<subtitle
</xsl:template>
<xsl:template match="set|book|part|reference|preface|chapter|appendix|article
- |glossary|bibliography|index|setindex
+ |glossary|bibliography|index|setindex|topic
|refentry|refsynopsisdiv
|refsect1|refsect2|refsect3|refsection
|sect1|sect2|sect3|sect4|sect5|section"
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and set|book|part|reference|section|sect1|refentry
- |article|bibliography|glossary|chapter
+ |article|topic|bibliography|glossary|chapter
|appendix">
<rx:bookmark internal-destination="toc...{$id}">
<rx:bookmark-label>