summaryrefslogtreecommitdiff
path: root/docs/xslt/strip-references.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/xslt/strip-references.xsl')
-rw-r--r--docs/xslt/strip-references.xsl34
1 files changed, 1 insertions, 33 deletions
diff --git a/docs/xslt/strip-references.xsl b/docs/xslt/strip-references.xsl
index 568aecafd2..c3dbb71e11 100644
--- a/docs/xslt/strip-references.xsl
+++ b/docs/xslt/strip-references.xsl
@@ -2,41 +2,9 @@
<!-- Removes particular (unuseful for the book) elements from references -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
- <xsl:template match="reference/refentry/refsect1">
- <xsl:if test="title!='VERSION' and title!='AUTHOR'">
- <xsl:element name="refsect1">
- <xsl:if test="@id!=''">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="reference/refentry">
- <xsl:element name="section">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:element name="title">
- <xsl:value-of select="refmeta/refentrytitle"/>
- </xsl:element>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
+ <xsl:template match="reference/refentry/refsect1[title='VERSION' or title='AUTHOR']"/>
<xsl:template match="reference/refentry/refmeta"/>
<xsl:template match="reference/refentry/refnamediv"/>
-
- <xsl:template match="reference">
- <xsl:element name="appendix">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
</xsl:stylesheet>