summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/source/english/tex-refs/tex-refs.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/source/english/tex-refs/tex-refs.xsl')
-rw-r--r--Master/texmf-doc/source/english/tex-refs/tex-refs.xsl48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-doc/source/english/tex-refs/tex-refs.xsl b/Master/texmf-doc/source/english/tex-refs/tex-refs.xsl
new file mode 100644
index 00000000000..7a77ee198e5
--- /dev/null
+++ b/Master/texmf-doc/source/english/tex-refs/tex-refs.xsl
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+ <!-- $Id: tex-refs.xsl 142 2004-10-24 15:13:24Z mw $ -->
+
+ <!-- <xsl:import href="file:///home/mw/docbook-xsl/xhtml/docbook.xsl"/> -->
+ <!-- we use an XML catalog to resolve this file -->
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
+
+ <!-- import common customizations -->
+ <xsl:import href="tex-refs-common.xsl"/>
+
+ <xsl:output method="html"
+ encoding="ISO-8859-1"
+ indent="no"/>
+
+ <!-- insert customization here -->
+
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="html.stylesheet" select="'tex-refs.css'"/>
+
+ <!-- override bridgehead to pass down a class "attribute" -->
+ <xsl:template match="bridgehead">
+ <xsl:variable name="hlevel">
+ <xsl:choose>
+ <xsl:when test="@renderas = 'sect1'">1</xsl:when>
+ <xsl:when test="@renderas = 'sect2'">2</xsl:when>
+ <xsl:when test="@renderas = 'sect3'">3</xsl:when>
+ <xsl:when test="@renderas = 'sect4'">4</xsl:when>
+ <xsl:when test="@renderas = 'sect5'">5</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="5"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:attribute name="class"><xsl:text>title</xsl:text></xsl:attribute>
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="conditional" select="0"/>
+ </xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>