source: stylesheets/lfs-xsl/chunk-master.xsl

trunk
Last change on this file was 99ab416, checked in by Pierre Labastie <pierre.labastie@…>, 3 months ago

Fix webkit bug 3

Add a new stylesheet for the glossary (copying from docbook-xsl)
keep only the glossary template, simplify it, and output title
before container

  • Property mode set to 100644
File size: 1.8 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 <!-- Top-level chunked code for normal processing.
8 Import customized output templates.
9 Include customized chunk templates.
10 Replaces {docbook-xsl}/xhtml/chunk.xsl -->
11
12 <!-- Our master non-chunking presentation templates -->
13 <xsl:import href="chunk-slave.xsl"/>
14
15 <!-- Upstream chunk code named templates -->
16 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-common.xsl"/>
17
18 <!-- Upstream chunk code match templates -->
19 <xsl:include href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-code.xsl"/>
20
21 <!-- Including our customized chunks templates -->
22 <xsl:include href="xhtml/lfs-index.xsl"/>
23 <xsl:include href="xhtml/lfs-legalnotice.xsl"/>
24 <xsl:include href="xhtml/lfs-navigational.xsl"/>
25 <xsl:include href="xhtml/lfs-glossary.xsl"/>
26
27 <!-- sect1:
28 Prevent creation of dummy sect1 files used to emulate sub-chapters. -->
29 <!-- The original template is in {docbook-xsl}/xhtml/chunk-code.xsl
30 It match also others sect* tags. The code for that tags is unchanged. -->
31 <xsl:template match="sect1">
32 <xsl:variable name="ischunk">
33 <xsl:call-template name="chunk"/>
34 </xsl:variable>
35 <xsl:choose>
36 <xsl:when test="@role = 'dummy'"/>
37 <xsl:when test="not(parent::*)">
38 <xsl:call-template name="process-chunk-element"/>
39 </xsl:when>
40 <xsl:when test="$ischunk = 0">
41 <xsl:apply-imports/>
42 </xsl:when>
43 <xsl:otherwise>
44 <xsl:call-template name="process-chunk-element"/>
45 </xsl:otherwise>
46 </xsl:choose>
47 </xsl:template>
48
49</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.