|
@@ -21,7 +21,6 @@
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
version="1.0"
|
|
|
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
|
|
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
|
|
exclude-result-prefixes="#default">
|
|
|
|
|
@@ -173,57 +172,6 @@
|
|
|
</xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
-<!--###################################################
|
|
|
- Custom Toc Line
|
|
|
- ################################################### -->
|
|
|
-
|
|
|
- <!-- The default DocBook XSL TOC printing is seriously broken... -->
|
|
|
- <xsl:template name="toc.line">
|
|
|
- <xsl:variable name="id">
|
|
|
- <xsl:call-template name="object.id"/>
|
|
|
- </xsl:variable>
|
|
|
-
|
|
|
- <xsl:variable name="label">
|
|
|
- <xsl:apply-templates select="." mode="label.markup"/>
|
|
|
- </xsl:variable>
|
|
|
-
|
|
|
- <!-- justify-end removed from block attributes (space problem in title.markup) -->
|
|
|
- <fo:block end-indent="{$toc.indent.width}pt"
|
|
|
- last-line-end-indent="-{$toc.indent.width}pt"
|
|
|
- white-space-treatment="preserve"
|
|
|
- white-space-collapse="false">
|
|
|
- <fo:inline keep-with-next.within-line="always">
|
|
|
- <!-- print Chapters in bold style -->
|
|
|
- <xsl:choose>
|
|
|
- <xsl:when test="local-name(.) = 'chapter'">
|
|
|
- <xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
|
- </xsl:when>
|
|
|
- </xsl:choose>
|
|
|
- <fo:basic-link internal-destination="{$id}">
|
|
|
- <xsl:if test="$label != ''">
|
|
|
- <xsl:copy-of select="$label"/>
|
|
|
- <fo:inline white-space-treatment="preserve"
|
|
|
- white-space-collapse="false">
|
|
|
- <xsl:value-of select="$autotoc.label.separator"/>
|
|
|
- </fo:inline>
|
|
|
- </xsl:if>
|
|
|
- <xsl:apply-templates select="." mode="title.markup"/>
|
|
|
- </fo:basic-link>
|
|
|
- </fo:inline>
|
|
|
- <fo:inline keep-together.within-line="always">
|
|
|
- <xsl:text> </xsl:text>
|
|
|
- <fo:leader leader-pattern="dots"
|
|
|
- leader-pattern-width="3pt"
|
|
|
- leader-alignment="reference-area"
|
|
|
- keep-with-next.within-line="always"/>
|
|
|
- <xsl:text> </xsl:text>
|
|
|
- <fo:basic-link internal-destination="{$id}">
|
|
|
- <fo:page-number-citation ref-id="{$id}"/>
|
|
|
- </fo:basic-link>
|
|
|
- </fo:inline>
|
|
|
- </fo:block>
|
|
|
- </xsl:template>
|
|
|
-
|
|
|
<!--###################################################
|
|
|
Extensions
|
|
|
################################################### -->
|