aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-03-13 09:20:45 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-03-13 09:20:45 +0000
commit2e524f93fc03353e6fb05333d8041505948959eb (patch)
tree0e2f8a60e47c994d49152b300f0d698a7eb29c4f /stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl
parentcc98817b6165e5307c1fc38328cdc2a1cc2de257 (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/xhtml-1_1/admon.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl138
1 files changed, 0 insertions, 138 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl
deleted file mode 100644
index c7d48e68d..000000000
--- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/admon.xsl
+++ /dev/null
@@ -1,138 +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: admon.xsl 9352 2012-05-12 23:17:11Z bobstayton $
- ********************************************************************
-
- 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="*" mode="admon.graphic.width">
- <xsl:param name="node" select="."/>
- <xsl:text>25</xsl:text>
-</xsl:template>
-
-<xsl:template match="note|important|warning|caution|tip">
- <xsl:choose>
- <xsl:when test="$admon.graphics != 0">
- <xsl:call-template name="graphical.admonition"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="nongraphical.admonition"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="admon.graphic">
- <xsl:param name="node" select="."/>
- <xsl:value-of select="$admon.graphics.path"/>
- <xsl:choose>
- <xsl:when test="local-name($node)='note'">note</xsl:when>
- <xsl:when test="local-name($node)='warning'">warning</xsl:when>
- <xsl:when test="local-name($node)='caution'">caution</xsl:when>
- <xsl:when test="local-name($node)='tip'">tip</xsl:when>
- <xsl:when test="local-name($node)='important'">important</xsl:when>
- <xsl:otherwise>note</xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="$admon.graphics.extension"/>
-</xsl:template>
-
-<xsl:template name="graphical.admonition">
- <xsl:variable name="admon.type">
- <xsl:choose>
- <xsl:when test="local-name(.)='note'">Note</xsl:when>
- <xsl:when test="local-name(.)='warning'">Warning</xsl:when>
- <xsl:when test="local-name(.)='caution'">Caution</xsl:when>
- <xsl:when test="local-name(.)='tip'">Tip</xsl:when>
- <xsl:when test="local-name(.)='important'">Important</xsl:when>
- <xsl:otherwise>Note</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="alt">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="$admon.type"/>
- </xsl:call-template>
- </xsl:variable>
-
- <div>
- <xsl:call-template name="common.html.attributes"/>
- <xsl:call-template name="id.attribute"/>
- <xsl:if test="$admon.style != ''">
- <xsl:attribute name="style">
- <xsl:value-of select="$admon.style"/>
- </xsl:attribute>
- </xsl:if>
-
- <table border="{$table.border.off}">
- <!-- omit summary attribute in html5 output -->
- <xsl:if test="$div.element != 'section'">
- <xsl:attribute name="summary">
- <xsl:value-of select="$admon.type"/>
- <xsl:if test="title|info/title">
- <xsl:text>: </xsl:text>
- <xsl:value-of select="(title|info/title)[1]"/>
- </xsl:if>
- </xsl:attribute>
- </xsl:if>
- <tr>
- <td rowspan="2" align="center" valign="top">
-
- <img alt="[{$alt}]">
- <xsl:attribute name="src">
- <xsl:call-template name="admon.graphic"/>
- </xsl:attribute>
- </img>
- </td>
- <th align="{$direction.align.start}">
- <xsl:call-template name="anchor"/>
- <xsl:if test="$admon.textlabel != 0 or title or info/title">
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </xsl:if>
- </th>
- </tr>
- <tr>
- <td align="{$direction.align.start}" valign="top">
- <xsl:apply-templates/>
- </td>
- </tr>
- </table>
- </div>
-</xsl:template>
-
-<xsl:template name="nongraphical.admonition">
- <div>
- <xsl:call-template name="common.html.attributes">
- <xsl:with-param name="inherit" select="1"/>
- </xsl:call-template>
- <xsl:call-template name="id.attribute"/>
- <xsl:if test="$admon.style">
- <xsl:attribute name="style">
- <xsl:value-of select="$admon.style"/>
- </xsl:attribute>
- </xsl:if>
-
- <xsl:if test="$admon.textlabel != 0 or title or info/title">
- <h3 class="title">
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates select="." mode="object.title.markup"/>
- </h3>
- </xsl:if>
-
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="note/title"/>
-<xsl:template match="important/title"/>
-<xsl:template match="warning/title"/>
-<xsl:template match="caution/title"/>
-<xsl:template match="tip/title"/>
-
-</xsl:stylesheet>