aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/xhtml/lfs-titles.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-05 22:28:14 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-05 22:28:14 +0000
commit3a1e4220080239c9fb9e2c9bae0ff2d192be7324 (patch)
treeff2e569687da750b66ea7223eaadd147de9ad8e3 /stylesheets/xhtml/lfs-titles.xsl
parent369d8b1904a8b83f31c180a17d3fe260968c1cd7 (diff)
Removed old xsl files.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8200 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-titles.xsl')
-rw-r--r--stylesheets/xhtml/lfs-titles.xsl117
1 files changed, 0 insertions, 117 deletions
diff --git a/stylesheets/xhtml/lfs-titles.xsl b/stylesheets/xhtml/lfs-titles.xsl
deleted file mode 100644
index e44108e59..000000000
--- a/stylesheets/xhtml/lfs-titles.xsl
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1'?>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
- <xsl:template name="part.titlepage">
- <div class="titlepage">
- <h1 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- <xsl:value-of select="title"/>
- </h1>
- </div>
- </xsl:template>
-
- <xsl:template name="chapter.titlepage">
- <div class="titlepage">
- <h1 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- <xsl:value-of select="title"/>
- </h1>
- </div>
- </xsl:template>
-
- <xsl:template name="preface.titlepage">
- <div class="titlepage">
- <h1 class="{name(.)}">
- <xsl:value-of select="title"/>
- </h1>
- </div>
- </xsl:template>
-
- <xsl:template name="appendix.titlepage">
- <div class="titlepage">
- <h1 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- <xsl:value-of select="title"/>
- </h1>
- </div>
- </xsl:template>
-
- <xsl:template name="sect1.titlepage">
- <xsl:choose>
- <!-- I should find a better test -->
- <xsl:when test="position() = 4">
- <div class="titlepage">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <h2 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- <xsl:value-of select="title"/>
- </h2>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div class="titlepage">
- <h1 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- <xsl:value-of select="title"/>
- </h1>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="sect2.titlepage">
- <xsl:choose>
- <xsl:when test="string-length(title) = 0"/>
- <xsl:otherwise>
- <div class="titlepage">
- <xsl:if test="@id">
- <a id="{@id}" name="{@id}"/>
- </xsl:if>
- <h2 class="{name(.)}">
- <xsl:if test="not(ancestor::preface)">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
- </xsl:if>
- <xsl:value-of select="title"/>
- </h2>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="dedication.titlepage">
- <div class="titlepage">
- <h2 class="{name(.)}">
- <xsl:value-of select="title"/>
- </h2>
- </div>
- </xsl:template>
-
- <!-- Added the role param for proper punctuation in xref calls. -->
- <xsl:template match="*" mode="insert.title.markup">
- <xsl:param name="purpose"/>
- <xsl:param name="xrefstyle"/>
- <xsl:param name="title"/>
- <xsl:param name="role"/>
- <xsl:choose>
- <xsl:when test="$purpose = 'xref' and titleabbrev">
- <xsl:apply-templates select="." mode="titleabbrev.markup"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$title"/>
- <xsl:value-of select="$role"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-</xsl:stylesheet>