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/website/tabular.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/website/tabular.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/website/tabular.xsl | 213 |
1 files changed, 0 insertions, 213 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/website/tabular.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/website/tabular.xsl deleted file mode 100644 index 14e597e1d..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/website/tabular.xsl +++ /dev/null @@ -1,213 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:html='http://www.w3.org/1999/xhtml' - xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" - exclude-result-prefixes="html doc" - version="1.0"> - -<xsl:import href="website-common.xsl"/> -<xsl:include href="toc-tabular.xsl"/> - -<xsl:output method="html" - indent="no" - doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" - doctype-system="http://www.w3.org/TR/html4/loose.dtd" -/> - -<xsl:param name="autolayout" select="document($autolayout-file, /*)"/> - -<!-- ==================================================================== --> - -<!-- Netscape gets badly confused if it sees a CSS style... --> -<xsl:param name="admon.style" select="''"/> -<xsl:param name="admon.graphics" select="1"/> -<xsl:param name="admon.graphics.path">graphics/</xsl:param> -<xsl:param name="admon.graphics.extension">.gif</xsl:param> - -<xsl:attribute-set name="table.properties"> - <xsl:attribute name="border">0</xsl:attribute> - <xsl:attribute name="cellpadding">0</xsl:attribute> - <xsl:attribute name="cellspacing">0</xsl:attribute> - <xsl:attribute name="width">100%</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="table.navigation.cell.properties"> - <xsl:attribute name="valign">top</xsl:attribute> - <xsl:attribute name="align">left</xsl:attribute> - <!-- width is set with $navotocwidth --> - <xsl:attribute name="bgcolor"> - <xsl:choose> - <xsl:when test="/webpage/config[@param='navbgcolor']/@value[. != '']"> - <xsl:value-of select="/webpage/config[@param='navbgcolor']/@value"/> - </xsl:when> - <xsl:when test="$autolayout/autolayout/config[@param='navbgcolor']/@value[. != '']"> - <xsl:value-of select="$autolayout/autolayout/config[@param='navbgcolor']/@value"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$navbgcolor"/> - </xsl:otherwise> - </xsl:choose> - </xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="table.body.cell.properties"> - <xsl:attribute name="valign">top</xsl:attribute> - <xsl:attribute name="align">left</xsl:attribute> - <!-- width is set with $navobodywidth --> - <xsl:attribute name="bgcolor"> - <xsl:value-of select="$textbgcolor"/> - </xsl:attribute> -</xsl:attribute-set> - -<xsl:param name="body.columns" select="2"/> - -<!-- ==================================================================== --> - -<xsl:template match="/"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template name="home.navhead"> - <xsl:text>Navhead</xsl:text> -</xsl:template> - -<xsl:template name="home.navhead.upperright"> - <xsl:text>Upper-right</xsl:text> -</xsl:template> - -<xsl:template name="home.navhead.cell"> - <td width="50%" valign="middle" align="left"> - <xsl:call-template name="home.navhead"/> - </td> -</xsl:template> - -<xsl:template name="home.navhead.upperright.cell"> - <td width="50%" valign="middle" align="right"> - <xsl:call-template name="home.navhead.upperright"/> - </td> -</xsl:template> - -<xsl:template name="home.navhead.separator"> - <hr/> -</xsl:template> - -<xsl:template match="webpage"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - - <xsl:variable name="relpath"> - <xsl:call-template name="root-rel-path"> - <xsl:with-param name="webpage" select="."/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="tocentry" select="$autolayout/autolayout//*[$id=@id]"/> - <xsl:variable name="toc" select="($tocentry/ancestor-or-self::toc - |$autolayout/autolayout/toc[1])[last()]"/> - - <html> - <xsl:apply-templates select="head" mode="head.mode"/> - <xsl:apply-templates select="config" mode="head.mode"/> - <body class="tabular"> - <xsl:call-template name="body.attributes"/> - - <div class="{name(.)}"> - <a name="{$id}"/> - - <xsl:call-template name="allpages.banner"/> - - <table xsl:use-attribute-sets="table.properties" border="0"> - <xsl:if test="$nav.table.summary!=''"> - <xsl:attribute name="summary"> - <xsl:value-of select="normalize-space($nav.table.summary)"/> - </xsl:attribute> - </xsl:if> - <tr> - <td xsl:use-attribute-sets="table.navigation.cell.properties"> - <img src="{$relpath}{$table.spacer.image}" alt=" " width="1" height="1"/> - </td> - <xsl:call-template name="hspacer"> - <xsl:with-param name="vspacer" select="1"/> - </xsl:call-template> - <td rowspan="2" xsl:use-attribute-sets="table.body.cell.properties"> - <xsl:if test="$navbodywidth != ''"> - <xsl:attribute name="width"> - <xsl:value-of select="$navbodywidth"/> - </xsl:attribute> - </xsl:if> - - <xsl:if test="$autolayout/autolayout/toc[1]/@id = $id"> - <table border="0" summary="home page extra headers" - cellpadding="0" cellspacing="0" width="100%"> - <tr> - <xsl:call-template name="home.navhead.cell"/> - <xsl:call-template name="home.navhead.upperright.cell"/> - </tr> - </table> - <xsl:call-template name="home.navhead.separator"/> - </xsl:if> - - <xsl:if test="$autolayout/autolayout/toc[1]/@id != $id - or $suppress.homepage.title = 0"> - <xsl:apply-templates select="./head/title" mode="title.mode"/> - </xsl:if> - - <xsl:apply-templates select="child::node()[not(self::webpage)]"/> - <xsl:call-template name="process.footnotes"/> - <br/> - </td> - </tr> - <tr> - <td xsl:use-attribute-sets="table.navigation.cell.properties"> - <xsl:if test="$navtocwidth != ''"> - <xsl:attribute name="width"> - <xsl:choose> - <xsl:when test="/webpage/config[@param='navtocwidth']/@value[. != '']"> - <xsl:value-of select="/webpage/config[@param='navtocwidth']/@value"/> - </xsl:when> - <xsl:when test="$autolayout/autolayout/config[@param='navtocwidth']/@value[. != '']"> - <xsl:value-of select="$autolayout/autolayout/config[@param='navtocwidth']/@value"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$navtocwidth"/> - </xsl:otherwise> - </xsl:choose> - </xsl:attribute> - </xsl:if> - <xsl:choose> - <xsl:when test="$toc"> - <p class="navtoc"> - <xsl:apply-templates select="$toc"> - <xsl:with-param name="pageid" select="@id"/> - </xsl:apply-templates> - </p> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - </td> - <xsl:call-template name="hspacer"/> - </tr> - <xsl:call-template name="webpage.table.footer"/> - </table> - - <xsl:call-template name="webpage.footer"/> - </div> - - </body> - </html> -</xsl:template> - -<xsl:template name="hspacer"> - <xsl:param name="vspacer" select="0"/> - <!-- nop --> -</xsl:template> - -<xsl:template match="config[@param='filename']" mode="head.mode"> -</xsl:template> - -<xsl:template match="webtoc"> - <!-- nop --> -</xsl:template> - -</xsl:stylesheet> |