shortcut sidebar simplelist simplesect spanspec step subject
subjectset substeps synopfragment table tbody textobject tfoot tgroup
thead tip toc tocchap toclevel1 toclevel2 toclevel3 toclevel4
-toclevel5 tocpart varargs variablelist varlistentry videodata
+toclevel5 tocpart topic varargs variablelist varlistentry videodata
videoobject void warning subjectset
classsynopsis
<!ENTITY secondary 'normalize-space(concat(secondary/@sortas, " ", secondary))'>
<!ENTITY tertiary 'normalize-space(concat(tertiary/@sortas, " ", tertiary))'>
-<!ENTITY section '(ancestor-or-self::set|ancestor-or-self::book|ancestor-or-self::part|ancestor-or-self::reference|ancestor-or-self::partintro|ancestor-or-self::chapter|ancestor-or-self::appendix|ancestor-or-self::preface|ancestor-or-self::article|ancestor-or-self::section|ancestor-or-self::sect1|ancestor-or-self::sect2|ancestor-or-self::sect3|ancestor-or-self::sect4|ancestor-or-self::sect5|ancestor-or-self::refentry|ancestor-or-self::refsect1|ancestor-or-self::refsect2|ancestor-or-self::refsect3|ancestor-or-self::simplesect|ancestor-or-self::bibliography|ancestor-or-self::glossary|ancestor-or-self::index|ancestor-or-self::webpage)[last()]'>
+<!ENTITY section '(ancestor-or-self::set|ancestor-or-self::book|ancestor-or-self::part|ancestor-or-self::reference|ancestor-or-self::partintro|ancestor-or-self::chapter|ancestor-or-self::appendix|ancestor-or-self::preface|ancestor-or-self::article|ancestor-or-self::section|ancestor-or-self::sect1|ancestor-or-self::sect2|ancestor-or-self::sect3|ancestor-or-self::sect4|ancestor-or-self::sect5|ancestor-or-self::refentry|ancestor-or-self::refsect1|ancestor-or-self::refsect2|ancestor-or-self::refsect3|ancestor-or-self::simplesect|ancestor-or-self::bibliography|ancestor-or-self::glossary|ancestor-or-self::index|ancestor-or-self::webpage|ancestor-or-self::topic)[last()]'>
<!ENTITY section.id 'generate-id(§ion;)'>
<!ENTITY sep '" "'>
parent::refsynopsisdiv|parent::sect1|parent::sect2|parent::sect3|parent::sect4|
parent::sect5|parent::section|parent::setindex|parent::sidebar|
parent::simplesect|parent::taskprerequisites|parent::taskrelated|
- parent::tasksummary|parent::warning">
+ parent::tasksummary|parent::warning|parent::topic">
</xsl:template>
<xsl:template match="section|sect1|sect2|sect3|sect4|sect5|simplesect
- |bridgehead"
+ |bridgehead|topic"
mode="object.title.template">
<xsl:variable name="is.numbered">
<xsl:call-template name="label.this.section"/>
<xsl:variable name="contsec"
select="(ancestor::section
|ancestor::simplesect
+ |ancestor::topic
|ancestor::sect1
|ancestor::sect2
|ancestor::sect3
</xsl:choose>
</xsl:template>
+<xsl:template match="topic" mode="label.markup">
+ <!-- topics are not numbered by default -->
+</xsl:template>
+
<xsl:template match="qandadiv" mode="label.markup">
<xsl:variable name="lparent" select="(ancestor::set
|ancestor::book
<xsl:template match="section
|sect1|sect2|sect3|sect4|sect5
|refsect1|refsect2|refsect3
+ |topic
|simplesect"
mode="subtitle.markup">
<xsl:param name="allow-anchors" select="'0'"/>
<xsl:call-template name="div"/>
</xsl:template>
+<xsl:template match="topic" mode="olink.mode">
+ <xsl:call-template name="div"/>
+</xsl:template>
+
<xsl:template match="bibliography|bibliodiv" mode="olink.mode">
<xsl:call-template name="div"/>
</xsl:template>
<xsl:template match="section
|sect1|sect2|sect3|sect4|sect5
|refsect1|refsect2|refsect3|refsection
+ |topic
|simplesect"
mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:template match="section
|sect1|sect2|sect3|sect4|sect5
|refsect1|refsect2|refsect3
+ |topic
|simplesect"
mode="titleabbrev.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:template match="book|
article|
+ topic|
part|
reference|
preface|
preceding::bibliography|
preceding::appendix|
preceding::article|
+ preceding::topic|
preceding::glossary|
preceding::section[not(parent::partintro)]|
preceding::sect1[not(parent::partintro)]|
<xsl:value-of select="$href"/>
</xsl:attribute>
</xsl:element>
- <xsl:apply-templates select="book[parent::set]|part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv[title]|setindex|index" mode="ncx"/>
+ <xsl:apply-templates select="book[parent::set]|part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv[title]|setindex|index" mode="ncx"/>
</xsl:element>
</xsl:template>
<xsl:variable name="nodes" select="section|sect1
|qandaset[$qanda.in.toc != 0]
|simplesect[$simplesect.in.toc != 0]
+ |topic
|refentry|appendix"/>
<xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
</xsl:if>
</xsl:template>
-<xsl:template match="sect5|simplesect" mode="toc">
+<xsl:template match="sect5|simplesect|topic" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="toc.line">
</xsl:template>
+<xsl:template match="topic">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
+ <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:template>
+
+<xsl:template match="/topic | book/topic" name="topic.page.sequence">
+ <xsl:variable name="master-reference">
+ <xsl:call-template name="select.pagemaster"/>
+ </xsl:variable>
+
+ <xsl:apply-templates select="." mode="page.sequence">
+ <xsl:with-param name="master-reference"
+ select="$master-reference"/>
+ </xsl:apply-templates>
+</xsl:template>
+
</xsl:stylesheet>
<xsl:variable name="parent" select="concat('|', local-name($parentnode), '|')"/>
- <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|info|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|variablelist|warning|'"/>
+ <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|info|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|topic|variablelist|warning|'"/>
<xsl:choose>
<xsl:when test="contains($block.parents, $parent)">fo:block</xsl:when>
</t:titlepage-before>
</t:titlepage>
+<t:titlepage t:element="section" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ <itermset/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
<t:titlepage t:element="sect1" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
</t:titlepage-before>
</t:titlepage>
+<t:titlepage t:element="topic" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
<!-- ==================================================================== -->
<t:titlepage t:element="bibliography" t:wrapper="fo:block">
<xsl:attribute-set name="simplesect.titlepage.verso.style"
use-attribute-sets="section.titlepage.verso.style"/>
+<xsl:attribute-set name="topic.titlepage.recto.style"/>
+<xsl:attribute-set name="topic.titlepage.verso.style"/>
+
<xsl:attribute-set name="refnamediv.titlepage.recto.style"
use-attribute-sets="section.titlepage.recto.style"/>
<xsl:attribute-set name="refnamediv.titlepage.verso.style"
<!-- What about "in Chapter X"? -->
</xsl:template>
+<xsl:template match="topic" mode="xref-to">
+ <xsl:param name="referrer"/>
+ <xsl:param name="xrefstyle"/>
+ <xsl:param name="verbose" select="1"/>
+
+ <xsl:apply-templates select="." mode="object.xref.markup">
+ <xsl:with-param name="purpose" select="'xref'"/>
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
+ <xsl:with-param name="referrer" select="$referrer"/>
+ <xsl:with-param name="verbose" select="$verbose"/>
+ </xsl:apply-templates>
+</xsl:template>
+
<xsl:template match="bridgehead" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
|ancestor::sect3
|ancestor::sect4
|ancestor::sect5
+ |ancestor::topic
|ancestor::refsection
|ancestor::refsect1
|ancestor::refsect2
<xsl:with-param name="toc.title.p" select="$toc.title.p"/>
<xsl:with-param name="nodes" select="section|sect1
|simplesect[$simplesect.in.toc != 0]
+ |topic
|refentry
|article|bibliography|glossary
|appendix|index
<xsl:when test="local-name(.) = 'refsect1'">1</xsl:when>
<xsl:when test="local-name(.) = 'refsect2'">2</xsl:when>
<xsl:when test="local-name(.) = 'refsect3'">3</xsl:when>
+ <xsl:when test="local-name(.) = 'topic'">1</xsl:when>
<xsl:when test="local-name(.) = 'simplesect'">
<!-- sigh... -->
<xsl:choose>
<xsl:when test="local-name(..) = 'sect3'">4</xsl:when>
<xsl:when test="local-name(..) = 'sect4'">5</xsl:when>
<xsl:when test="local-name(..) = 'sect5'">6</xsl:when>
+ <xsl:when test="local-name(..) = 'topic'">2</xsl:when>
<xsl:when test="local-name(..) = 'refsect1'">2</xsl:when>
<xsl:when test="local-name(..) = 'refsect2'">3</xsl:when>
<xsl:when test="local-name(..) = 'refsect3'">4</xsl:when>
<xsl:with-param name="toc-context" select="$toc-context"/>
<xsl:with-param name="nodes" select="section|sect1
|simplesect[$simplesect.in.toc != 0]
+ |topic
|refentry
|glossary|bibliography|index
|bridgehead[$bridgehead.in.toc != 0]"/>
</xsl:call-template>
</xsl:template>
+<xsl:template match="topic" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes" select="section|refentry
+ |simplesect[$simplesect.in.toc != 0]
+ |bridgehead[$bridgehead.in.toc != 0]"/>
+ </xsl:call-template>
+</xsl:template>
+
<xsl:template match="bridgehead" mode="toc">
<xsl:param name="toc-context" select="."/>
or local-name(.) = 'sect3'
or local-name(.) = 'sect4'
or local-name(.) = 'sect5'
+ or local-name(.) = 'topic'
or local-name(.) = 'chapter'
or local-name(.) = 'preface'
or local-name(.) = 'itemizedlist'
</xsl:if>
</xsl:when>
+ <xsl:when test="self::topic">
+ <xsl:choose>
+ <xsl:when test="/set">
+ <!-- in a set, make sure we inherit the right book info... -->
+ <xsl:apply-templates mode="recursive-chunk-filename" select="parent::*">
+ <xsl:with-param name="recursive" select="true()"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:text>to</xsl:text>
+ <xsl:number level="any" format="01" from="book"/>
+ <xsl:if test="not($recursive)">
+ <xsl:value-of select="$html.ext"/>
+ </xsl:if>
+ </xsl:when>
+
<xsl:otherwise>
<xsl:text>chunk-filename-error-</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:template match="set|book|part|preface|chapter|appendix
|article
+ |topic
|reference|refentry
|book/glossary|article/glossary|part/glossary
|book/bibliography|article/bibliography|part/bibliography
<!-- ==================================================================== -->
<xsl:template match="set|book|part|preface|chapter|appendix
|article
+ |topic
|reference|refentry
|sect1|sect2|sect3|sect4|sect5
|section
|preceding::refentry[1]
|preceding::colophon[1]
|preceding::article[1]
+ |preceding::topic[1]
|preceding::bibliography[parent::article or parent::book or parent::part][1]
|preceding::glossary[parent::article or parent::book or parent::part][1]
|preceding::index[$generate.index != 0]
|ancestor::part[1]
|ancestor::reference[1]
|ancestor::article[1]
+ |ancestor::topic[1]
|$prev-v1
|$prev-v2)[last()]"/>
|following::index[$generate.index != 0]
[parent::article or parent::book or parent::part][1]
|following::article[1]
+ |following::topic[1]
|following::setindex[$generate.index != 0][1]
|descendant::book[1]
|descendant::preface[1]
|descendant::chapter[1]
|descendant::appendix[1]
|descendant::article[1]
+ |descendant::topic[1]
|descendant::bibliography[parent::article or parent::book or parent::part][1]
|descendant::glossary[parent::article or parent::book or parent::part][1]
|descendant::index[$generate.index != 0]
|preceding::refentry[1]
|preceding::colophon[1]
|preceding::article[1]
+ |preceding::topic[1]
|preceding::bibliography[parent::article or parent::book or parent::part][1]
|preceding::glossary[parent::article or parent::book or parent::part][1]
|preceding::index[$generate.index != 0]
|ancestor::part[1]
|ancestor::reference[1]
|ancestor::article[1]
+ |ancestor::topic[1]
|$prev-v1
|$prev-v2)[last()]"/>
|following::index[$generate.index != 0]
[parent::article or parent::book][1]
|following::article[1]
+ |following::topic[1]
|following::setindex[$generate.index != 0][1]
|descendant::book[1]
|descendant::preface[1]
|descendant::chapter[1]
|descendant::appendix[1]
|descendant::article[1]
+ |descendant::topic[1]
|descendant::bibliography[parent::article or parent::book][1]
|descendant::glossary[parent::article or parent::book or parent::part][1]
|descendant::index[$generate.index != 0]
section if position()>1 && depth < chunk.section.depth
set
setindex
+ topic
-->
<!-- ==================================================================== -->
<xsl:when test="local-name($node)='chapter'">1</xsl:when>
<xsl:when test="local-name($node)='appendix'">1</xsl:when>
<xsl:when test="local-name($node)='article'">1</xsl:when>
+ <xsl:when test="local-name($node)='topic'">1</xsl:when>
<xsl:when test="local-name($node)='part'">1</xsl:when>
<xsl:when test="local-name($node)='reference'">1</xsl:when>
<xsl:when test="local-name($node)='refentry'">1</xsl:when>
<xsl:call-template name="process-chunk"/>
</xsl:template>
+<xsl:template match="topic">
+ <xsl:call-template name="process-chunk"/>
+</xsl:template>
+
<xsl:template match="article/appendix">
<xsl:call-template name="process-chunk"/>
</xsl:template>
<!-- ==================================================================== -->
+<xsl:template match="topic">
+ <xsl:call-template name="id.warning"/>
+
+ <div>
+ <xsl:call-template name="common.html.attributes">
+ <xsl:with-param name="inherit" select="1"/>
+ </xsl:call-template>
+ <xsl:if test="$generate.id.attributes != 0">
+ <xsl:attribute name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:attribute>
+ </xsl:if>
+
+ <xsl:call-template name="topic.titlepage"/>
+
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:apply-templates/>
+
+ <xsl:call-template name="process.footnotes"/>
+ </div>
+</xsl:template>
+
+<xsl:template match="topic/title|topic/info/title" mode="titlepage.mode" priority="2">
+ <xsl:call-template name="component.title">
+ <xsl:with-param name="node" select="ancestor::topic[1]"/>
+ </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="topic/subtitle
+ |topic/info/subtitle"
+ mode="titlepage.mode" priority="2">
+ <xsl:call-template name="component.subtitle">
+ <xsl:with-param name="node" select="ancestor::topic[1]"/>
+ </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="topic/info"></xsl:template>
+<xsl:template match="topic/title"></xsl:template>
+<xsl:template match="topic/titleabbrev"></xsl:template>
+<xsl:template match="topic/subtitle"></xsl:template>
+
</xsl:stylesheet>
</t:titlepage-before>
</t:titlepage>
+<t:titlepage t:element="topic" t:wrapper="div" class="titlepage">
+ <t:titlepage-content t:side="recto">
+ <title/>
+ <subtitle/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
<!-- ==================================================================== -->
<t:titlepage t:element="appendix" t:wrapper="div" class="titlepage">
<xsl:attribute-set name="sidebar.titlepage.recto.style"/>
<xsl:attribute-set name="sidebar.titlepage.verso.style"/>
+<xsl:attribute-set name="topic.titlepage.recto.style"/>
+<xsl:attribute-set name="topic.titlepage.verso.style"/>
+
<xsl:attribute-set name="section.titlepage.recto.style"/>
<xsl:attribute-set name="section.titlepage.verso.style"/>
<!-- FIXME: What about "in Chapter X"? -->
</xsl:template>
+<xsl:template match="topic" mode="xref-to">
+ <xsl:param name="referrer"/>
+ <xsl:param name="xrefstyle"/>
+ <xsl:param name="verbose" select="1"/>
+
+ <xsl:apply-templates select="." mode="object.xref.markup">
+ <xsl:with-param name="purpose" select="'xref'"/>
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
+ <xsl:with-param name="referrer" select="$referrer"/>
+ <xsl:with-param name="verbose" select="$verbose"/>
+ </xsl:apply-templates>
+</xsl:template>
+
<xsl:template match="bridgehead" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
|ancestor::sect3
|ancestor::sect4
|ancestor::sect5
+ |ancestor::topic
|ancestor::refsection
|ancestor::refsect1
|ancestor::refsect2
<xsl:when test="ancestor::t:titlepage/@t:element='sect5'"></xsl:when>
<xsl:when test="ancestor::t:titlepage/@t:element='book'"></xsl:when>
<xsl:when test="ancestor::t:titlepage/@t:element='set'"></xsl:when>
+ <xsl:when test="ancestor::t:titlepage/@t:element='topic'"></xsl:when>
<xsl:otherwise>docinfo</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:when test="ancestor::t:titlepage/@t:element='sect5'"></xsl:when>
<xsl:when test="ancestor::t:titlepage/@t:element='book'"></xsl:when>
<xsl:when test="ancestor::t:titlepage/@t:element='set'"></xsl:when>
+ <xsl:when test="ancestor::t:titlepage/@t:element='topic'"></xsl:when>
<xsl:otherwise>docinfo</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Generates the webhelp table-of-contents (TOC). -->
<xsl:template
- match="book|part|reference|preface|chapter|bibliography|appendix|article|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index|setindex"
+ match="book|part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index|setindex"
mode="webhelptoc">
<xsl:param name="currentid"/>
<xsl:variable name="title">
<xsl:value-of select="$title"/>
</a>
</span>
- <xsl:if test="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv">
+ <xsl:if test="part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv">
<ul>
<xsl:apply-templates
- select="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv"
+ select="part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv"
mode="webhelptoc">
<xsl:with-param name="currentid" select="$currentid"/>
</xsl:apply-templates>