summaryrefslogtreecommitdiff
path: root/fo/ptc.xsl
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 06:55:11 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 06:55:11 +0900
commitd2cfd1f36d94c2377115f9ac79213eae31f83464 (patch)
treed33d3aadc7edbb0b5dd84194e053e16fc4410c06 /fo/ptc.xsl
parent4c7d5230da2c9c32ccfd18cf1f46b8c50d32db7a (diff)
downloaddocbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.gz
docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.bz2
docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.zip
Imported Upstream version 1.79.2upstream/1.79.2
Diffstat (limited to 'fo/ptc.xsl')
-rw-r--r--fo/ptc.xsl22
1 files changed, 12 insertions, 10 deletions
diff --git a/fo/ptc.xsl b/fo/ptc.xsl
index d3a2467..f3691f1 100644
--- a/fo/ptc.xsl
+++ b/fo/ptc.xsl
@@ -1,4 +1,6 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+<xsl:stylesheet exclude-result-prefixes="d"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:d="http://docbook.org/ns/docbook"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
@@ -20,11 +22,11 @@
<xsl:apply-templates select="*" mode="ati.xsl11.bookmarks"/>
</xsl:template>
-<xsl:template match="set|book|part|reference|preface|chapter|appendix|article
- |glossary|bibliography|index|setindex
- |refentry|refsynopsisdiv
- |refsect1|refsect2|refsect3|refsection
- |sect1|sect2|sect3|sect4|sect5|section"
+<xsl:template match="d:set|d:book|d:part|d:reference|d:preface|d:chapter|d:appendix|d:article
+ |d:glossary|d:bibliography|d:index|d:setindex
+ |d:refentry|d:refsynopsisdiv
+ |d:refsect1|d:refsect2|d:refsect3|d:refsection
+ |d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:section"
mode="ati.xsl11.bookmarks">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
@@ -37,7 +39,7 @@
<!-- If the object is a set or book, generate a bookmark for the toc -->
<xsl:choose>
- <xsl:when test="self::index and $generate.index = 0"/>
+ <xsl:when test="self::d:index and $generate.index = 0"/>
<xsl:when test="parent::*">
<fo:bookmark internal-destination="{$id}">
<fo:bookmark-title>
@@ -59,9 +61,9 @@
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
- and section|sect1|refentry
- |article|bibliography|glossary
- |appendix">
+ and d:section|d:sect1|d:refentry
+ |d:article|d:bibliography|d:glossary
+ |d:appendix">
<fo:bookmark internal-destination="toc...{$id}">
<fo:bookmark-title>
<xsl:call-template name="gentext">