~ubuntu-branches/ubuntu/natty/kde4libs/natty-proposed

« back to all changes in this revision

Viewing changes to kdoctools/docbook/xsl/common/subtitles.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Jonathan Riddell, Scott Kitterman
  • Date: 2011-01-21 11:32:24 UTC
  • mfrom: (1.14.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110121113224-c9tebdkklj5u3awu
Tags: 4:4.6.0-0ubuntu1~ppa1
[ Jonathan Riddell ]
* New upstream release
* Reluctantly add kcm_ssl to kdelibs5-plugins, this should be in kdebase

[ Scott Kitterman ]
* Update libkatepartinterfaces4.symbols and libkdecore5.symbols for 4.5.95
  and confirm symbols on all architectures with pkgkde-symbolshelper
  - Thanks to Jonathan Thomas for verifying the missing symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0'?>
2
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
 
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4
 
                exclude-result-prefixes="doc"
5
 
                version='1.0'>
6
 
 
7
 
<!-- ********************************************************************
8
 
     $Id: subtitles.xsl 384406 2005-01-31 00:11:27Z raabe $
9
 
     ********************************************************************
10
 
 
11
 
     This file is part of the XSL DocBook Stylesheet distribution.
12
 
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
13
 
     and other information.
14
 
 
15
 
     ******************************************************************** -->
16
 
 
17
 
<!-- ==================================================================== -->
18
 
 
19
 
<!-- subtitle markup -->
20
 
 
21
 
<doc:mode mode="subtitle.markup" xmlns="">
22
 
<refpurpose>Provides access to element subtitles</refpurpose>
23
 
<refdescription>
24
 
<para>Processing an element in the
25
 
<literal role="mode">subtitle.markup</literal> mode produces the
26
 
subtitle of the element.
27
 
</para>
28
 
</refdescription>
29
 
</doc:mode>
30
 
 
31
 
<xsl:template match="*" mode="subtitle.markup">
32
 
  <xsl:message>
33
 
    <xsl:text>Request for subtitle of unexpected element: </xsl:text>
34
 
    <xsl:value-of select="name(.)"/>
35
 
  </xsl:message>
36
 
  <xsl:text>???SUBTITLE???</xsl:text>
37
 
</xsl:template>
38
 
 
39
 
<xsl:template match="subtitle" mode="subtitle.markup">
40
 
  <xsl:param name="allow-anchors" select="'0'"/>
41
 
  <xsl:apply-templates/>
42
 
</xsl:template>
43
 
 
44
 
<xsl:template match="set" mode="subtitle.markup">
45
 
  <xsl:param name="allow-anchors" select="'0'"/>
46
 
  <xsl:apply-templates select="(setinfo/subtitle|info/subtitle|subtitle)[1]"
47
 
                       mode="subtitle.markup">
48
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
49
 
  </xsl:apply-templates>
50
 
</xsl:template>
51
 
 
52
 
<xsl:template match="book" mode="subtitle.markup">
53
 
  <xsl:param name="allow-anchors" select="'0'"/>
54
 
  <xsl:apply-templates select="(bookinfo/subtitle|info/subtitle|subtitle)[1]"
55
 
                       mode="subtitle.markup">
56
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
57
 
  </xsl:apply-templates>
58
 
</xsl:template>
59
 
 
60
 
<xsl:template match="part" mode="subtitle.markup">
61
 
  <xsl:param name="allow-anchors" select="'0'"/>
62
 
  <xsl:apply-templates select="(partinfo/subtitle
63
 
                                |docinfo/subtitle
64
 
                                |info/subtitle
65
 
                                |subtitle)[1]"
66
 
                       mode="subtitle.markup">
67
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
68
 
  </xsl:apply-templates>
69
 
</xsl:template>
70
 
 
71
 
<xsl:template match="preface|chapter|appendix" mode="subtitle.markup">
72
 
  <xsl:param name="allow-anchors" select="'0'"/>
73
 
  <xsl:apply-templates select="(docinfo/subtitle
74
 
                                |info/subtitle
75
 
                                |prefaceinfo/subtitle
76
 
                                |chapterinfo/subtitle
77
 
                                |appendixinfo/subtitle
78
 
                                |subtitle)[1]"
79
 
                       mode="subtitle.markup">
80
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
81
 
  </xsl:apply-templates>
82
 
</xsl:template>
83
 
 
84
 
<xsl:template match="article" mode="subtitle.markup">
85
 
  <xsl:param name="allow-anchors" select="'0'"/>
86
 
  <xsl:apply-templates select="(artheader/subtitle
87
 
                                |articleinfo/subtitle
88
 
                                |info/subtitle
89
 
                                |subtitle)[1]"
90
 
                       mode="subtitle.markup">
91
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
92
 
  </xsl:apply-templates>
93
 
</xsl:template>
94
 
 
95
 
<xsl:template match="dedication|colophon" mode="subtitle.markup">
96
 
  <xsl:param name="allow-anchors" select="'0'"/>
97
 
  <xsl:apply-templates select="subtitle"
98
 
                       mode="subtitle.markup">
99
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
100
 
  </xsl:apply-templates>
101
 
</xsl:template>
102
 
 
103
 
<xsl:template match="reference" mode="subtitle.markup">
104
 
  <xsl:param name="allow-anchors" select="'0'"/>
105
 
  <xsl:apply-templates select="(referenceinfo/subtitle
106
 
                                |docinfo/subtitle
107
 
                                |info/subtitle
108
 
                                |subtitle)[1]"
109
 
                       mode="subtitle.markup">
110
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
111
 
  </xsl:apply-templates>
112
 
</xsl:template>
113
 
 
114
 
<xsl:template match="refentry" mode="subtitle.markup">
115
 
  <xsl:param name="allow-anchors" select="'0'"/>
116
 
  <xsl:apply-templates select="(refentryinfo/subtitle
117
 
                                |info/subtitle
118
 
                                |docinfo/subtitle)[1]"
119
 
                       mode="subtitle.markup">
120
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
121
 
  </xsl:apply-templates>
122
 
</xsl:template>
123
 
 
124
 
<xsl:template match="section
125
 
                     |sect1|sect2|sect3|sect4|sect5
126
 
                     |refsect1|refsect2|refsect3
127
 
                     |simplesect"
128
 
              mode="subtitle.markup">
129
 
  <xsl:param name="allow-anchors" select="'0'"/>
130
 
  <xsl:apply-templates select="(info/subtitle
131
 
                                |sectioninfo/subtitle
132
 
                                |sect1info/subtitle
133
 
                                |sect2info/subtitle
134
 
                                |sect3info/subtitle
135
 
                                |sect4info/subtitle
136
 
                                |sect5info/subtitle
137
 
                                |refsect1info/subtitle
138
 
                                |refsect2info/subtitle
139
 
                                |refsect3info/subtitle
140
 
                                |subtitle)[1]"
141
 
                       mode="subtitle.markup">
142
 
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
143
 
  </xsl:apply-templates>
144
 
</xsl:template>
145
 
 
146
 
</xsl:stylesheet>
147