source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/ptc.xsl@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 xmlns:fo="http://www.w3.org/1999/XSL/Format"
3 version="1.0">
4
5<!-- ================================================================ -->
6<!-- -->
7<!-- PTC/Arbortext Code for XSL 1.1 bookmark support -->
8<!-- -->
9<!-- ================================================================ -->
10
11<xsl:param name="ati.xsl11.bookmarks" select="1"/>
12
13<xsl:variable name="ati-a-dia" select=
14"'&#257;&#259;&#261;&#263;&#265;&#267;&#269;&#271;&#273;&#275;&#277;&#279;&#281;&#283;&#339;&#285;&#287;&#289;&#291;&#293;&#295;&#297;&#299;&#301;&#303;&#305;&#309;&#311;&#314;&#316;&#318;&#320;&#322;&#324;&#326;&#328;&#331;&#333;&#335;&#337;&#341;&#343;&#345;&#347;&#349;&#351;&#353;&#355;&#357;&#359;&#361;&#363;&#365;&#367;&#369;&#371;&#373;&#375;&#378;&#380;&#382;&#256;&#258;&#260;&#262;&#264;&#266;&#268;&#270;&#272;&#274;&#276;&#278;&#280;&#282;&#338;&#284;&#286;&#288;&#290;&#292;&#294;&#296;&#298;&#300;&#302;&#304;&#308;&#310;&#313;&#315;&#317;&#319;&#321;&#323;&#325;&#327;&#330;&#332;&#334;&#336;&#340;&#342;&#344;&#346;&#348;&#350;&#352;&#354;&#356;&#358;&#360;&#362;&#364;&#366;&#368;&#370;&#372;&#374;&#376;&#377;&#379;&#381;'"/>
15
16<xsl:variable name="ati-a-asc" select=
17"'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/>
18
19<xsl:template match="*" mode="ati.xsl11.bookmarks">
20 <xsl:apply-templates select="*" mode="ati.xsl11.bookmarks"/>
21</xsl:template>
22
23<xsl:template match="set|book|part|reference|preface|chapter|appendix|article
24 |glossary|bibliography|index|setindex
25 |refentry
26 |sect1|sect2|sect3|sect4|sect5|section"
27 mode="ati.xsl11.bookmarks">
28 <xsl:variable name="id">
29 <xsl:call-template name="object.id"/>
30 </xsl:variable>
31 <xsl:variable name="bookmark-label">
32 <xsl:apply-templates select="." mode="object.title.markup"/>
33 </xsl:variable>
34
35 <!-- Put the root element bookmark at the same level as its children -->
36 <!-- If the object is a set or book, generate a bookmark for the toc -->
37
38 <xsl:choose>
39 <xsl:when test="self::index and $generate.index = 0"/>
40 <xsl:when test="parent::*">
41 <fo:bookmark internal-destination="{$id}">
42 <fo:bookmark-title>
43 <xsl:value-of select="translate($bookmark-label, $ati-a-dia, $ati-a-asc)"/>
44 </fo:bookmark-title>
45 <xsl:apply-templates select="*" mode="ati.xsl11.bookmarks"/>
46 </fo:bookmark>
47 </xsl:when>
48 <xsl:otherwise>
49 <fo:bookmark internal-destination="{$id}">
50 <fo:bookmark-title>
51 <xsl:value-of select="translate($bookmark-label, $ati-a-dia, $ati-a-asc)"/>
52 </fo:bookmark-title>
53 </fo:bookmark>
54
55 <xsl:variable name="toc.params">
56 <xsl:call-template name="find.path.params">
57 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
58 </xsl:call-template>
59 </xsl:variable>
60 <xsl:if test="contains($toc.params, 'toc')
61 and section|sect1|refentry
62 |article|bibliography|glossary
63 |appendix">
64 <fo:bookmark internal-destination="toc...{$id}">
65 <fo:bookmark-title>
66 <xsl:call-template name="gentext">
67 <xsl:with-param name="key" select="'TableofContents'"/>
68 </xsl:call-template>
69 </fo:bookmark-title>
70 </fo:bookmark>
71 </xsl:if>
72 <xsl:apply-templates select="*" mode="ati.xsl11.bookmarks"/>
73 </xsl:otherwise>
74 </xsl:choose>
75</xsl:template>
76
77</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.