aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/chunk-master.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-05 21:18:33 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-05 21:18:33 +0000
commitc873d8072e3e1fb78b1be4ba5e3f8e3548d29694 (patch)
treefb2387ca1b158477659e00660269c92b94f4a00a /stylesheets/lfs-xsl/chunk-master.xsl
parentbdbaf3eb1f0b1c8ef150764638c7473b9c25db96 (diff)
Added new-xsl files.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8196 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/chunk-master.xsl')
-rw-r--r--stylesheets/lfs-xsl/chunk-master.xsl53
1 files changed, 53 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/chunk-master.xsl b/stylesheets/lfs-xsl/chunk-master.xsl
new file mode 100644
index 000000000..893747712
--- /dev/null
+++ b/stylesheets/lfs-xsl/chunk-master.xsl
@@ -0,0 +1,53 @@
+<?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="docbook-xsl-snapshot/xhtml/chunk-common.xsl"/>
+
+ <!-- Upstream chunk code match templates -->
+ <xsl:include href="docbook-xsl-snapshot/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>