source: stylesheets/lfs-xsl/chunk-slave.xsl@ 1fdbce2

12.1 12.1-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 1fdbce2 was 1fdbce2, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

Generate utf-8 encoded html

This removes several problems with wrong encodings...
The sed for &copy; is not needed anymore
tidy.conf has to be changed to remove specification of latin1 as
input and output encodings.

  • Property mode set to 100644
File size: 2.0 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 <!-- Second level chunked output template.
8 Sets global params and include customized elements templates. -->
9
10 <!-- Upstream XHTML presentation templates -->
11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
12
13 <!-- Including our customized elements templates -->
14 <xsl:include href="common.xsl"/>
15 <xsl:include href="xhtml/lfs-admon.xsl"/>
16 <xsl:include href="xhtml/lfs-mixed.xsl"/>
17 <xsl:include href="xhtml/lfs-sections.xsl"/>
18 <xsl:include href="xhtml/lfs-titles.xsl"/>
19 <xsl:include href="xhtml/lfs-toc.xsl"/>
20 <xsl:include href="xhtml/lfs-xref.xsl"/>
21
22 <xsl:param name="html.stylesheet" select="'stylesheets/lfs.css'"/>
23 <!-- Print CSS Stylesheet -->
24 <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
25 <xsl:template name='user.head.content'>
26 <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
27 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
28 </xsl:template>
29
30 <!-- Drop some unwanted style attributes -->
31 <xsl:param name="ulink.target" select="''"/>
32 <xsl:param name="css.decoration" select="0"/>
33
34 <!-- No XML declaration -->
35 <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
36
37 <!-- Control generation of ToCs and LoTs -->
38 <xsl:param name="generate.toc">
39 book toc,title
40 preface toc
41 part toc
42 chapter toc
43 appendix nop
44 sect1 nop
45 sect2 nop
46 sect3 nop
47 sect4 nop
48 sect5 nop
49 section nop
50 </xsl:param>
51
52 <!-- How deep should recursive sections appear in the TOC? -->
53 <xsl:param name="toc.section.depth">1</xsl:param>
54
55 <!-- How deep, at most, should each TOC be? -->
56 <xsl:param name="toc.max.depth">3</xsl:param>
57
58</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.