source: stylesheets/lfs-xsl/xhtml/lfs-glossary.xsl@ 4b40acd

gimp3 trunk
Last change on this file since 4b40acd was 99ab416, checked in by Pierre Labastie <pierre.labastie@…>, 6 months ago

Fix webkit bug 3

Add a new stylesheet for the glossary (copying from docbook-xsl)
keep only the glossary template, simplify it, and output title
before container

  • Property mode set to 100644
File size: 1.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns="http://www.w3.org/1999/xhtml"
4 version="1.0">
5
6<!-- glossary:
7 Output title before the containing <div>, so that it can be at a fixed
8 position
9 Simplify due to the fact that we have only one glossdiv children, and
10 no other glossxxx child -->
11<!-- the original template is in {docbook-xsl}/xhtml/glossary.xsl -->
12 <xsl:template match="glossary">
13
14 <xsl:variable name="language">
15 <xsl:call-template name="l10n.language"/>
16 </xsl:variable>
17
18 <xsl:variable name="lowercase">
19 <xsl:call-template name="gentext">
20 <xsl:with-param name="key">normalize.sort.input</xsl:with-param>
21 </xsl:call-template>
22 </xsl:variable>
23
24 <xsl:variable name="uppercase">
25 <xsl:call-template name="gentext">
26 <xsl:with-param name="key">normalize.sort.output</xsl:with-param>
27 </xsl:call-template>
28 </xsl:variable>
29
30 <xsl:call-template name="id.warning"/>
31
32 <xsl:call-template name="glossary.titlepage"/>
33
34 <xsl:element name="div" namespace="http://www.w3.org/1999/xhtml">
35 <xsl:apply-templates select="." mode="common.html.attributes"/>
36 <xsl:call-template name="id.attribute">
37 <xsl:with-param name="conditional" select="0"/>
38 </xsl:call-template>
39
40 <xsl:apply-templates select="(glossdiv[1]/preceding-sibling::*)"/>
41
42 <xsl:apply-templates select="glossdiv"/>
43 </xsl:element>
44 </xsl:template>
45
46</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.