source: stylesheets/lfs-chunked.xsl@ 287ea55

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 v5_1 v5_1_1 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 287ea55 was 287ea55, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Merged newxml into HEAD

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

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns="http://www.w3.org/1999/xhtml"
4 version="1.0">
5
6 <!-- We use XHTML -->
7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/>
8 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
9
10 <!-- The CSS Stylesheet -->
11 <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
12
13 <!-- Include our customised templates -->
14 <xsl:include href="xhtml/lfs-toc.xsl"/>
15 <xsl:include href="xhtml/lfs-index.xsl"/>
16
17 <!-- Use graphics in admonitions -->
18 <xsl:param name="admon.graphics" select="1"/>
19 <xsl:param name="admon.graphics.path">../images/</xsl:param>
20 <xsl:param name="admon.graphics.extension" select="'.png'"/>
21
22 <!-- Legal Notice stuff -->
23 <xsl:param name="generate.legalnotice.link" select="1"/>
24 <xsl:template match="legalnotice" mode="titlepage.mode">
25 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
26 <xsl:choose>
27 <xsl:when test="$generate.legalnotice.link != 0">
28 <xsl:variable name="filename">
29 <xsl:call-template name="make-relative-filename">
30 <xsl:with-param name="base.dir" select="''"/>
31 <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/>
32 </xsl:call-template>
33 </xsl:variable>
34 <xsl:variable name="title">
35 <xsl:apply-templates select="." mode="title.markup"/>
36 </xsl:variable>
37 <xsl:element name="a">
38 <xsl:attribute name="href">
39 <xsl:value-of select="'prologue/legalnotice.html'"/>
40 </xsl:attribute>
41 <xsl:copy-of select="$title"/>
42 </xsl:element>
43 <xsl:call-template name="write.chunk">
44 <xsl:with-param name="filename" select="$filename"/>
45 <xsl:with-param name="quiet" select="$chunk.quietly"/>
46 <xsl:with-param name="content">
47 <html>
48 <head>
49 <xsl:call-template name="system.head.content"/>
50 <xsl:call-template name="head.content"/>
51 <xsl:call-template name="user.head.content"/>
52 </head>
53 <body>
54 <xsl:call-template name="body.attributes"/>
55 <div class="{local-name(.)}">
56 <xsl:apply-templates mode="titlepage.mode"/>
57 </div>
58 </body>
59 </html>
60 </xsl:with-param>
61 </xsl:call-template>
62 </xsl:when>
63 <xsl:otherwise>
64 <div class="{local-name(.)}">
65 <xsl:apply-templates mode="titlepage.mode"/>
66 </div>
67 </xsl:otherwise>
68 </xsl:choose>
69 </xsl:template>
70
71 <!--TOC stuff-->
72 <xsl:param name="generate.toc">
73 appendix toc
74 book toc,title,figure,table,example,equation
75 chapter nop
76 part toc
77 preface nop
78 qandadiv nop
79 qandaset nop
80 reference nop
81 sect1 nop
82 sect2 nop
83 sect3 nop
84 sect4 nop
85 sect5 nop
86 section nop
87 set nop
88 </xsl:param>
89 <xsl:param name="toc.section.depth">1</xsl:param>
90 <xsl:param name="toc.max.depth">3</xsl:param>
91
92</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.