diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
commit | 2e524f93fc03353e6fb05333d8041505948959eb (patch) | |
tree | 0e2f8a60e47c994d49152b300f0d698a7eb29c4f /stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl | |
parent | cc98817b6165e5307c1fc38328cdc2a1cc2de257 (diff) |
Since LFS started using docbook-1.78.1, there is a lot of unused data
in the stylesheet directory. Basically, a whole docbook-stylesheet is
there, while we need only fo and xhtml (+ some common dirs). Each time
we checkout the repo, we have to download this whole thing, which is by
far the biggest part of the repo (~33 M). By removing unused cruft,
this could be down to ~12 M.
Of course, it would be even better to remove completely the stylesheets
and use host ones (repo size down to 2M). but let's do this first, it is
easier :)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11778 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl deleted file mode 100644 index d286c553d..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl +++ /dev/null @@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns="http://www.w3.org/1999/xhtml" - xmlns:db="http://docbook.org/ns/docbook" - xmlns:dbs="http://docbook.org/ns/docbook-slides" - exclude-result-prefixes="dbs db" - version="1.0"> - -<xsl:import href="plain.xsl"/> - -<xsl:param name="wrap.slidecontent">0</xsl:param> - -<xsl:template name="xhtml.head"> - <meta name="copyright"> - <xsl:attribute name="content"> - <xsl:if test="/dbs:slides/db:info/db:copyright"> - <xsl:call-template name="slide.copyright"/> - </xsl:if> - </xsl:attribute> - </meta> - - <xsl:if test="$slidy.duration != 0"> - <meta name="duration" content="{$slidy.duration}"/> - </xsl:if> - - <link rel="stylesheet" href="{concat($slidy.path.prefix, $slidy.slidy.css)}" type="text/css"/> - <xsl:if test="$slidy.user.css"> - <link rel="stylesheet" href="{concat($slidy.path.prefix, $slidy.user.css)}" type="text/css"/> - </xsl:if> - <link rel="stylesheet" href="{$user.css}" type="text/css"/> - <script src="{concat($slidy.path.prefix, $slidy.slidy.js)}" charset="utf-8" type="text/javascript"/> -</xsl:template> - -<xsl:template name="slideshow.head"> - <div class="background"/> -</xsl:template> - -<xsl:template name="slideshow.content"> - <xsl:if test="$generate.titlepage != 0"> - <xsl:apply-templates select="/dbs:slides" mode="titlepage"/> - </xsl:if> - - <xsl:apply-templates select="/dbs:slides/dbs:foil|dbs:slides/dbs:foilgroup"/> -</xsl:template> - -<xsl:template match="db:xref"> - <xsl:variable name="target" select="id(./@linkend)"/> - - <xsl:choose> - <xsl:when test="($target[self::dbs:foil] or $target[self::dbs:foilgroup])"> - <!-- foil no: preceding foil(group)s + titlepage + 1 --> - <xsl:variable name="target.no" select="count($target/preceding::dbs:foil|$target/preceding::dbs:foilgroup) + 1 + $generate.titlepage"/> - - <a href="{concat('#(', $target.no, ')')}"> - <xsl:apply-templates select="$target" mode="xref-to"/> - </a> - </xsl:when> - - <xsl:otherwise> - <xsl:call-template name="xref"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="db:biblioentry" mode="xref-to"> - <xsl:variable name="id" select="@xml:id"/> - <xsl:variable name="entry" select="//db:bibliography/*[@xml:id=$id][1]"/> - - <a> - <xsl:attribute name="href"> - <xsl:value-of select="concat('#(', count($entry/preceding::dbs:foil|$entry/preceding::dbs:foilgroup) + 1 + $generate.titlepage, ')')"/> - </xsl:attribute> - <xsl:choose> - <xsl:when test="$bibliography.numbered != 0"> - <xsl:number from="db:bibliography" count="db:biblioentry|db:bibliomixed" level="any" format="1"/> - </xsl:when> - - <xsl:otherwise> - <xsl:value-of select="$id"/> - </xsl:otherwise> - </xsl:choose> - </a> -</xsl:template> - -</xsl:stylesheet> |