~ubuntu-branches/ubuntu/precise/kubuntu-docs/precise-proposed

« back to all changes in this revision

Viewing changes to libs/hko-index.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2010-03-26 16:56:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100326165623-gfoyo6ytvqk6wzub
Tags: 10.04.1
* Initial release of rewritten documentation for Lucid. All docs are new.
* Removed debian/kubuntu-docs.links
* Cleaning up debian/rules
* Updated debian/copyright
* Added source format 3.0
* Changed the maintainer back to Ubuntu Documentation Project
* Bumped standards to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8" ?>
2
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
 
    <!-- This file is a customization layer for HTML only -->
4
 
    <!-- ======================= -->
5
 
    <!-- Imports -->
6
 
        <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/chunk.xsl"/>
7
 
        <xsl:import href="kubuntu-banner.xsl"/> 
8
 
        <xsl:import href="../kde-style.xsl"/>   
9
 
 
10
 
    <!-- Params -->
11
 
    <xsl:param name="generate.legalnotice.link" select="1"/>
12
 
        <!-- requires DocBook XSL 1.69.1a -->
13
 
    <xsl:param name="generate.revhistory.link" select="1"/>
14
 
    <xsl:param name="toc.max.depth" select="2"/>
15
 
    <xsl:param name="chunker.output.indent" select="'yes'"/>
16
 
    <xsl:param name="body.font.master" select="10"/>
17
 
    <xsl:param name="html.stylesheet" select="'common/index-table.css'"/>
18
 
    <xsl:param name="draft.mode" select="'no'"/>
19
 
    <xsl:param name="shade.verbatim" select="0"/>
20
 
    <xsl:param name="chunk.first.sections" select="'1'"/>
21
 
        <xsl:param name="use.id.as.filename" select="1"/>
22
 
    <!-- Inline Formatting -->
23
 
    <xsl:template match="application">
24
 
      <xsl:call-template name="inline.boldseq"/>
25
 
    </xsl:template>
26
 
    <xsl:template match="guibutton">
27
 
      <xsl:call-template name="inline.boldseq"/>
28
 
    </xsl:template>
29
 
    <xsl:template match="guilabel">
30
 
      <xsl:call-template name="inline.italicseq"/>
31
 
    </xsl:template>
32
 
    
33
 
        <!-- this strippath template is copied from the 1.68.1 version of common.xls  -->
34
 
        <xsl:template name="strippath">
35
 
          <xsl:param name="filename" select="''"/>
36
 
          <xsl:choose>
37
 
            <!-- Leading .. are not eliminated -->
38
 
                <xsl:when test="starts-with($filename, '../../')">
39
 
              <xsl:value-of select="'../'"/>
40
 
              <xsl:call-template name="strippath">
41
 
                          <xsl:with-param name="filename" select="substring-after($filename, '../../')"/>
42
 
              </xsl:call-template>
43
 
            </xsl:when>
44
 
                <xsl:when test="contains($filename, '/../../')">
45
 
              <xsl:call-template name="strippath">
46
 
                <xsl:with-param name="filename">
47
 
                  <xsl:call-template name="getdir">
48
 
                                  <xsl:with-param name="filename" select="substring-before($filename, '/../../')"/>
49
 
                  </xsl:call-template>
50
 
                          <xsl:value-of select="substring-after($filename, '/../../')"/>
51
 
                </xsl:with-param>
52
 
              </xsl:call-template>
53
 
            </xsl:when>
54
 
            <xsl:otherwise>
55
 
              <xsl:value-of select="$filename"/>
56
 
            </xsl:otherwise>
57
 
          </xsl:choose>
58
 
        </xsl:template>
59
 
 
60
 
        <!-- Strip ../ from images -->
61
 
        <xsl:template match="imagedata">
62
 
                <xsl:call-template name="stripimgpath">
63
 
                        <xsl:with-param name="thisPath" select="''"/>
64
 
                </xsl:call-template>
65
 
        </xsl:template>
66
 
        <xsl:template name="stripimgpath">
67
 
                <xsl:param name="thisPath"/>
68
 
                <xsl:choose>
69
 
                        <xsl:when test="starts-with($thisPath, '../../')">
70
 
                                <xsl:call-template name="stripimgpath">
71
 
                                        <xsl:with-param name="thisPath" select="substring-after($thisPath, '../../')"/>
72
 
                                </xsl:call-template>
73
 
                        </xsl:when>
74
 
                        <xsl:otherwise><xsl:value-of select="$thisPath"/></xsl:otherwise>
75
 
                </xsl:choose>
76
 
        </xsl:template>
77
 
</xsl:stylesheet>