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>
|
---|