<!-- ==================================================================== -->
-<xsl:template match="dedication" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="preface" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="chapter" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:text>.</xsl:text>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$chapter.autolabel">
- <xsl:number from="book" count="chapter" format="1."/>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="appendix" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-
- <xsl:choose>
- <xsl:when test="@label">
- <xsl:value-of select="@label"/>
- <xsl:text>.</xsl:text>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$chapter.autolabel">
- <xsl:number from="book" count="appendix" format="A."/>
- <xsl:if test="$add.space">
- <xsl:call-template name="gentext.space"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="article" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="bibliography" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="glossary" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<xsl:template match="index" mode="component.number">
- <xsl:param name="add.space" select="false()"/>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
<xsl:template match="article">
<div class="{name(.)}">
<xsl:call-template name="language.attribute"/>