mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 06:52:14 +08:00
869909a5c0
- with a slight change of the css stylesheet, allows having the glossary title in the same style as the others - tested with docbook-xsl 1.78.1, 1.79.1, 1.79.2 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22137 af4574ff-66df-0310-9fd7-8a98e5e911e0
54 lines
1.8 KiB
XML
54 lines
1.8 KiB
XML
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
<!--
|
|
$LastChangedBy$
|
|
$Date$
|
|
-->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
version="1.0">
|
|
|
|
<!-- Top-level chunked code for normal processing.
|
|
Import customized output templates.
|
|
Include customized chunk templates.
|
|
Replaces {docbook-xsl}/xhtml/chunk.xsl -->
|
|
|
|
<!-- Our master non-chunking presentation templates -->
|
|
<xsl:import href="chunk-slave.xsl"/>
|
|
|
|
<!-- Upstream chunk code named templates -->
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-common.xsl"/>
|
|
|
|
<!-- Upstream chunk code match templates -->
|
|
<xsl:include href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-code.xsl"/>
|
|
|
|
<!-- Including our customized chunks templates -->
|
|
<xsl:include href="xhtml/lfs-index.xsl"/>
|
|
<xsl:include href="xhtml/lfs-legalnotice.xsl"/>
|
|
<xsl:include href="xhtml/lfs-navigational.xsl"/>
|
|
|
|
<!-- sect1:
|
|
Prevent creation of dummy sect1 files used to emulate sub-chapters. -->
|
|
<!-- The original template is in {docbook-xsl}/xhtml/chunk-code.xsl
|
|
It match also others sect* tags. The code for that tags is unchanged. -->
|
|
<xsl:template match="sect1">
|
|
<xsl:variable name="ischunk">
|
|
<xsl:call-template name="chunk"/>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="@role = 'dummy'"/>
|
|
<xsl:when test="not(parent::*)">
|
|
<xsl:call-template name="process-chunk-element"/>
|
|
</xsl:when>
|
|
<xsl:when test="$ischunk = 0">
|
|
<xsl:apply-imports/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="process-chunk-element"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|