aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-1.78.1/assembly/topic-maker.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/assembly/topic-maker.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/assembly/topic-maker.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-1.78.1/assembly/topic-maker.xsl78
1 files changed, 0 insertions, 78 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/assembly/topic-maker.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/assembly/topic-maker.xsl
deleted file mode 100644
index b705aca05..000000000
--- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/assembly/topic-maker.xsl
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns="http://docbook.org/ns/docbook"
- exclude-result-prefixes="exsl"
- version="1.0">
-
-<!-- $Id: topic-maker.xsl,v 1.3 2012-04-16 00:29:35 bobs Exp $ -->
-
-<!-- This stylesheet convert DocBook elements into topic element.
- The chunking takes place elsewhere. -->
-
-<xsl:import href="../xhtml/docbook.xsl"/>
-
-
-<xsl:param name="assembly.filename">myassembly.xml</xsl:param>
-<xsl:param name="chunk.section.depth" select="3"/>
-<xsl:param name="chunk.first.sections" select="1"/>
-<xsl:param name="use.id.as.filename" select="1"/>
-<xsl:param name="html.ext">.xml</xsl:param>
-<xsl:param name="base.dir">topics/</xsl:param>
-<xsl:param name="root.filename" select="local-name(/*)"/>
-<xsl:param name="html.extra.head.links" select="0"/>
-<xsl:param name="stylesheet.result.type">xhtml</xsl:param>
-<xsl:param name="navig.showtitles" select="0"/>
-<xsl:param name="suppress.navigation" select="1"/>
-<xsl:param name="chunk.append"/>
-<xsl:param name="chunk.quietly" select="0"/>
-<xsl:param name="chunker.output.method" select="'xml'"/>
-<xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
-<xsl:param name="chunker.output.indent" select="'no'"/>
-<xsl:param name="chunker.output.omit-xml-declaration" select="'no'"/>
-<xsl:param name="chunker.output.standalone" select="'no'"/>
-<xsl:param name="chunker.output.doctype-public" select="''"/>
-<xsl:param name="chunker.output.doctype-system" select="''"/>
-<xsl:param name="namespace">http://docbook.org/ns/docbook</xsl:param>
-
-<!-- These elements are converted to topic elements -->
-<xsl:param name="topic.elements">preface chapter article section</xsl:param>
-<xsl:variable name="topic.list"
- select="concat(' ', normalize-space($topic.elements), ' ')"/>
-
-<!-- Default behavior is identity copy -->
-<xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="preface|chapter|appendix|section|article">
- <xsl:variable name="element.name">
- <xsl:call-template name="element.name"/>
- </xsl:variable>
-
- <xsl:element name="{$element.name}" namespace="{$namespace}">
- <xsl:apply-templates select="@*"/>
- <xsl:apply-templates/>
- </xsl:element>
-</xsl:template>
-
-<xsl:template name="element.name">
- <xsl:param name="node" select="."/>
-
- <xsl:variable name="src.element" select="concat(' ', local-name($node), ' ')"/>
- <xsl:choose>
- <xsl:when test="contains($topic.list, $src.element)">
- <xsl:text>topic</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="local-name($node)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
-