source: stylesheets/xhtml/lfs-titles.xsl@ a9e89d0

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 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 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 a9e89d0 was a9e89d0, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: StyleSheets - unified the identation to use spaces.

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

  • Property mode set to 100644
File size: 1.9 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 <h1 class="{name(.)}">
10 <xsl:value-of select="title"/>
11 </h1>
12 </div>
13 </xsl:template>
14
15 <xsl:template name="chapter.titlepage">
16 <div class="titlepage">
17 <h1 class="{name(.)}">
18 <xsl:value-of select="title"/>
19 </h1>
20 </div>
21 </xsl:template>
22
23 <xsl:template name="preface.titlepage">
24 <div class="titlepage">
25 <h1 class="{name(.)}">
26 <xsl:value-of select="title"/>
27 </h1>
28 </div>
29 </xsl:template>
30
31 <xsl:template name="sect1.titlepage">
32 <xsl:choose>
33 <!-- I should find a better test -->
34 <xsl:when test="position() = 4">
35 <div class="titlepage">
36 <xsl:if test="@id">
37 <a id="{@id}" name="{@id}"/>
38 </xsl:if>
39 <h2 class="{name(.)}">
40 <xsl:value-of select="title"/>
41 </h2>
42 </div>
43 </xsl:when>
44 <xsl:otherwise>
45 <div class="titlepage">
46 <h1 class="{name(.)}">
47 <xsl:value-of select="title"/>
48 </h1>
49 </div>
50 </xsl:otherwise>
51 </xsl:choose>
52 </xsl:template>
53
54 <xsl:template name="sect2.titlepage">
55 <xsl:choose>
56 <xsl:when test="string-length(title) = 0"/>
57 <xsl:otherwise>
58 <div class="titlepage">
59 <xsl:if test="@id">
60 <a id="{@id}" name="{@id}"/>
61 </xsl:if>
62 <h3 class="{name(.)}">
63 <xsl:value-of select="title"/>
64 </h3>
65 </div>
66 </xsl:otherwise>
67 </xsl:choose>
68 </xsl:template>
69
70 <xsl:template name="dedication.titlepage">
71 <div class="titlepage">
72 <h2 class="{name(.)}">
73 <xsl:value-of select="title"/>
74 </h2>
75 </div>
76 </xsl:template>
77
78</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.