source: stylesheets/lfs-xsl/chunk-master.xsl@ 52dcb7d

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 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk 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 52dcb7d was 52dcb7d, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

remove $Date$ and $LastChangedBy$

They are unsupported by Git.

  • Property mode set to 100644
File size: 1.7 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 <!-- 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 <!-- Customized chunk 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
26 <!-- sect1:
27 Prevent creation of dummy sect1 files used to emulate sub-chapters.
28 The original template is in {docbook-xsl}/xhtml/chunk-code.xsl
29 It also matches other sect* tags. The code for those tags are
30 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.