</xsl:choose>
</xsl:template>
-<xsl:template match="bibliography|glossary|index" mode="label.markup">
+<xsl:template match="bibliography|glossary|index|setindex" mode="label.markup">
<xsl:if test="@label">
<xsl:value-of select="@label"/>
</xsl:if>
</xsl:choose>
</xsl:template>
+<xsl:template match="setindex" mode="title.markup">
+ <xsl:param name="allow-anchors" select="0"/>
+ <xsl:variable name="title" select="(setindexinfo/title|title)[1]"/>
+ <xsl:choose>
+ <xsl:when test="$title">
+ <xsl:apply-templates select="$title" mode="title.markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'SetIndex'"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
<xsl:template match="figure|table|example|equation" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:apply-templates select="title" mode="title.markup">
</xsl:if>
</xsl:template>
-<xsl:template match="book/index">
+<xsl:template match="book/index|part/index">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="index.titlepage"/>
+ <xsl:call-template name="setindex.titlepage"/>
<xsl:apply-templates/>
<xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
</t:titlepage-before>
</t:titlepage>
+<!-- ==================================================================== -->
+
+ <t:titlepage element="setindex" wrapper="fo:block">
+ <t:titlepage-content side="recto">
+ <title
+ force="1"
+ named-template="component.title"
+ param:node="ancestor-or-self::setindex[1]"
+ param:pagewide="1"
+ fo:margin-left="{$title.margin.left}"
+ fo:font-size="&hsize5;"
+ fo:font-family="{$title.font.family}"
+ fo:font-weight="bold"/>
+ <subtitle
+ fo:font-family="{$title.font.family}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
<!-- ==================================================================== -->
<t:titlepage element="colophon" wrapper="fo:block">
<xsl:attribute-set name="index.titlepage.recto.style"/>
<xsl:attribute-set name="index.titlepage.verso.style"/>
+<xsl:attribute-set name="setindex.titlepage.recto.style"/>
+<xsl:attribute-set name="setindex.titlepage.verso.style"/>
+
<xsl:attribute-set name="colophon.titlepage.recto.style"/>
<xsl:attribute-set name="colophon.titlepage.verso.style"/>
</xsl:attribute>
</xsl:if>
- <xsl:call-template name="index.titlepage"/>
+ <xsl:call-template name="setindex.titlepage"/>
<xsl:apply-templates/>
<xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
<!-- ==================================================================== -->
+<t:titlepage element="setindex" wrapper="div" class="titlepage">
+ <t:titlepage-content side="recto">
+ <title
+ force="1"
+ named-template="component.title"
+ param:node="ancestor-or-self::setindex[1]"/>
+ <subtitle/>
+ </t:titlepage-content>
+
+ <t:titlepage-content side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
</t:templates>
<xsl:attribute-set name="index.titlepage.recto.style"/>
<xsl:attribute-set name="index.titlepage.verso.style"/>
+<xsl:attribute-set name="setindex.titlepage.recto.style"/>
+<xsl:attribute-set name="setindex.titlepage.verso.style"/>
+
<xsl:attribute-set name="section.titlepage.recto.style"/>
<xsl:attribute-set name="section.titlepage.verso.style"/>