1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
6 <xsl:import href="@DOCBOOK_XSL_PATH@/fo/docbook.xsl"/>
8 <xsl:param name="fop1.extensions" select="1"/>
9 <xsl:param name="title.margin.left" select="'0pt'"/>
10 <xsl:param name="body.start.indent" select="'0pt'"/>
11 <xsl:param name="variablelist.as.blocks" select="1"/>
12 <xsl:param name="paper.type" select="'A4'"/>
14 <xsl:template match="processing-instruction('hard-pagebreak')">
15 <fo:block break-before='page'/>
18 <xsl:template match="appendix[@id='ap_glossary']/variablelist"
21 <xsl:variable name="id">
22 <xsl:call-template name="object.id"/>
25 <xsl:variable name="bookmark-label">
26 <xsl:apply-templates select="." mode="object.title.markup"/>
29 <!-- Put the root element bookmark at the same level as its children -->
30 <!-- If the object is a set or book, generate a bookmark for the toc -->
33 <xsl:when test="parent::*">
34 <fo:bookmark internal-destination="{$id}">
36 <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
38 <xsl:apply-templates select="*" mode="fop1.outline"/>
42 <fo:bookmark internal-destination="{$id}">
44 <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
48 <xsl:variable name="toc.params">
49 <xsl:call-template name="find.path.params">
50 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
54 <xsl:if test="contains($toc.params, 'toc')
55 and (book|part|reference|preface|chapter|appendix|article
56 |glossary|bibliography|index|setindex
58 |sect1|sect2|sect3|sect4|sect5|section)">
59 <fo:bookmark internal-destination="toc...{$id}">
61 <xsl:call-template name="gentext">
62 <xsl:with-param name="key" select="'TableofContents'"/>
67 <xsl:apply-templates select="*" mode="fop1.outline"/>