aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2013-10-08 20:03:29 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2013-10-08 20:03:29 +0000
commit15c7d39533a1eb1da0748011f3378fd0f02ed14d (patch)
treea7ed12df60c5ffd4d00a570804c51470bfb8b0f5 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl
parent09a35dd7178070f01a7961d2ded39e11ba2aac83 (diff)
Update stylesheets to docbook-xsl-1.78.1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl224
1 files changed, 0 insertions, 224 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl
deleted file mode 100644
index 0f1942fb0..000000000
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/index.xsl
+++ /dev/null
@@ -1,224 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<!--This file was created automatically by html2xhtml-->
-<!--from the HTML stylesheets.-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
-
-<!-- ********************************************************************
- $Id$
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://docbook.sf.net/release/xsl/current/ for
- copyright and other information.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:template match="index">
- <!-- some implementations use completely empty index tags to indicate -->
- <!-- where an automatically generated index should be inserted. so -->
- <!-- if the index is completely empty, skip it. Unless generate.index -->
- <!-- is non-zero, in which case, this is where the automatically -->
- <!-- generated index should go. -->
-
- <xsl:call-template name="id.warning"/>
-
- <xsl:if test="count(*)&gt;0 or $generate.index != '0'">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:if test="$generate.id.attributes != 0">
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:call-template name="index.titlepage"/>
- <xsl:choose>
- <xsl:when test="indexdiv">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="*[not(self::indexentry)]"/>
- <!-- Because it's actually valid for Index to have neither any -->
- <!-- Indexdivs nor any Indexentries, we need to check and make -->
- <!-- sure that at least one Indexentry exists, and generate a -->
- <!-- wrapper dl if there is at least one; otherwise, do nothing. -->
- <xsl:if test="indexentry">
- <!-- The indexentry template assumes a parent dl wrapper has -->
- <!-- been generated; for Indexes that have Indexdivs, the dl -->
- <!-- wrapper is generated by the indexdiv template; however, -->
- <!-- for Indexes that lack Indexdivs, if we don't generate a -->
- <!-- dl here, HTML output will not be valid. -->
- <dl>
- <xsl:apply-templates select="indexentry"/>
- </dl>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
- <xsl:call-template name="generate-index">
- <xsl:with-param name="scope" select="(ancestor::book|/)[last()]"/>
- </xsl:call-template>
- </xsl:if>
-
- <xsl:if test="not(parent::article)">
- <xsl:call-template name="process.footnotes"/>
- </xsl:if>
- </div>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="setindex">
- <!-- some implementations use completely empty index tags to indicate -->
- <!-- where an automatically generated index should be inserted. so -->
- <!-- if the index is completely empty, skip it. Unless generate.index -->
- <!-- is non-zero, in which case, this is where the automatically -->
- <!-- generated index should go. -->
-
- <xsl:call-template name="id.warning"/>
-
- <xsl:if test="count(*)&gt;0 or $generate.index != '0'">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:if test="$generate.id.attributes != 0">
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:call-template name="setindex.titlepage"/>
- <xsl:apply-templates/>
-
- <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
- <xsl:call-template name="generate-index">
- <xsl:with-param name="scope" select="/"/>
- </xsl:call-template>
- </xsl:if>
-
- <xsl:if test="not(parent::article)">
- <xsl:call-template name="process.footnotes"/>
- </xsl:if>
- </div>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="index/indexinfo"/>
-<xsl:template match="index/info"/>
-<xsl:template match="index/title"/>
-<xsl:template match="index/subtitle"/>
-<xsl:template match="index/titleabbrev"/>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="indexdiv">
- <xsl:call-template name="id.warning"/>
-
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:if test="$generate.id.attributes != 0">
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates select="*[not(self::indexentry)]"/>
- <dl>
- <xsl:apply-templates select="indexentry"/>
- </dl>
- </div>
-</xsl:template>
-
-<xsl:template match="indexdiv/title">
- <h3>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:apply-templates/>
- </h3>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="indexterm">
- <!-- this one must have a name, even if it doesn't have an ID -->
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <a id="{$id}" class="indexterm"/>
-</xsl:template>
-
-<xsl:template match="primary|secondary|tertiary|see|seealso">
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-<xsl:template match="indexentry">
- <xsl:apply-templates select="primaryie"/>
-</xsl:template>
-
-<xsl:template match="primaryie">
- <dt>
- <xsl:apply-templates/>
- </dt>
- <xsl:choose>
- <xsl:when test="following-sibling::secondaryie">
- <dd>
- <dl>
- <xsl:apply-templates select="following-sibling::secondaryie"/>
- </dl>
- </dd>
- </xsl:when>
- <xsl:when test="following-sibling::seeie |following-sibling::seealsoie">
- <dd>
- <dl>
- <xsl:apply-templates select="following-sibling::seeie |following-sibling::seealsoie"/>
- </dl>
- </dd>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="secondaryie">
- <dt>
- <xsl:apply-templates/>
- </dt>
- <xsl:choose>
- <xsl:when test="following-sibling::tertiaryie">
- <dd>
- <dl>
- <xsl:apply-templates select="following-sibling::tertiaryie"/>
- </dl>
- </dd>
- </xsl:when>
- <xsl:when test="following-sibling::seeie |following-sibling::seealsoie">
- <dd>
- <dl>
- <xsl:apply-templates select="following-sibling::seeie |following-sibling::seealsoie"/>
- </dl>
- </dd>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="tertiaryie">
- <dt>
- <xsl:apply-templates/>
- </dt>
- <xsl:if test="following-sibling::seeie |following-sibling::seealsoie">
- <dd>
- <dl>
- <xsl:apply-templates select="following-sibling::seeie |following-sibling::seealsoie"/>
- </dl>
- </dd>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="seeie|seealsoie">
- <dt>
- <xsl:apply-templates/>
- </dt>
-</xsl:template>
-
-</xsl:stylesheet>