~ubuntu-branches/ubuntu/utopic/yelp-xsl/utopic

« back to all changes in this revision

Viewing changes to xslt/common/icons.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 10:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20101129100013-1fxze8fm1fegxl8w
Tags: upstream-2.31.6
ImportĀ upstreamĀ versionĀ 2.31.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
 
2
<!--
 
3
This program is free software; you can redistribute it and/or modify it under
 
4
the terms of the GNU Lesser General Public License as published by the Free
 
5
Software Foundation; either version 2 of the License, or (at your option) any
 
6
later version.
 
7
 
 
8
This program is distributed in the hope that it will be useful, but WITHOUT
 
9
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
10
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
11
details.
 
12
 
 
13
You should have received a copy of the GNU Lesser General Public License
 
14
along with this program; see the file COPYING.LGPL.  If not, write to the
 
15
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
16
02111-1307, USA.
 
17
-->
 
18
 
 
19
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
20
                version="1.0">
 
21
 
 
22
<!--!!==========================================================================
 
23
Icons
 
24
Specify common named icons to style output.
 
25
:Requires: gettext
 
26
:Revision:version="1.0" date="2010-05-25" status="final"
 
27
 
 
28
This stylesheet provides a common interface to specify icons for transformations
 
29
to presentation-oreinted formats. This allows similar output for different
 
30
types of input documents.
 
31
-->
 
32
 
 
33
 
 
34
<!--@@==========================================================================
 
35
icons.base_url
 
36
The default URL prefix for all icons.
 
37
:Revision:version="1.0" date="2010-01-26" status="final"
 
38
 
 
39
This parameter provides a default URL prefix. All icon locations in this
 
40
stylesheet reference files directly under this URL prefix by default. If
 
41
you override the individual icon parameters in this stylesheet, this parameter
 
42
has no effect. This parameter should end with a trailing slash.
 
43
-->
 
44
<xsl:param name="icons.base_url" select="''"/>
 
45
 
 
46
 
 
47
<!--@@==========================================================================
 
48
icons.size.note
 
49
The size of the note icons.
 
50
:Revision:version="1.0" date="2010-03-05" status="final"
 
51
 
 
52
This parameter specifies the size of the note icons. Use an integer giving
 
53
the width of the image files in pixels. Icons are assumed to be square, and
 
54
all note icons are assumed to have the same size.
 
55
-->
 
56
<xsl:param name="icons.size.note" select="24"/>
 
57
 
 
58
 
 
59
<!--@@==========================================================================
 
60
icons.note
 
61
The URL for the note icon.
 
62
:Revision:version="1.0" date="2010-05-03" status="final"
 
63
 
 
64
This parameter specifies the URL for the icon used for regular notes.
 
65
-->
 
66
<xsl:param name="icons.note"
 
67
           select="concat($icons.base_url, 'yelp-note.png')"/>
 
68
 
 
69
 
 
70
<!--@@==========================================================================
 
71
icons.note.bug
 
72
The URL for the bug note icon.
 
73
:Revision:version="1.0" date="2010-05-03" status="final"
 
74
 
 
75
This parameter specifies the URL for the icon used for bug notes.
 
76
-->
 
77
<xsl:param name="icons.note.bug"
 
78
           select="concat($icons.base_url, 'yelp-note-bug.png')"/>
 
79
 
 
80
 
 
81
<!--@@==========================================================================
 
82
icons.note.important
 
83
The URL for the important note icon.
 
84
:Revision:version="1.0" date="2010-05-03" status="final"
 
85
 
 
86
This parameter specifies the URL for the icon used for important notes.
 
87
-->
 
88
<xsl:param name="icons.note.important"
 
89
           select="concat($icons.base_url, 'yelp-note-important.png')"/>
 
90
 
 
91
 
 
92
<!--@@==========================================================================
 
93
icons.note.tip
 
94
The URL for the tip note icon.
 
95
:Revision:version="1.0" date="2010-05-03" status="final"
 
96
 
 
97
This parameter specifies the URL for the icon used for tip notes.
 
98
-->
 
99
<xsl:param name="icons.note.tip"
 
100
           select="concat($icons.base_url, 'yelp-note-tip.png')"/>
 
101
 
 
102
 
 
103
<!--@@==========================================================================
 
104
icons.note.warning
 
105
The URL for the warning note icon.
 
106
:Revision:version="1.0" date="2010-05-03" status="final"
 
107
 
 
108
This parameter specifies the URL for the icon used for warning notes.
 
109
-->
 
110
<xsl:param name="icons.note.warning"
 
111
           select="concat($icons.base_url, 'yelp-note-warning.png')"/>
 
112
 
 
113
 
 
114
<!--@@==========================================================================
 
115
icons.size.quote
 
116
The size of the quote icons.
 
117
:Revision:version="1.0" date="2010-05-03" status="final"
 
118
 
 
119
This parameter specifies the size of the quote icons. Use an integer giving
 
120
the width of the image files in pixels. Icons are assumed to be square, and
 
121
all quote icons are assumed to have the same size.
 
122
-->
 
123
<xsl:param name="icons.size.quote" select="48"/>
 
124
 
 
125
 
 
126
<!--@@==========================================================================
 
127
icons.quote
 
128
The URL for the block quote watermark.
 
129
:Revision:version="1.0" date="2010-05-03" status="final"
 
130
 
 
131
This parameter specifies the URL for the watermark for block quotes. The
 
132
default name of the image file is translatable. If you set this parameter,
 
133
you should ensure that your graphic uses a suitable quote character for the
 
134
language your document is written in.
 
135
-->
 
136
<xsl:param name="icons.quote">
 
137
  <xsl:value-of select="$icons.base_url"/>
 
138
  <xsl:call-template name="l10n.gettext">
 
139
    <xsl:with-param name="msgid" select="'yelp-quote-201C.png'"/>
 
140
  </xsl:call-template>
 
141
</xsl:param>
 
142
 
 
143
 
 
144
<!--@@==========================================================================
 
145
icons.size.code
 
146
The size of the code icons.
 
147
:Revision:version="1.0" date="2010-05-03" status="final"
 
148
 
 
149
This parameter specifies the size of the code icons. Use an integer giving
 
150
the width of the image files in pixels. Icons are assumed to be square, and
 
151
all code icons are assumed to have the same size.
 
152
-->
 
153
<xsl:param name="icons.size.quote" select="128"/>
 
154
 
 
155
 
 
156
<!--@@==========================================================================
 
157
icons.code
 
158
The URL for the block code watermark.
 
159
:Revision:version="1.0" date="2010-05-03" status="final"
 
160
 
 
161
This parameter specifies the URL for the watermark for code blocks.
 
162
-->
 
163
<xsl:param name="icons.code">
 
164
  <xsl:value-of select="$icons.base_url"/>
 
165
  <xsl:text>yelp-code.png</xsl:text>
 
166
</xsl:param>
 
167
 
 
168
 
 
169
</xsl:stylesheet>