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="appendix[@id='ap_glossary']/variablelist"
17 <xsl:variable name="id">
18 <xsl:call-template name="object.id"/>
21 <xsl:variable name="bookmark-label">
22 <xsl:apply-templates select="." mode="object.title.markup"/>
25 <!-- Put the root element bookmark at the same level as its children -->
26 <!-- If the object is a set or book, generate a bookmark for the toc -->
29 <xsl:when test="parent::*">
30 <fo:bookmark internal-destination="{$id}">
32 <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
34 <xsl:apply-templates select="*" mode="fop1.outline"/>
38 <fo:bookmark internal-destination="{$id}">
40 <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
44 <xsl:variable name="toc.params">
45 <xsl:call-template name="find.path.params">
46 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
50 <xsl:if test="contains($toc.params, 'toc')
51 and (book|part|reference|preface|chapter|appendix|article
52 |glossary|bibliography|index|setindex
54 |sect1|sect2|sect3|sect4|sect5|section)">
55 <fo:bookmark internal-destination="toc...{$id}">
57 <xsl:call-template name="gentext">
58 <xsl:with-param name="key" select="'TableofContents'"/>
63 <xsl:apply-templates select="*" mode="fop1.outline"/>