~ubuntu-branches/ubuntu/maverick/kubuntu-docs/maverick

« back to all changes in this revision

Viewing changes to libs/kubuntu-single.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2008-08-18 10:49:14 UTC
  • Revision ID: james.westby@ubuntu.com-20080818104914-83r2er2hsmdp2o0l
Tags: 8.10-2
* Restructured kubuntu documentation package
  - Refer to the NEWS text located in the root directory of the package
* Removed the Firefox start page files
* debian/rules: updated to remove firefox files
* debian/control: removed perl deps due to removal of firefox files, bumped
  version to 3.8.0, updated kdelibs-data dep to kdelibs5-data

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/docbook.xsl"/>
 
7
        
 
8
 
 
9
    <!-- Params -->
 
10
    <xsl:param name="generate.legalnotice.link" select="1"/>
 
11
        <!-- requires DocBook XSL 1.69.1a -->
 
12
    <xsl:param name="generate.revhistory.link" select="1"/>
 
13
    <xsl:param name="toc.max.depth" select="2"/>
 
14
    <xsl:param name="chunker.output.indent" select="'yes'"/>
 
15
    <xsl:param name="body.font.master" select="10"/>
 
16
    <xsl:param name="html.stylesheet" select="'../ubuntu-book.css'"/>
 
17
    <xsl:param name="shade.verbatim" select="0"/>
 
18
    <xsl:param name="draft.mode" select="'yes'"/>
 
19
 
 
20
        <!--Navigation Graphics-->
 
21
        <xsl:param name="navig.graphics" select="1"/>
 
22
        <xsl:param name="navig.graphics.path" select="'../../images/navig/'"/>
 
23
        <xsl:param name="navig.graphics.extension" select="'.gif'"/> 
 
24
        <xsl:param name="navig.showtitles" select="1"/>
 
25
        
 
26
        <!--Admon Graphics--> 
 
27
        <xsl:param name="admon.graphics" select="1"/>
 
28
        <xsl:param name="admon.textlabel" select="0"/>
 
29
        <xsl:param name="admon.graphics.path" select="'../../images/admon/'"/>
 
30
        <xsl:param name="admon.graphics.extension" select="'.png'"/>
 
31
        
 
32
        <!-- Callout Graphics -->
 
33
        <xsl:param name="callout.unicode" select="1"/>
 
34
        <xsl:param name="callout.graphics" select="0"/>
 
35
        <xsl:param name="callout.graphics.path" select="'../../images/callouts/'"/>
 
36
        <xsl:param name="callout.graphics.extension" select="'.png'"/>
 
37
        
 
38
    <!-- Inline Formatting -->
 
39
    <xsl:template match="application">
 
40
      <xsl:call-template name="inline.boldseq"/>
 
41
    </xsl:template>
 
42
    <xsl:template match="guibutton">
 
43
      <xsl:call-template name="inline.boldseq"/>
 
44
    </xsl:template>
 
45
    <xsl:template match="guilabel">
 
46
      <xsl:call-template name="inline.italicseq"/>
 
47
    </xsl:template>
 
48
    
 
49
        <!-- this strippath template is copied from the 1.68.1 version of common.xls  -->
 
50
        <xsl:template name="strippath">
 
51
          <xsl:param name="filename" select="''"/>
 
52
          <xsl:choose>
 
53
            <!-- Leading .. are not eliminated -->
 
54
            <xsl:when test="starts-with($filename, '../')">
 
55
              <xsl:value-of select="'../'"/>
 
56
              <xsl:call-template name="strippath">
 
57
                <xsl:with-param name="filename" select="substring-after($filename, '../')"/>
 
58
              </xsl:call-template>
 
59
            </xsl:when>
 
60
            <xsl:when test="contains($filename, '/../')">
 
61
              <xsl:call-template name="strippath">
 
62
                <xsl:with-param name="filename">
 
63
                  <xsl:call-template name="getdir">
 
64
                    <xsl:with-param name="filename" select="substring-before($filename, '/../')"/>
 
65
                  </xsl:call-template>
 
66
                  <xsl:value-of select="substring-after($filename, '/../')"/>
 
67
                </xsl:with-param>
 
68
              </xsl:call-template>
 
69
            </xsl:when>
 
70
            <xsl:otherwise>
 
71
              <xsl:value-of select="$filename"/>
 
72
            </xsl:otherwise>
 
73
          </xsl:choose>
 
74
        </xsl:template>
 
75
 
 
76
</xsl:stylesheet>