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/highlighting/common.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/highlighting/common.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/highlighting/common.xsl | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/highlighting/common.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/highlighting/common.xsl deleted file mode 100644 index e9b565085..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/highlighting/common.xsl +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-
- xmlns:s6hl="http://net.sf.xslthl/ConnectorSaxon6"
- xmlns:sbhl="http://net.sf.xslthl/ConnectorSaxonB"
- xmlns:xhl="http://net.sf.xslthl/ConnectorXalan"
- xmlns:saxon6="http://icl.com/saxon"
- xmlns:saxonb="http://saxon.sf.net/"
- xmlns:xalan="http://xml.apache.org/xalan"
-
- xmlns:exsl="http://exslt.org/common"
- xmlns:xslthl="http://xslthl.sf.net"
- exclude-result-prefixes="exsl xslthl s6hl sbhl xhl"
- version='1.0'>
-
-<!-- ********************************************************************
- $Id: common.xsl 8257 2009-02-20 04:40:16Z abdelazer $
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://docbook.sf.net/release/xsl/current/ for
- and other information.
-
- ******************************************************************** -->
-
-<!-- this construction is needed to have the saxon and xalan connectors working alongside each other -->
-<xalan:component prefix="xhl" functions="highlight">
- <xalan:script lang="javaclass" src="xalan://net.sf.xslthl.ConnectorXalan" />
-</xalan:component>
-
-<!-- for saxon 6 -->
-<saxon6:script implements-prefix="s6hl" language="java" src="java:net.sf.xslthl.ConnectorSaxon6" />
-
-<!-- for saxon 8.5 and later -->
-<saxonb:script implements-prefix="sbhl" language="java" src="java:net.sf.xslthl.ConnectorSaxonB" />
-
-
-<!-- You can override this template to do more complex mapping of
- language attribute to highlighter language ID (see xslthl-config.xml) -->
-<xsl:template name="language.to.xslthl">
- <xsl:param name="context"/>
-
- <xsl:choose>
- <xsl:when test="$context/@language != ''">
- <xsl:value-of select="$context/@language"/>
- </xsl:when>
- <xsl:when test="$highlight.default.language != ''">
- <xsl:value-of select="$highlight.default.language"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="apply-highlighting">
- <xsl:choose>
- <!-- Do we want syntax highlighting -->
- <xsl:when test="$highlight.source != 0">
- <xsl:variable name="language">
- <xsl:call-template name="language.to.xslthl">
- <xsl:with-param name="context" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$language != ''">
- <xsl:variable name="content">
- <xsl:apply-templates/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="function-available('s6hl:highlight')">
- <xsl:apply-templates select="s6hl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"
- mode="xslthl"/>
- </xsl:when>
- <xsl:when test="function-available('sbhl:highlight')">
- <xsl:apply-templates select="sbhl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"
- mode="xslthl"/>
- </xsl:when>
- <xsl:when test="function-available('xhl:highlight')">
- <xsl:apply-templates select="xhl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"
- mode="xslthl"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$content"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- No syntax highlighting -->
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- A fallback when the specific style isn't recognized -->
-<xsl:template match="xslthl:*" mode="xslthl">
- <xsl:message>
- <xsl:text>unprocessed xslthl style: </xsl:text>
- <xsl:value-of select="local-name(.)" />
- </xsl:message>
- <xsl:apply-templates mode="xslthl"/>
-</xsl:template>
-
-<!-- Copy over already produced markup (FO/HTML) -->
-<xsl:template match="node()" mode="xslthl" priority="-1">
- <xsl:copy>
- <xsl:apply-templates select="node()" mode="xslthl"/>
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="*" mode="xslthl">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates select="node()" mode="xslthl"/>
- </xsl:copy>
-</xsl:template>
-
-</xsl:stylesheet>
|