blob: 7a77ee198e5a9e0724d142df7c3f006bdfbd482d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>
|