source: stylesheets/xhtml/lfs-titles.xsl@ 3fe8b511

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3fe8b511 was 3fe8b511, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Update stylesheets and fix Python references

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3217 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/1999/xhtml"
5 version="1.0">
6
7 <xsl:template name="part.titlepage">
8 <div class="titlepage">
9 <xsl:if test="@id">
10 <a id="{@id}" name="{@id}"/>
11 </xsl:if>
12 <h1 class="{name(.)}">
13 <xsl:value-of select="title"/>
14 </h1>
15 </div>
16 </xsl:template>
17
18 <xsl:template name="chapter.titlepage">
19 <div class="titlepage">
20 <xsl:if test="@id">
21 <a id="{@id}" name="{@id}"/>
22 </xsl:if>
23 <h1 class="{name(.)}">
24 <xsl:value-of select="title"/>
25 </h1>
26 </div>
27 </xsl:template>
28
29 <xsl:template name="preface.titlepage">
30 <div class="titlepage">
31 <xsl:if test="@id">
32 <a id="{@id}" name="{@id}"/>
33 </xsl:if>
34 <h1 class="{name(.)}">
35 <xsl:value-of select="title"/>
36 </h1>
37 </div>
38 </xsl:template>
39
40 <xsl:template name="appendix.titlepage">
41 <div class="titlepage">
42 <xsl:if test="@id">
43 <a id="{@id}" name="{@id}"/>
44 </xsl:if>
45 <h1 class="{name(.)}">
46 <xsl:value-of select="title"/>
47 </h1>
48 </div>
49 </xsl:template>
50
51 <xsl:template name="sect1.titlepage">
52 <div class="titlepage">
53 <xsl:if test="@id">
54 <a id="{@id}" name="{@id}"/>
55 </xsl:if>
56 <h1 class="{name(.)}">
57 <xsl:value-of select="title"/>
58 </h1>
59 </div>
60 </xsl:template>
61
62 <xsl:template name="sect2.titlepage">
63 <xsl:choose>
64 <xsl:when test="string-length(title) = 0"/>
65 <xsl:otherwise>
66 <div class="titlepage">
67 <xsl:if test="@id">
68 <a id="{@id}" name="{@id}"/>
69 </xsl:if>
70 <h2 class="{name(.)}">
71 <xsl:value-of select="title"/>
72 </h2>
73 </div>
74 </xsl:otherwise>
75 </xsl:choose>
76 </xsl:template>
77
78 <xsl:template name="dedication.titlepage">
79 <div class="titlepage">
80 <h2 class="{name(.)}">
81 <xsl:value-of select="title"/>
82 </h2>
83 </div>
84 </xsl:template>
85
86 <!-- Added the role param for proper punctuation in xref calls. -->
87 <xsl:template match="*" mode="insert.title.markup">
88 <xsl:param name="purpose"/>
89 <xsl:param name="xrefstyle"/>
90 <xsl:param name="title"/>
91 <xsl:param name="role"/>
92 <xsl:choose>
93 <xsl:when test="$purpose = 'xref' and titleabbrev">
94 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
95 </xsl:when>
96 <xsl:otherwise>
97 <xsl:copy-of select="$title"/>
98 <xsl:value-of select="$role"/>
99 </xsl:otherwise>
100 </xsl:choose>
101 </xsl:template>
102
103</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.