source: stylesheets/lfs-xsl/chunk-slave.xsl@ ba0723a

trunk
Last change on this file since ba0723a was a4eaba6, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Tidy doctype and xml declarations in .html output

Part of a patch by Boian Berberov

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
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 <xsl:param name="chunker.output.method" select="'xml'"/>
14 <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
15 <xsl:param name="chunker.output.media-type" select="'application/xhtml+xml'"/>
16 <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
17 <xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
18 <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
19 <xsl:param name="chunker.output.indent" select="'no'"/>
20
21 <!-- Including our customized elements templates -->
22 <xsl:include href="common.xsl"/>
23 <xsl:include href="xhtml/lfs-admon.xsl"/>
24 <xsl:include href="xhtml/lfs-mixed.xsl"/>
25 <xsl:include href="xhtml/lfs-sections.xsl"/>
26 <xsl:include href="xhtml/lfs-titles.xsl"/>
27 <xsl:include href="xhtml/lfs-toc.xsl"/>
28 <xsl:include href="xhtml/lfs-xref.xsl"/>
29
30 <xsl:param name="html.stylesheet" select="'stylesheets/lfs.css'"/>
31 <!-- Print CSS Stylesheet -->
32 <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
33 <xsl:template name='user.head.content'>
34 <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
35 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
36 </xsl:template>
37
38 <!-- Drop some unwanted style attributes -->
39 <xsl:param name="ulink.target" select="''"/>
40 <xsl:param name="css.decoration" select="0"/>
41
42 <!-- Control generation of ToCs and LoTs -->
43 <xsl:param name="generate.toc">
44 book toc,title
45 preface toc
46 part toc
47 chapter toc
48 appendix nop
49 sect1 nop
50 sect2 nop
51 sect3 nop
52 sect4 nop
53 sect5 nop
54 section nop
55 </xsl:param>
56
57 <!-- How deep should recursive sections appear in the TOC? -->
58 <xsl:param name="toc.section.depth">1</xsl:param>
59
60 <!-- How deep, at most, should each TOC be? -->
61 <xsl:param name="toc.max.depth">3</xsl:param>
62
63</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.