| 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, see <http://www.gnu.org/licenses/>. |
| 15 |
--> |
| 16 |
|
| 17 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 18 |
xmlns:db="http://docbook.org/ns/docbook" |
| 19 |
xmlns:msg="http://projects.gnome.org/yelp/gettext/" |
| 20 |
xmlns:xl="http://www.w3.org/1999/xlink" |
| 21 |
xmlns="http://www.w3.org/1999/xhtml" |
| 22 |
exclude-result-prefixes="db xl msg" |
| 23 |
version="1.0"> |
| 24 |
|
| 25 |
<!--!!========================================================================== |
| 26 |
DocBook to HTML - Inline Elements |
| 27 |
|
| 28 |
REMARK: Describe this module |
| 29 |
--> |
| 30 |
<!--#% l10n.format.mode --> |
| 31 |
|
| 32 |
<!--**========================================================================== |
| 33 |
db2html.inline.children |
| 34 |
Render the children of an inline element. |
| 35 |
|
| 36 |
[xsl:params] |
| 37 |
$node: The element to render |
| 38 |
$children: The child elements to process |
| 39 |
|
| 40 |
REMARK: Document this template |
| 41 |
--> |
| 42 |
<xsl:template name="db2html.inline.children"> |
| 43 |
<xsl:param name="node" select="."/> |
| 44 |
<xsl:param name="children" select="false()"/> |
| 45 |
|
| 46 |
<xsl:choose> |
| 47 |
<xsl:when test="$children"> |
| 48 |
<xsl:apply-templates select="$children"/> |
| 49 |
</xsl:when> |
| 50 |
<xsl:otherwise> |
| 51 |
<xsl:apply-templates mode="db2html.inline.content.mode" select="$node"/> |
| 52 |
</xsl:otherwise> |
| 53 |
</xsl:choose> |
| 54 |
</xsl:template> |
| 55 |
|
| 56 |
|
| 57 |
<!--**========================================================================== |
| 58 |
db2html.inline |
| 59 |
Render an inline element as an HTML `span` element |
| 60 |
|
| 61 |
[xsl:params] |
| 62 |
$node: The element to render |
| 63 |
$children: The child elements to process |
| 64 |
$class: The value of the `class` attribute on the `span` tag |
| 65 |
$lang: The locale of the text in $node |
| 66 |
$name-class: The class to use for the name of the element |
| 67 |
|
| 68 |
REMARK: Document this template |
| 69 |
|
| 70 |
This template handles conditional processing. |
| 71 |
--> |
| 72 |
<xsl:template name="db2html.inline"> |
| 73 |
<xsl:param name="node" select="."/> |
| 74 |
<xsl:param name="children" select="false()"/> |
| 75 |
<xsl:param name="class" select="''"/> |
| 76 |
<xsl:param name="lang" select="$node/@lang|$node/@xml:lang"/> |
| 77 |
<xsl:param name="name-class" select="local-name($node)"/> |
| 78 |
<xsl:variable name="xlink" select="$node/@xl:href"/> |
| 79 |
<xsl:variable name="linkend" select="$node/@linkend"/> |
| 80 |
|
| 81 |
<xsl:variable name="if"> |
| 82 |
<xsl:call-template name="db.profile.test"> |
| 83 |
<xsl:with-param name="node" select="$node"/> |
| 84 |
</xsl:call-template> |
| 85 |
</xsl:variable> |
| 86 |
<xsl:if test="$if != ''"> |
| 87 |
<span> |
| 88 |
<xsl:call-template name="html.class.attr"> |
| 89 |
<xsl:with-param name="node" select="$node"/> |
| 90 |
<xsl:with-param name="class" select="concat($class, ' ', $name-class)"/> |
| 91 |
</xsl:call-template> |
| 92 |
<xsl:call-template name="html.lang.attrs"> |
| 93 |
<xsl:with-param name="node" select="$node"/> |
| 94 |
</xsl:call-template> |
| 95 |
<xsl:call-template name="db2html.anchor"> |
| 96 |
<xsl:with-param name="node" select="$node"/> |
| 97 |
</xsl:call-template> |
| 98 |
<xsl:choose> |
| 99 |
<xsl:when test="$xlink or $linkend"> |
| 100 |
<xsl:call-template name="db2html.xlink"> |
| 101 |
<xsl:with-param name="node" select="$node"/> |
| 102 |
<xsl:with-param name="content"> |
| 103 |
<xsl:call-template name="db2html.inline.children"> |
| 104 |
<xsl:with-param name="node" select="$node"/> |
| 105 |
<xsl:with-param name="children" select="$children"/> |
| 106 |
</xsl:call-template> |
| 107 |
</xsl:with-param> |
| 108 |
</xsl:call-template> |
| 109 |
</xsl:when> |
| 110 |
<xsl:otherwise> |
| 111 |
<xsl:call-template name="db2html.inline.children"> |
| 112 |
<xsl:with-param name="node" select="$node"/> |
| 113 |
<xsl:with-param name="children" select="$children"/> |
| 114 |
</xsl:call-template> |
| 115 |
</xsl:otherwise> |
| 116 |
</xsl:choose> |
| 117 |
</span> |
| 118 |
</xsl:if> |
| 119 |
</xsl:template> |
| 120 |
|
| 121 |
|
| 122 |
<!--%%=========================================================================== |
| 123 |
db2html.inline.content.mode |
| 124 |
FIXME |
| 125 |
|
| 126 |
FIXME |
| 127 |
--> |
| 128 |
<xsl:template mode="db2html.inline.content.mode" match="*"> |
| 129 |
<xsl:apply-templates/> |
| 130 |
</xsl:template> |
| 131 |
|
| 132 |
|
| 133 |
<!-- == Matched Templates == --> |
| 134 |
|
| 135 |
<!-- = abbrev = --> |
| 136 |
<xsl:template match="abbrev | db:abbrev"> |
| 137 |
<xsl:call-template name="db2html.inline"/> |
| 138 |
</xsl:template> |
| 139 |
|
| 140 |
<!-- = accel = --> |
| 141 |
<xsl:template match="accel | db:accel"> |
| 142 |
<xsl:call-template name="db2html.inline"/> |
| 143 |
</xsl:template> |
| 144 |
|
| 145 |
<!-- = acronym = --> |
| 146 |
<xsl:template match="acronym | db:acronym"> |
| 147 |
<xsl:call-template name="db2html.inline"/> |
| 148 |
</xsl:template> |
| 149 |
|
| 150 |
<!-- = action = --> |
| 151 |
<xsl:template match="action"> |
| 152 |
<xsl:call-template name="db2html.inline"/> |
| 153 |
</xsl:template> |
| 154 |
|
| 155 |
<!-- = artpagenums = --> |
| 156 |
<xsl:template match="artpagenums | db:artpagenums"> |
| 157 |
<xsl:call-template name="db2html.inline"/> |
| 158 |
</xsl:template> |
| 159 |
|
| 160 |
<!-- = application = --> |
| 161 |
<xsl:template match="application | db:application"> |
| 162 |
<xsl:call-template name="db2html.inline"> |
| 163 |
<xsl:with-param name="class" select="'app'"/> |
| 164 |
</xsl:call-template> |
| 165 |
</xsl:template> |
| 166 |
|
| 167 |
<!-- = author = --> |
| 168 |
<xsl:template match="author | db:author"> |
| 169 |
<xsl:call-template name="db2html.inline"/> |
| 170 |
</xsl:template> |
| 171 |
|
| 172 |
<!-- = author % db2html.inline.content.mode = --> |
| 173 |
<xsl:template mode="db2html.inline.content.mode" match="author | db:author"> |
| 174 |
<xsl:call-template name="db.personname"/> |
| 175 |
</xsl:template> |
| 176 |
|
| 177 |
<!-- = authorinitials = --> |
| 178 |
<xsl:template match="authorinitials | db:authorinitials"> |
| 179 |
<xsl:call-template name="db2html.inline"/> |
| 180 |
</xsl:template> |
| 181 |
|
| 182 |
<!-- = biblioid = --> |
| 183 |
<xsl:template match="db:biblioid"> |
| 184 |
<xsl:call-template name="db2html.inline"/> |
| 185 |
</xsl:template> |
| 186 |
|
| 187 |
<!-- = citation = --> |
| 188 |
<xsl:template match="citation | db:citation"> |
| 189 |
<xsl:call-template name="db2html.inline"/> |
| 190 |
</xsl:template> |
| 191 |
|
| 192 |
<!-- = citation % db2html.inline.content.mode = --> |
| 193 |
<xsl:template mode="db2html.inline.content.mode" match="citation | db:citation"> |
| 194 |
<xsl:call-template name="l10n.gettext"> |
| 195 |
<xsl:with-param name="msgid" select="'citation.label'"/> |
| 196 |
<xsl:with-param name="node" select="."/> |
| 197 |
<xsl:with-param name="format" select="true()"/> |
| 198 |
</xsl:call-template> |
| 199 |
</xsl:template> |
| 200 |
|
| 201 |
<!-- = citation % l10n.format.mode = --> |
| 202 |
<xsl:template mode="l10n.format.mode" match="msg:citation.label"> |
| 203 |
<xsl:param name="node"/> |
| 204 |
<xsl:for-each select="$node[1]"> |
| 205 |
<xsl:variable name="entry_abbrev" |
| 206 |
select="key('db.biblio.abbrev.key', string($node))"/> |
| 207 |
<xsl:choose> |
| 208 |
<xsl:when test="$entry_abbrev"> |
| 209 |
<xsl:call-template name="db2html.xref"> |
| 210 |
<xsl:with-param name="linkend" select="$entry_abbrev/@id | $entry_abbrev/@xml:id"/> |
| 211 |
<xsl:with-param name="target" select="$entry_abbrev"/> |
| 212 |
<xsl:with-param name="content"> |
| 213 |
<xsl:apply-templates select="node()"/> |
| 214 |
</xsl:with-param> |
| 215 |
</xsl:call-template> |
| 216 |
</xsl:when> |
| 217 |
<xsl:otherwise> |
| 218 |
<xsl:variable name="entry_label" |
| 219 |
select="key('db.biblio.label.key', string($node))"/> |
| 220 |
<xsl:choose> |
| 221 |
<xsl:when test="$entry_label"> |
| 222 |
<xsl:call-template name="db2html.xref"> |
| 223 |
<xsl:with-param name="linkend" select="$entry_label/@id | $entry_label/@xml:id"/> |
| 224 |
<xsl:with-param name="target" select="$entry_label"/> |
| 225 |
<xsl:with-param name="content"> |
| 226 |
<xsl:apply-templates select="node()"/> |
| 227 |
</xsl:with-param> |
| 228 |
</xsl:call-template> |
| 229 |
</xsl:when> |
| 230 |
<xsl:otherwise> |
| 231 |
<xsl:variable name="entry_id" |
| 232 |
select="key('db.biblio.id.key', string($node))"/> |
| 233 |
<xsl:choose> |
| 234 |
<xsl:when test="$entry_id"> |
| 235 |
<xsl:call-template name="db2html.xref"> |
| 236 |
<xsl:with-param name="linkend" select="$entry_id/@id | $entry_id/@xml:id"/> |
| 237 |
<xsl:with-param name="target" select="$entry_id"/> |
| 238 |
<xsl:with-param name="content"> |
| 239 |
<xsl:apply-templates select="node()"/> |
| 240 |
</xsl:with-param> |
| 241 |
</xsl:call-template> |
| 242 |
</xsl:when> |
| 243 |
<xsl:otherwise> |
| 244 |
<xsl:apply-templates select="node()"/> |
| 245 |
</xsl:otherwise> |
| 246 |
</xsl:choose> |
| 247 |
</xsl:otherwise> |
| 248 |
</xsl:choose> |
| 249 |
</xsl:otherwise> |
| 250 |
</xsl:choose> |
| 251 |
</xsl:for-each> |
| 252 |
</xsl:template> |
| 253 |
|
| 254 |
<!-- = citetitle = --> |
| 255 |
<xsl:template match="citetitle | db:citetitle"> |
| 256 |
<xsl:call-template name="db2html.inline"/> |
| 257 |
</xsl:template> |
| 258 |
|
| 259 |
<!-- = city = --> |
| 260 |
<xsl:template match="city | db:city"> |
| 261 |
<xsl:call-template name="db2html.inline"/> |
| 262 |
</xsl:template> |
| 263 |
|
| 264 |
<!-- = classname = --> |
| 265 |
<xsl:template match="classname | db:classname"> |
| 266 |
<xsl:call-template name="db2html.inline"> |
| 267 |
<xsl:with-param name="class" select="'code'"/> |
| 268 |
<xsl:with-param name="ltr" select="true()"/> |
| 269 |
</xsl:call-template> |
| 270 |
</xsl:template> |
| 271 |
|
| 272 |
<!-- = code = --> |
| 273 |
<xsl:template match="code | db:code"> |
| 274 |
<xsl:call-template name="db2html.inline"> |
| 275 |
<xsl:with-param name="ltr" select="true()"/> |
| 276 |
</xsl:call-template> |
| 277 |
</xsl:template> |
| 278 |
|
| 279 |
<!-- = collab = --> |
| 280 |
<xsl:template match="collab | db:collab"> |
| 281 |
<xsl:apply-templates select="collabname | |
| 282 |
db:org | db:orgname | db:person | db:personname"/> |
| 283 |
</xsl:template> |
| 284 |
|
| 285 |
<!-- = collabname = --> |
| 286 |
<xsl:template match="collabname"> |
| 287 |
<xsl:call-template name="db2html.inline"/> |
| 288 |
</xsl:template> |
| 289 |
|
| 290 |
<!-- = command = --> |
| 291 |
<xsl:template match="command | db:command"> |
| 292 |
<xsl:call-template name="db2html.inline"> |
| 293 |
<xsl:with-param name="class" select="'cmd'"/> |
| 294 |
<xsl:with-param name="ltr" select="true()"/> |
| 295 |
</xsl:call-template> |
| 296 |
</xsl:template> |
| 297 |
|
| 298 |
<!-- = computeroutput = --> |
| 299 |
<xsl:template match="computeroutput | db:computeroutput"> |
| 300 |
<xsl:call-template name="db2html.inline"> |
| 301 |
<xsl:with-param name="class" select="'output'"/> |
| 302 |
<xsl:with-param name="ltr" select="true()"/> |
| 303 |
</xsl:call-template> |
| 304 |
</xsl:template> |
| 305 |
|
| 306 |
<!-- = constant = --> |
| 307 |
<xsl:template match="constant | db:constant"> |
| 308 |
<xsl:call-template name="db2html.inline"> |
| 309 |
<xsl:with-param name="class" select="'code'"/> |
| 310 |
<xsl:with-param name="ltr" select="true()"/> |
| 311 |
</xsl:call-template> |
| 312 |
</xsl:template> |
| 313 |
|
| 314 |
<!-- = corpauthor = --> |
| 315 |
<xsl:template match="corpauthor"> |
| 316 |
<xsl:call-template name="db2html.inline"/> |
| 317 |
</xsl:template> |
| 318 |
|
| 319 |
<!-- = corpcredit = --> |
| 320 |
<xsl:template match="corpcredit"> |
| 321 |
<xsl:call-template name="db2html.inline"/> |
| 322 |
</xsl:template> |
| 323 |
|
| 324 |
<!-- = country = --> |
| 325 |
<xsl:template match="country | db:country"> |
| 326 |
<xsl:call-template name="db2html.inline"/> |
| 327 |
</xsl:template> |
| 328 |
|
| 329 |
<!-- = database = --> |
| 330 |
<xsl:template match="database | db:database"> |
| 331 |
<xsl:call-template name="db2html.inline"> |
| 332 |
<xsl:with-param name="class" select="'sys'"/> |
| 333 |
<xsl:with-param name="ltr" select="true()"/> |
| 334 |
</xsl:call-template> |
| 335 |
</xsl:template> |
| 336 |
|
| 337 |
<!-- = date = --> |
| 338 |
<xsl:template match="date | db:date"> |
| 339 |
<xsl:call-template name="db2html.inline"/> |
| 340 |
</xsl:template> |
| 341 |
|
| 342 |
<!-- = edition = --> |
| 343 |
<xsl:template match="edition | db:edition"> |
| 344 |
<xsl:call-template name="db2html.inline"/> |
| 345 |
</xsl:template> |
| 346 |
|
| 347 |
<!-- = editor = --> |
| 348 |
<xsl:template match="editor | db:editor"> |
| 349 |
<xsl:call-template name="db2html.inline"/> |
| 350 |
</xsl:template> |
| 351 |
|
| 352 |
<!-- = editor % db2html.inline.content.mode = --> |
| 353 |
<xsl:template mode="db2html.inline.content.mode" match="editor | db:editor"> |
| 354 |
<xsl:call-template name="db.personname"/> |
| 355 |
</xsl:template> |
| 356 |
|
| 357 |
<!-- = email = --> |
| 358 |
<xsl:template match="email | db:email"> |
| 359 |
<xsl:call-template name="db2html.inline"> |
| 360 |
<xsl:with-param name="ltr" select="true()"/> |
| 361 |
</xsl:call-template> |
| 362 |
</xsl:template> |
| 363 |
|
| 364 |
<!-- = email % db2html.inline.content.mode = --> |
| 365 |
<xsl:template mode="db2html.inline.content.mode" match="email | db:email"> |
| 366 |
<xsl:text><</xsl:text> |
| 367 |
<a> |
| 368 |
<xsl:attribute name="href"> |
| 369 |
<xsl:text>mailto:</xsl:text> |
| 370 |
<xsl:value-of select="string(.)"/> |
| 371 |
</xsl:attribute> |
| 372 |
<xsl:attribute name="title"> |
| 373 |
<xsl:call-template name="l10n.gettext"> |
| 374 |
<xsl:with-param name="msgid" select="'email.tooltip'"/> |
| 375 |
<xsl:with-param name="node" select="."/> |
| 376 |
<xsl:with-param name="string" select="string(.)"/> |
| 377 |
<xsl:with-param name="format" select="true()"/> |
| 378 |
</xsl:call-template> |
| 379 |
</xsl:attribute> |
| 380 |
<xsl:apply-templates/> |
| 381 |
</a> |
| 382 |
<xsl:text>></xsl:text> |
| 383 |
</xsl:template> |
| 384 |
|
| 385 |
<!-- = emphasis = --> |
| 386 |
<xsl:template match="emphasis | db:emphasis"> |
| 387 |
<xsl:variable name="bold" select="@role = 'bold' or @role = 'strong'"/> |
| 388 |
<xsl:call-template name="db2html.inline"> |
| 389 |
<xsl:with-param name="class"> |
| 390 |
<xsl:text>em</xsl:text> |
| 391 |
<xsl:if test="$bold"> |
| 392 |
<xsl:text> em-bold</xsl:text> |
| 393 |
</xsl:if> |
| 394 |
</xsl:with-param> |
| 395 |
</xsl:call-template> |
| 396 |
</xsl:template> |
| 397 |
|
| 398 |
<!-- = envar = --> |
| 399 |
<xsl:template match="envar | db:envar"> |
| 400 |
<xsl:call-template name="db2html.inline"> |
| 401 |
<xsl:with-param name="class" select="'sys'"/> |
| 402 |
<xsl:with-param name="ltr" select="true()"/> |
| 403 |
</xsl:call-template> |
| 404 |
</xsl:template> |
| 405 |
|
| 406 |
<!-- = errorcode = --> |
| 407 |
<xsl:template match="errorcode | db:errorcode"> |
| 408 |
<xsl:call-template name="db2html.inline"> |
| 409 |
<xsl:with-param name="class" select="'error'"/> |
| 410 |
<xsl:with-param name="ltr" select="true()"/> |
| 411 |
</xsl:call-template> |
| 412 |
</xsl:template> |
| 413 |
|
| 414 |
<!-- = errorname = --> |
| 415 |
<xsl:template match="errorname | db:errorname"> |
| 416 |
<xsl:call-template name="db2html.inline"> |
| 417 |
<xsl:with-param name="class" select="'error'"/> |
| 418 |
<xsl:with-param name="ltr" select="true()"/> |
| 419 |
</xsl:call-template> |
| 420 |
</xsl:template> |
| 421 |
|
| 422 |
<!-- = errortext = --> |
| 423 |
<xsl:template match="errortext | db:errortext"> |
| 424 |
<xsl:call-template name="db2html.inline"> |
| 425 |
<xsl:with-param name="class" select="'error'"/> |
| 426 |
</xsl:call-template> |
| 427 |
</xsl:template> |
| 428 |
|
| 429 |
<!-- = errortype = --> |
| 430 |
<xsl:template match="errortype | db:errortype"> |
| 431 |
<xsl:call-template name="db2html.inline"> |
| 432 |
<xsl:with-param name="class" select="'error'"/> |
| 433 |
</xsl:call-template> |
| 434 |
</xsl:template> |
| 435 |
|
| 436 |
<!-- = exceptionname = --> |
| 437 |
<xsl:template match="exceptionname | db:exceptionname"> |
| 438 |
<xsl:call-template name="db2html.inline"> |
| 439 |
<xsl:with-param name="class" select="'code'"/> |
| 440 |
<xsl:with-param name="ltr" select="true()"/> |
| 441 |
</xsl:call-template> |
| 442 |
</xsl:template> |
| 443 |
|
| 444 |
<!-- = fax = --> |
| 445 |
<xsl:template match="fax | db:fax"> |
| 446 |
<xsl:call-template name="db2html.inline"/> |
| 447 |
</xsl:template> |
| 448 |
|
| 449 |
<!-- = filename = --> |
| 450 |
<xsl:template match="filename | db:filename"> |
| 451 |
<xsl:call-template name="db2html.inline"> |
| 452 |
<xsl:with-param name="class" select="'file'"/> |
| 453 |
<xsl:with-param name="ltr" select="true()"/> |
| 454 |
</xsl:call-template> |
| 455 |
</xsl:template> |
| 456 |
|
| 457 |
<!-- = firstname = --> |
| 458 |
<xsl:template match="firstname | db:firstname"> |
| 459 |
<xsl:call-template name="db2html.inline"/> |
| 460 |
</xsl:template> |
| 461 |
|
| 462 |
<!-- = firstterm = --> |
| 463 |
<xsl:template match="firstterm | db:firstterm"> |
| 464 |
<xsl:call-template name="db2html.inline"/> |
| 465 |
</xsl:template> |
| 466 |
|
| 467 |
<!-- = firstterm % db2html.inline.content.mode = --> |
| 468 |
<xsl:template mode="db2html.inline.content.mode" match="firstterm | db:firstterm"> |
| 469 |
<xsl:choose> |
| 470 |
<xsl:when test="@linkend"> |
| 471 |
<xsl:call-template name="db2html.xref"> |
| 472 |
<xsl:with-param name="linkend" select="@linkend"/> |
| 473 |
<xsl:with-param name="content"> |
| 474 |
<xsl:apply-templates/> |
| 475 |
</xsl:with-param> |
| 476 |
</xsl:call-template> |
| 477 |
</xsl:when> |
| 478 |
<xsl:otherwise> |
| 479 |
<xsl:apply-templates/> |
| 480 |
</xsl:otherwise> |
| 481 |
</xsl:choose> |
| 482 |
</xsl:template> |
| 483 |
|
| 484 |
<!-- = foreignphrase = --> |
| 485 |
<xsl:template match="foreignphrase | db:foreignphrase"> |
| 486 |
<xsl:call-template name="db2html.inline"/> |
| 487 |
</xsl:template> |
| 488 |
|
| 489 |
<!-- = function = --> |
| 490 |
<xsl:template match="function | db:function"> |
| 491 |
<xsl:call-template name="db2html.inline"> |
| 492 |
<xsl:with-param name="class" select="'code'"/> |
| 493 |
</xsl:call-template> |
| 494 |
</xsl:template> |
| 495 |
|
| 496 |
<!-- = glossterm = --> |
| 497 |
<xsl:template match="glossterm | db:glossterm"> |
| 498 |
<xsl:call-template name="db2html.inline"/> |
| 499 |
</xsl:template> |
| 500 |
|
| 501 |
<!-- = glossterm % db2html.inline.content.mode = --> |
| 502 |
<xsl:template mode="db2html.inline.content.mode" match="glossterm | db:glossterm"> |
| 503 |
<xsl:choose> |
| 504 |
<xsl:when test="@linkend"> |
| 505 |
<xsl:call-template name="db2html.xref"> |
| 506 |
<xsl:with-param name="linkend" select="@linkend"/> |
| 507 |
<xsl:with-param name="content"> |
| 508 |
<xsl:apply-templates/> |
| 509 |
</xsl:with-param> |
| 510 |
</xsl:call-template> |
| 511 |
</xsl:when> |
| 512 |
<xsl:when test="not(../self::glossentry) and not(../self::db:glossentry)"> |
| 513 |
<xsl:variable name="glossentry" select="key('db.glossentry.key', string(.))"/> |
| 514 |
<xsl:choose> |
| 515 |
<xsl:when test="$glossentry"> |
| 516 |
<xsl:call-template name="db2html.xref"> |
| 517 |
<xsl:with-param name="linkend" select="$glossentry/@id | $glossentry/@xml:id"/> |
| 518 |
<xsl:with-param name="target" select="$glossentry"/> |
| 519 |
<xsl:with-param name="content"> |
| 520 |
<xsl:apply-templates/> |
| 521 |
</xsl:with-param> |
| 522 |
</xsl:call-template> |
| 523 |
</xsl:when> |
| 524 |
<xsl:otherwise> |
| 525 |
<xsl:apply-templates/> |
| 526 |
</xsl:otherwise> |
| 527 |
</xsl:choose> |
| 528 |
</xsl:when> |
| 529 |
<xsl:otherwise> |
| 530 |
<xsl:apply-templates/> |
| 531 |
</xsl:otherwise> |
| 532 |
</xsl:choose> |
| 533 |
</xsl:template> |
| 534 |
|
| 535 |
<!-- = guibutton = --> |
| 536 |
<xsl:template match="guibutton | db:guibutton"> |
| 537 |
<xsl:call-template name="db2html.inline"> |
| 538 |
<xsl:with-param name="class" select="'gui'"/> |
| 539 |
</xsl:call-template> |
| 540 |
</xsl:template> |
| 541 |
|
| 542 |
<!-- = guiicon = --> |
| 543 |
<xsl:template match="guiicon | db:guiicon"> |
| 544 |
<xsl:call-template name="db2html.inline"> |
| 545 |
<xsl:with-param name="class" select="'gui'"/> |
| 546 |
</xsl:call-template> |
| 547 |
</xsl:template> |
| 548 |
|
| 549 |
<!-- = guilabel = --> |
| 550 |
<xsl:template match="guilabel | db:guilabel"> |
| 551 |
<xsl:call-template name="db2html.inline"> |
| 552 |
<xsl:with-param name="class" select="'gui'"/> |
| 553 |
</xsl:call-template> |
| 554 |
</xsl:template> |
| 555 |
|
| 556 |
<!-- = guimenu = --> |
| 557 |
<xsl:template match="guimenu | db:guimenu"> |
| 558 |
<xsl:call-template name="db2html.inline"> |
| 559 |
<xsl:with-param name="class" select="'gui'"/> |
| 560 |
</xsl:call-template> |
| 561 |
</xsl:template> |
| 562 |
|
| 563 |
<!-- = guimenuitem = --> |
| 564 |
<xsl:template match="guimenuitem | db:guimenuitem"> |
| 565 |
<xsl:call-template name="db2html.inline"> |
| 566 |
<xsl:with-param name="class" select="'gui'"/> |
| 567 |
</xsl:call-template> |
| 568 |
</xsl:template> |
| 569 |
|
| 570 |
<!-- = guisubmenu = --> |
| 571 |
<xsl:template match="guisubmenu | db:guisubmenu"> |
| 572 |
<xsl:call-template name="db2html.inline"> |
| 573 |
<xsl:with-param name="class" select="'gui'"/> |
| 574 |
</xsl:call-template> |
| 575 |
</xsl:template> |
| 576 |
|
| 577 |
<!-- = hardware = --> |
| 578 |
<xsl:template match="hardware | db:hardware"> |
| 579 |
<xsl:call-template name="db2html.inline"/> |
| 580 |
</xsl:template> |
| 581 |
|
| 582 |
<!-- = holder = --> |
| 583 |
<xsl:template match="holder | db:holder"> |
| 584 |
<xsl:call-template name="db2html.inline"/> |
| 585 |
</xsl:template> |
| 586 |
|
| 587 |
<!-- = honorific = --> |
| 588 |
<xsl:template match="honorific | db:honorific"> |
| 589 |
<xsl:call-template name="db2html.inline"/> |
| 590 |
</xsl:template> |
| 591 |
|
| 592 |
<!-- = inlineequation = --> |
| 593 |
<xsl:template match="inlineequation | db:inlineequation"> |
| 594 |
<xsl:call-template name="db2html.inline"/> |
| 595 |
</xsl:template> |
| 596 |
|
| 597 |
<!-- = interface = --> |
| 598 |
<xsl:template match="interface | db:interface"> |
| 599 |
<xsl:call-template name="db2html.inline"> |
| 600 |
<xsl:with-param name="class" select="'gui'"/> |
| 601 |
</xsl:call-template> |
| 602 |
</xsl:template> |
| 603 |
|
| 604 |
<!-- = interfacename = --> |
| 605 |
<xsl:template match="interfacename | db:interfacename"> |
| 606 |
<xsl:call-template name="db2html.inline"> |
| 607 |
<xsl:with-param name="class" select="'code'"/> |
| 608 |
<xsl:with-param name="ltr" select="true()"/> |
| 609 |
</xsl:call-template> |
| 610 |
</xsl:template> |
| 611 |
|
| 612 |
<!-- = isbn = --> |
| 613 |
<xsl:template match="isbn | db:biblioid[@class = 'isbn']"> |
| 614 |
<xsl:call-template name="db2html.inline"> |
| 615 |
<xsl:with-param name="name-class" select="'isbn'"/> |
| 616 |
</xsl:call-template> |
| 617 |
</xsl:template> |
| 618 |
|
| 619 |
<!-- = issn = --> |
| 620 |
<xsl:template match="issn | db:biblioid[@class = 'issn']"> |
| 621 |
<xsl:call-template name="db2html.inline"> |
| 622 |
<xsl:with-param name="name-class" select="'issn'"/> |
| 623 |
</xsl:call-template> |
| 624 |
</xsl:template> |
| 625 |
|
| 626 |
<!-- = issuenum = --> |
| 627 |
<xsl:template match="issuenum | db:issuenum"> |
| 628 |
<xsl:call-template name="db2html.inline"/> |
| 629 |
</xsl:template> |
| 630 |
|
| 631 |
<!-- = jobtitle = --> |
| 632 |
<xsl:template match="jobtitle | db:jobtitle"> |
| 633 |
<xsl:call-template name="db2html.inline"/> |
| 634 |
</xsl:template> |
| 635 |
|
| 636 |
<!-- = keycap = --> |
| 637 |
<xsl:template match="keycap | db:keycap"> |
| 638 |
<xsl:call-template name="db2html.inline"> |
| 639 |
<xsl:with-param name="class" select="'key'"/> |
| 640 |
</xsl:call-template> |
| 641 |
</xsl:template> |
| 642 |
|
| 643 |
<!-- = keycap % db2html.inline.content.mode = --> |
| 644 |
<xsl:template mode="db2html.inline.content.mode" match="keycap | db:keycap"> |
| 645 |
<kbd> |
| 646 |
<xsl:if test=". = 'Fn'"> |
| 647 |
<xsl:attribute name="class"> |
| 648 |
<xsl:text>key-Fn</xsl:text> |
| 649 |
</xsl:attribute> |
| 650 |
</xsl:if> |
| 651 |
<xsl:apply-templates/> |
| 652 |
</kbd> |
| 653 |
</xsl:template> |
| 654 |
|
| 655 |
<!-- = keycode = --> |
| 656 |
<xsl:template match="keycode | db:keycode"> |
| 657 |
<xsl:call-template name="db2html.inline"> |
| 658 |
<xsl:with-param name="ltr" select="true()"/> |
| 659 |
</xsl:call-template> |
| 660 |
</xsl:template> |
| 661 |
|
| 662 |
<!-- = keycombo = --> |
| 663 |
<xsl:template match="keycombo | db:keycombo"> |
| 664 |
<xsl:call-template name="db2html.inline"> |
| 665 |
<xsl:with-param name="class" select="'keyseq'"/> |
| 666 |
</xsl:call-template> |
| 667 |
</xsl:template> |
| 668 |
|
| 669 |
<!-- = keycombo % db2html.inline.content.mode = --> |
| 670 |
<xsl:template mode="db2html.inline.content.mode" match="keycombo | db:keycombo"> |
| 671 |
<xsl:variable name="joinchar"> |
| 672 |
<xsl:choose> |
| 673 |
<xsl:when test="@action = 'seq'"><xsl:text> </xsl:text></xsl:when> |
| 674 |
<xsl:when test="@action = 'simul'">+</xsl:when> |
| 675 |
<xsl:when test="@action = 'press'">-</xsl:when> |
| 676 |
<xsl:when test="@action = 'click'">-</xsl:when> |
| 677 |
<xsl:when test="@action = 'double-click'">-</xsl:when> |
| 678 |
<xsl:when test="@action = 'other'">+</xsl:when> |
| 679 |
<xsl:otherwise>+</xsl:otherwise> |
| 680 |
</xsl:choose> |
| 681 |
</xsl:variable> |
| 682 |
<xsl:for-each select="*"> |
| 683 |
<xsl:if test="position() != 1"> |
| 684 |
<xsl:value-of select="$joinchar"/> |
| 685 |
</xsl:if> |
| 686 |
<xsl:apply-templates select="."/> |
| 687 |
</xsl:for-each> |
| 688 |
</xsl:template> |
| 689 |
|
| 690 |
<!-- = keysym = --> |
| 691 |
<xsl:template match="keysym | db:keysym"> |
| 692 |
<xsl:call-template name="db2html.inline"> |
| 693 |
<xsl:with-param name="ltr" select="true()"/> |
| 694 |
</xsl:call-template> |
| 695 |
</xsl:template> |
| 696 |
|
| 697 |
<!-- = lineage = --> |
| 698 |
<xsl:template match="lineage | db:lineage"> |
| 699 |
<xsl:call-template name="db2html.inline"/> |
| 700 |
</xsl:template> |
| 701 |
|
| 702 |
<!-- = lineannotation = --> |
| 703 |
<xsl:template match="lineannotation | db:lineannotation"> |
| 704 |
<xsl:call-template name="db2html.inline"/> |
| 705 |
</xsl:template> |
| 706 |
|
| 707 |
<!-- = literal = --> |
| 708 |
<xsl:template match="literal | db:literal"> |
| 709 |
<xsl:call-template name="db2html.inline"> |
| 710 |
<xsl:with-param name="class" select="'code'"/> |
| 711 |
<xsl:with-param name="ltr" select="true()"/> |
| 712 |
</xsl:call-template> |
| 713 |
</xsl:template> |
| 714 |
|
| 715 |
<!-- = markup = --> |
| 716 |
<xsl:template match="markup | db:markup"> |
| 717 |
<xsl:call-template name="db2html.inline"> |
| 718 |
<xsl:with-param name="class" select="'code'"/> |
| 719 |
<xsl:with-param name="ltr" select="true()"/> |
| 720 |
</xsl:call-template> |
| 721 |
</xsl:template> |
| 722 |
|
| 723 |
<!-- = mathphrase = --> |
| 724 |
<xsl:template match="mathphrase | db:mathphrase"> |
| 725 |
<xsl:call-template name="db2html.inline"/> |
| 726 |
</xsl:template> |
| 727 |
|
| 728 |
<!-- = medialabel = --> |
| 729 |
<xsl:template match="medialabel"> |
| 730 |
<xsl:call-template name="db2html.inline"/> |
| 731 |
</xsl:template> |
| 732 |
|
| 733 |
<!-- = menuchoice = --> |
| 734 |
<xsl:template match="menuchoice | db:menuchoice"> |
| 735 |
<xsl:call-template name="db2html.inline"> |
| 736 |
<xsl:with-param name="class" select="'guiseq'"/> |
| 737 |
</xsl:call-template> |
| 738 |
</xsl:template> |
| 739 |
|
| 740 |
<!-- = menuchoice % db2html.inline.content.mode = --> |
| 741 |
<xsl:template mode="db2html.inline.content.mode" match="menuchoice | db:menuchoice"> |
| 742 |
<xsl:variable name="arrow"> |
| 743 |
<xsl:variable name="ltr"> |
| 744 |
<xsl:call-template name="l10n.direction"/> |
| 745 |
</xsl:variable> |
| 746 |
<xsl:choose> |
| 747 |
<xsl:when test="$ltr = 'rtl'"> |
| 748 |
<xsl:text>◂</xsl:text> |
| 749 |
</xsl:when> |
| 750 |
<xsl:otherwise> |
| 751 |
<xsl:text>▸</xsl:text> |
| 752 |
</xsl:otherwise> |
| 753 |
</xsl:choose> |
| 754 |
</xsl:variable> |
| 755 |
<xsl:for-each select="*[not(self::shortcut) and not(self::db:shortcut)]"> |
| 756 |
<xsl:if test="position() != 1"> |
| 757 |
<xsl:value-of select="concat(' ', $arrow, ' ')"/> |
| 758 |
</xsl:if> |
| 759 |
<xsl:apply-templates select="."/> |
| 760 |
</xsl:for-each> |
| 761 |
<xsl:if test="shortcut or db:shortcut"> |
| 762 |
<xsl:text> </xsl:text> |
| 763 |
<xsl:apply-templates select="shortcut | db:shortcut"/> |
| 764 |
</xsl:if> |
| 765 |
</xsl:template> |
| 766 |
|
| 767 |
<!-- = methodname = --> |
| 768 |
<xsl:template match="methodname | db:methodname"> |
| 769 |
<xsl:call-template name="db2html.inline"> |
| 770 |
<xsl:with-param name="class" select="'code'"/> |
| 771 |
<xsl:with-param name="ltr" select="true()"/> |
| 772 |
</xsl:call-template> |
| 773 |
</xsl:template> |
| 774 |
|
| 775 |
<!-- = mousebutton = --> |
| 776 |
<xsl:template match="mousebutton | db:mousebutton"> |
| 777 |
<xsl:call-template name="db2html.inline"/> |
| 778 |
</xsl:template> |
| 779 |
|
| 780 |
<!-- = option = --> |
| 781 |
<xsl:template match="option | db:option"> |
| 782 |
<xsl:call-template name="db2html.inline"> |
| 783 |
<xsl:with-param name="class" select="'cmd'"/> |
| 784 |
<xsl:with-param name="ltr" select="true()"/> |
| 785 |
</xsl:call-template> |
| 786 |
</xsl:template> |
| 787 |
|
| 788 |
<!-- = optional = --> |
| 789 |
<xsl:template match="optional | db:optional"> |
| 790 |
<xsl:call-template name="db2html.inline"/> |
| 791 |
</xsl:template> |
| 792 |
|
| 793 |
<!-- = optional % db2html.inline.content.mode = --> |
| 794 |
<xsl:template mode="db2html.inline.content.mode" match="optional | db:optional"> |
| 795 |
<xsl:text>[</xsl:text> |
| 796 |
<xsl:apply-templates/> |
| 797 |
<xsl:text>]</xsl:text> |
| 798 |
</xsl:template> |
| 799 |
|
| 800 |
<!-- = org = --> |
| 801 |
<xsl:template match="db:org"> |
| 802 |
<xsl:apply-templates select="db:orgname"/> |
| 803 |
</xsl:template> |
| 804 |
|
| 805 |
<!-- = orgdiv = --> |
| 806 |
<xsl:template match="orgdiv | db:orgdiv"> |
| 807 |
<xsl:call-template name="db2html.inline"/> |
| 808 |
</xsl:template> |
| 809 |
|
| 810 |
<!-- = orgname = --> |
| 811 |
<xsl:template match="orgname | db:orgname"> |
| 812 |
<xsl:call-template name="db2html.inline"/> |
| 813 |
</xsl:template> |
| 814 |
|
| 815 |
<!-- = othercredit = --> |
| 816 |
<xsl:template match="othercredit | db:othercredit"> |
| 817 |
<xsl:call-template name="db2html.inline"/> |
| 818 |
</xsl:template> |
| 819 |
|
| 820 |
<!-- = othercredit % db2html.inline.content.mode = --> |
| 821 |
<xsl:template mode="db2html.inline.content.mode" match="othercredit | db:othercredit"> |
| 822 |
<xsl:call-template name="db.personname"/> |
| 823 |
</xsl:template> |
| 824 |
|
| 825 |
<!-- = othername = --> |
| 826 |
<xsl:template match="othername | db:othername"> |
| 827 |
<xsl:call-template name="db2html.inline"/> |
| 828 |
</xsl:template> |
| 829 |
|
| 830 |
<!-- = package = --> |
| 831 |
<xsl:template match="package | db:package"> |
| 832 |
<xsl:call-template name="db2html.inline"> |
| 833 |
<xsl:with-param name="class" select="'sys'"/> |
| 834 |
<xsl:with-param name="ltr" select="true()"/> |
| 835 |
</xsl:call-template> |
| 836 |
</xsl:template> |
| 837 |
|
| 838 |
<!-- = pagenums = --> |
| 839 |
<xsl:template match="pagenums | db:pagenums"> |
| 840 |
<xsl:call-template name="db2html.inline"/> |
| 841 |
</xsl:template> |
| 842 |
|
| 843 |
<!-- = parameter = --> |
| 844 |
<xsl:template match="parameter | db:parameter"> |
| 845 |
<xsl:call-template name="db2html.inline"> |
| 846 |
<xsl:with-param name="class"> |
| 847 |
<xsl:choose> |
| 848 |
<xsl:when test="@class = 'function'"> |
| 849 |
<xsl:text>code</xsl:text> |
| 850 |
</xsl:when> |
| 851 |
<xsl:otherwise> |
| 852 |
<xsl:text>cmd</xsl:text> |
| 853 |
</xsl:otherwise> |
| 854 |
</xsl:choose> |
| 855 |
</xsl:with-param> |
| 856 |
<xsl:with-param name="ltr" select="true()"/> |
| 857 |
</xsl:call-template> |
| 858 |
</xsl:template> |
| 859 |
|
| 860 |
<!-- = person = --> |
| 861 |
<xsl:template match="db:person"> |
| 862 |
<xsl:call-template name="db2html.inline"/> |
| 863 |
</xsl:template> |
| 864 |
|
| 865 |
<!-- = person % db2html.inline.content.mode = --> |
| 866 |
<xsl:template mode="db2html.inline.content.mode" match="db:person"> |
| 867 |
<xsl:call-template name="db.personname"/> |
| 868 |
</xsl:template> |
| 869 |
|
| 870 |
<!-- = personname = --> |
| 871 |
<xsl:template match="personname | db:personname"> |
| 872 |
<xsl:call-template name="db2html.inline"/> |
| 873 |
</xsl:template> |
| 874 |
|
| 875 |
<!-- = personname % db2html.inline.content.mode = --> |
| 876 |
<xsl:template mode="db2html.inline.content.mode" match="personname | db:personname"> |
| 877 |
<xsl:call-template name="db.personname"/> |
| 878 |
</xsl:template> |
| 879 |
|
| 880 |
<!-- = phone = --> |
| 881 |
<xsl:template match="phone | db:phone"> |
| 882 |
<xsl:call-template name="db2html.inline"/> |
| 883 |
</xsl:template> |
| 884 |
|
| 885 |
<!-- = phrase = --> |
| 886 |
<xsl:template match="phrase | db:phrase"> |
| 887 |
<xsl:call-template name="db2html.inline"/> |
| 888 |
</xsl:template> |
| 889 |
|
| 890 |
<!-- = pob = --> |
| 891 |
<xsl:template match="pob | db:pob"> |
| 892 |
<xsl:call-template name="db2html.inline"/> |
| 893 |
</xsl:template> |
| 894 |
|
| 895 |
<!-- = postcode = --> |
| 896 |
<xsl:template match="postcode | db:postcode"> |
| 897 |
<xsl:call-template name="db2html.inline"/> |
| 898 |
</xsl:template> |
| 899 |
|
| 900 |
<!-- = productname = --> |
| 901 |
<xsl:template match="productname | db:productname"> |
| 902 |
<xsl:call-template name="db2html.inline"/> |
| 903 |
</xsl:template> |
| 904 |
|
| 905 |
<!-- = productname % db2html.inline.content.mode = --> |
| 906 |
<xsl:template mode="db2html.inline.content.mode" match="productname | db:productname"> |
| 907 |
<xsl:apply-templates/> |
| 908 |
<xsl:choose> |
| 909 |
<xsl:when test="@class = 'copyright'">©</xsl:when> |
| 910 |
<xsl:when test="@class = 'registered'">®</xsl:when> |
| 911 |
<xsl:when test="@class = 'trade'">™</xsl:when> |
| 912 |
<xsl:when test="@class = 'service'">℠</xsl:when> |
| 913 |
</xsl:choose> |
| 914 |
</xsl:template> |
| 915 |
|
| 916 |
<!-- = productnumber = --> |
| 917 |
<xsl:template match="productnumber | db:productnumber"> |
| 918 |
<xsl:call-template name="db2html.inline"/> |
| 919 |
</xsl:template> |
| 920 |
|
| 921 |
<!-- = prompt = --> |
| 922 |
<xsl:template match="prompt | db:prompt"> |
| 923 |
<xsl:call-template name="db2html.inline"> |
| 924 |
<xsl:with-param name="class" select="'output'"/> |
| 925 |
<xsl:with-param name="ltr" select="true()"/> |
| 926 |
</xsl:call-template> |
| 927 |
</xsl:template> |
| 928 |
|
| 929 |
<!-- = property = --> |
| 930 |
<xsl:template match="property | db:property"> |
| 931 |
<xsl:call-template name="db2html.inline"> |
| 932 |
<xsl:with-param name="class" select="'sys'"/> |
| 933 |
<xsl:with-param name="ltr" select="true()"/> |
| 934 |
</xsl:call-template> |
| 935 |
</xsl:template> |
| 936 |
|
| 937 |
<!-- = pubdate = --> |
| 938 |
<xsl:template match="pubdate | db:pubdate"> |
| 939 |
<xsl:call-template name="db2html.inline"/> |
| 940 |
</xsl:template> |
| 941 |
|
| 942 |
<!-- = publisher = --> |
| 943 |
<xsl:template match="publisher | db:publisher"> |
| 944 |
<xsl:apply-templates select="publishername | db:publishername"/> |
| 945 |
</xsl:template> |
| 946 |
|
| 947 |
<!-- = publishername = --> |
| 948 |
<xsl:template match="publishername | db:publishername"> |
| 949 |
<xsl:call-template name="db2html.inline"/> |
| 950 |
</xsl:template> |
| 951 |
|
| 952 |
<!-- = ooclass = --> |
| 953 |
<xsl:template match="ooclass | db:ooclass"> |
| 954 |
<xsl:call-template name="db2html.inline"> |
| 955 |
<xsl:with-param name="class" select="'code'"/> |
| 956 |
<xsl:with-param name="ltr" select="true()"/> |
| 957 |
</xsl:call-template> |
| 958 |
</xsl:template> |
| 959 |
|
| 960 |
<!-- = ooclass % db2html.inline.content.mode = --> |
| 961 |
<xsl:template mode="db2html.inline.content.mode" match="ooclass | db:ooclass"> |
| 962 |
<xsl:for-each select="*"> |
| 963 |
<xsl:if test="position() != 1"> |
| 964 |
<xsl:text> </xsl:text> |
| 965 |
</xsl:if> |
| 966 |
<xsl:apply-templates select="."/> |
| 967 |
</xsl:for-each> |
| 968 |
</xsl:template> |
| 969 |
|
| 970 |
<!-- = ooexception = --> |
| 971 |
<xsl:template match="ooexception | db:ooexception"> |
| 972 |
<xsl:call-template name="db2html.inline"> |
| 973 |
<xsl:with-param name="class" select="'code'"/> |
| 974 |
<xsl:with-param name="ltr" select="true()"/> |
| 975 |
</xsl:call-template> |
| 976 |
</xsl:template> |
| 977 |
|
| 978 |
<!-- = ooexception % db2html.inline.content.mode = --> |
| 979 |
<xsl:template mode="db2html.inline.content.mode" match="ooexception | db:ooexception"> |
| 980 |
<xsl:for-each select="*"> |
| 981 |
<xsl:if test="position() != 1"> |
| 982 |
<xsl:text> </xsl:text> |
| 983 |
</xsl:if> |
| 984 |
<xsl:apply-templates select="."/> |
| 985 |
</xsl:for-each> |
| 986 |
</xsl:template> |
| 987 |
|
| 988 |
<!-- = oointerface = --> |
| 989 |
<xsl:template match="oointerface | db:oointerface"> |
| 990 |
<xsl:call-template name="db2html.inline"> |
| 991 |
<xsl:with-param name="class" select="'code'"/> |
| 992 |
<xsl:with-param name="ltr" select="true()"/> |
| 993 |
</xsl:call-template> |
| 994 |
</xsl:template> |
| 995 |
|
| 996 |
<!-- = oointerface % db2html.inline.content.mode = --> |
| 997 |
<xsl:template mode="db2html.inline.content.mode" match="oointerface | db:oointerface"> |
| 998 |
<xsl:for-each select="*"> |
| 999 |
<xsl:if test="position() != 1"> |
| 1000 |
<xsl:text> </xsl:text> |
| 1001 |
</xsl:if> |
| 1002 |
<xsl:apply-templates select="."/> |
| 1003 |
</xsl:for-each> |
| 1004 |
</xsl:template> |
| 1005 |
|
| 1006 |
<!-- = quote = --> |
| 1007 |
<xsl:template match="quote | db:quote"> |
| 1008 |
<xsl:call-template name="db2html.inline"/> |
| 1009 |
</xsl:template> |
| 1010 |
|
| 1011 |
<!-- = quote % db2html.inline.content.mode = --> |
| 1012 |
<xsl:template mode="db2html.inline.content.mode" match="quote | db:quote"> |
| 1013 |
<xsl:call-template name="l10n.gettext"> |
| 1014 |
<xsl:with-param name="msgid"> |
| 1015 |
<xsl:choose> |
| 1016 |
<xsl:when test="(count(ancestor::quote) mod 2) = 0"> |
| 1017 |
<xsl:text>quote.format</xsl:text> |
| 1018 |
</xsl:when> |
| 1019 |
<xsl:otherwise> |
| 1020 |
<xsl:text>quote.inner.format</xsl:text> |
| 1021 |
</xsl:otherwise> |
| 1022 |
</xsl:choose> |
| 1023 |
</xsl:with-param> |
| 1024 |
<xsl:with-param name="node" select="."/> |
| 1025 |
<xsl:with-param name="format" select="true()"/> |
| 1026 |
</xsl:call-template> |
| 1027 |
</xsl:template> |
| 1028 |
|
| 1029 |
<!-- = replaceable = --> |
| 1030 |
<xsl:template match="replaceable | db:replaceable"> |
| 1031 |
<xsl:call-template name="db2html.inline"> |
| 1032 |
<xsl:with-param name="class" select="'var'"/> |
| 1033 |
</xsl:call-template> |
| 1034 |
</xsl:template> |
| 1035 |
|
| 1036 |
<!-- = returnvalue = --> |
| 1037 |
<xsl:template match="returnvalue | db:returnvalue"> |
| 1038 |
<xsl:call-template name="db2html.inline"> |
| 1039 |
<xsl:with-param name="class" select="'code'"/> |
| 1040 |
<xsl:with-param name="ltr" select="true()"/> |
| 1041 |
</xsl:call-template> |
| 1042 |
</xsl:template> |
| 1043 |
|
| 1044 |
<!-- = sgmltag = --> |
| 1045 |
<xsl:template match="sgmltag | db:tag"> |
| 1046 |
<xsl:call-template name="db2html.inline"> |
| 1047 |
<xsl:with-param name="name-class">sgmltag</xsl:with-param> |
| 1048 |
<xsl:with-param name="class"> |
| 1049 |
<xsl:text>code sgmltag</xsl:text> |
| 1050 |
<xsl:choose> |
| 1051 |
<xsl:when test="@class = 'comment'"> |
| 1052 |
<xsl:value-of select="' sgmltag-sgmlcomment'"/> |
| 1053 |
</xsl:when> |
| 1054 |
<xsl:when test="@class"> |
| 1055 |
<xsl:value-of select="concat(' sgmltag-', @class)"/> |
| 1056 |
</xsl:when> |
| 1057 |
</xsl:choose> |
| 1058 |
</xsl:with-param> |
| 1059 |
<xsl:with-param name="ltr" select="true()"/> |
| 1060 |
</xsl:call-template> |
| 1061 |
</xsl:template> |
| 1062 |
|
| 1063 |
<!-- = sgmltag % db2html.inline.content.mode = --> |
| 1064 |
<xsl:template mode="db2html.inline.content.mode" match="sgmltag | db:tag"> |
| 1065 |
<xsl:choose> |
| 1066 |
<xsl:when test="@class = 'attribute'"> |
| 1067 |
<xsl:apply-templates/> |
| 1068 |
</xsl:when> |
| 1069 |
<xsl:when test="@class = 'attvalue'"> |
| 1070 |
<xsl:apply-templates/> |
| 1071 |
</xsl:when> |
| 1072 |
<xsl:when test="@class = 'element'"> |
| 1073 |
<xsl:apply-templates/> |
| 1074 |
</xsl:when> |
| 1075 |
<xsl:when test="@class = 'emptytag'"> |
| 1076 |
<xsl:text><</xsl:text> |
| 1077 |
<xsl:apply-templates/> |
| 1078 |
<xsl:text>/></xsl:text> |
| 1079 |
</xsl:when> |
| 1080 |
<xsl:when test="@class = 'endtag'"> |
| 1081 |
<xsl:text></</xsl:text> |
| 1082 |
<xsl:apply-templates/> |
| 1083 |
<xsl:text>></xsl:text> |
| 1084 |
</xsl:when> |
| 1085 |
<xsl:when test="@class = 'genentity'"> |
| 1086 |
<xsl:text>&</xsl:text> |
| 1087 |
<xsl:apply-templates/> |
| 1088 |
<xsl:text>;</xsl:text> |
| 1089 |
</xsl:when> |
| 1090 |
<xsl:when test="@class = 'localname'"> |
| 1091 |
<xsl:apply-templates/> |
| 1092 |
</xsl:when> |
| 1093 |
<xsl:when test="@class = 'namespace'"> |
| 1094 |
<xsl:apply-templates/> |
| 1095 |
</xsl:when> |
| 1096 |
<xsl:when test="@class = 'numcharref'"> |
| 1097 |
<xsl:text>&#</xsl:text> |
| 1098 |
<xsl:apply-templates/> |
| 1099 |
<xsl:text>;</xsl:text> |
| 1100 |
</xsl:when> |
| 1101 |
<xsl:when test="@class = 'paramentity'"> |
| 1102 |
<xsl:text>%</xsl:text> |
| 1103 |
<xsl:apply-templates/> |
| 1104 |
<xsl:text>;</xsl:text> |
| 1105 |
</xsl:when> |
| 1106 |
<xsl:when test="@class = 'pi'"> |
| 1107 |
<xsl:text><?</xsl:text> |
| 1108 |
<xsl:apply-templates/> |
| 1109 |
<xsl:text>></xsl:text> |
| 1110 |
</xsl:when> |
| 1111 |
<xsl:when test="@class = 'prefix'"> |
| 1112 |
<xsl:apply-templates/> |
| 1113 |
<xsl:text>:</xsl:text> |
| 1114 |
</xsl:when> |
| 1115 |
<xsl:when test="@class = 'sgmlcomment' or @class = 'comment'"> |
| 1116 |
<xsl:text><!--</xsl:text> |
| 1117 |
<xsl:apply-templates/> |
| 1118 |
<xsl:text>--></xsl:text> |
| 1119 |
</xsl:when> |
| 1120 |
<xsl:when test="@class = 'starttag'"> |
| 1121 |
<xsl:text><</xsl:text> |
| 1122 |
<xsl:apply-templates/> |
| 1123 |
<xsl:text>></xsl:text> |
| 1124 |
</xsl:when> |
| 1125 |
<xsl:when test="@class = 'xmlpi'"> |
| 1126 |
<xsl:text><?</xsl:text> |
| 1127 |
<xsl:apply-templates/> |
| 1128 |
<xsl:text>?></xsl:text> |
| 1129 |
</xsl:when> |
| 1130 |
<xsl:otherwise> |
| 1131 |
<xsl:apply-templates/> |
| 1132 |
</xsl:otherwise> |
| 1133 |
</xsl:choose> |
| 1134 |
</xsl:template> |
| 1135 |
|
| 1136 |
<!-- = shortcut = --> |
| 1137 |
<xsl:template match="shortcut | db:shortcut"> |
| 1138 |
<xsl:call-template name="db2html.inline"/> |
| 1139 |
</xsl:template> |
| 1140 |
|
| 1141 |
<!-- = shortcut % db2html.inline.content.mode = --> |
| 1142 |
<xsl:template mode="db2html.inline.content.mode" match="shortcut | db:shortcut"> |
| 1143 |
<xsl:text>(</xsl:text> |
| 1144 |
<xsl:apply-templates/> |
| 1145 |
<xsl:text>)</xsl:text> |
| 1146 |
</xsl:template> |
| 1147 |
|
| 1148 |
<!-- = state = --> |
| 1149 |
<xsl:template match="state | db:state"> |
| 1150 |
<xsl:call-template name="db2html.inline"/> |
| 1151 |
</xsl:template> |
| 1152 |
|
| 1153 |
<!-- = street = --> |
| 1154 |
<xsl:template match="street | db:street"> |
| 1155 |
<xsl:call-template name="db2html.inline"/> |
| 1156 |
</xsl:template> |
| 1157 |
|
| 1158 |
<!-- = structfield = --> |
| 1159 |
<xsl:template match="structfield"> |
| 1160 |
<xsl:call-template name="db2html.inline"> |
| 1161 |
<xsl:with-param name="class" select="'code'"/> |
| 1162 |
<xsl:with-param name="ltr" select="true()"/> |
| 1163 |
</xsl:call-template> |
| 1164 |
</xsl:template> |
| 1165 |
|
| 1166 |
<!-- = structname = --> |
| 1167 |
<xsl:template match="structname"> |
| 1168 |
<xsl:call-template name="db2html.inline"> |
| 1169 |
<xsl:with-param name="class" select="'code'"/> |
| 1170 |
<xsl:with-param name="ltr" select="true()"/> |
| 1171 |
</xsl:call-template> |
| 1172 |
</xsl:template> |
| 1173 |
|
| 1174 |
<!-- = subscript = --> |
| 1175 |
<xsl:template match="subscript | db:subscript"> |
| 1176 |
<xsl:variable name="if"><xsl:call-template name="db.profile.test"/></xsl:variable> |
| 1177 |
<xsl:if test="$if != ''"> |
| 1178 |
<sub class="subscript"> |
| 1179 |
<xsl:call-template name="db2html.anchor"/> |
| 1180 |
<xsl:apply-templates/> |
| 1181 |
</sub> |
| 1182 |
</xsl:if> |
| 1183 |
</xsl:template> |
| 1184 |
|
| 1185 |
<!-- = superscript = --> |
| 1186 |
<xsl:template match="superscript | db:superscript"> |
| 1187 |
<xsl:variable name="if"><xsl:call-template name="db.profile.test"/></xsl:variable> |
| 1188 |
<xsl:if test="$if != ''"> |
| 1189 |
<sup class="superscript"> |
| 1190 |
<xsl:call-template name="db2html.anchor"/> |
| 1191 |
<xsl:apply-templates/> |
| 1192 |
</sup> |
| 1193 |
</xsl:if> |
| 1194 |
</xsl:template> |
| 1195 |
|
| 1196 |
<!-- = surname = --> |
| 1197 |
<xsl:template match="surname | db:surname"> |
| 1198 |
<xsl:call-template name="db2html.inline"/> |
| 1199 |
</xsl:template> |
| 1200 |
|
| 1201 |
<!-- = symbol = --> |
| 1202 |
<xsl:template match="symbol | db:symbol"> |
| 1203 |
<xsl:call-template name="db2html.inline"> |
| 1204 |
<xsl:with-param name="class" select="'code'"/> |
| 1205 |
<xsl:with-param name="ltr" select="true()"/> |
| 1206 |
</xsl:call-template> |
| 1207 |
</xsl:template> |
| 1208 |
|
| 1209 |
<!-- = systemitem = --> |
| 1210 |
<xsl:template match="systemitem | db:systemitem"> |
| 1211 |
<xsl:call-template name="db2html.inline"> |
| 1212 |
<xsl:with-param name="class" select="'sys'"/> |
| 1213 |
<xsl:with-param name="ltr" select="true()"/> |
| 1214 |
</xsl:call-template> |
| 1215 |
</xsl:template> |
| 1216 |
|
| 1217 |
<!-- = token = --> |
| 1218 |
<xsl:template match="token | db:token"> |
| 1219 |
<xsl:call-template name="db2html.inline"> |
| 1220 |
<xsl:with-param name="class" select="'code'"/> |
| 1221 |
<xsl:with-param name="ltr" select="true()"/> |
| 1222 |
</xsl:call-template> |
| 1223 |
</xsl:template> |
| 1224 |
|
| 1225 |
<!-- = trademark = --> |
| 1226 |
<xsl:template match="trademark | db:trademark"> |
| 1227 |
<xsl:call-template name="db2html.inline"/> |
| 1228 |
</xsl:template> |
| 1229 |
|
| 1230 |
<!-- = trademark % db2html.inline.content.mode = --> |
| 1231 |
<xsl:template mode="db2html.inline.content.mode" match="trademark | db:trademark"> |
| 1232 |
<xsl:apply-templates/> |
| 1233 |
<xsl:choose> |
| 1234 |
<xsl:when test="@class = 'copyright'">©</xsl:when> |
| 1235 |
<xsl:when test="@class = 'registered'">®</xsl:when> |
| 1236 |
<xsl:when test="@class = 'service'">℠</xsl:when> |
| 1237 |
<xsl:otherwise>™</xsl:otherwise> |
| 1238 |
</xsl:choose> |
| 1239 |
</xsl:template> |
| 1240 |
|
| 1241 |
<!-- = type = --> |
| 1242 |
<xsl:template match="type | db:type"> |
| 1243 |
<xsl:call-template name="db2html.inline"> |
| 1244 |
<xsl:with-param name="class" select="'code'"/> |
| 1245 |
<xsl:with-param name="ltr" select="true()"/> |
| 1246 |
</xsl:call-template> |
| 1247 |
</xsl:template> |
| 1248 |
|
| 1249 |
<!-- = uri = --> |
| 1250 |
<xsl:template match="uri | db:uri"> |
| 1251 |
<xsl:call-template name="db2html.inline"> |
| 1252 |
<xsl:with-param name="class" select="'sys'"/> |
| 1253 |
<xsl:with-param name="ltr" select="true()"/> |
| 1254 |
</xsl:call-template> |
| 1255 |
</xsl:template> |
| 1256 |
|
| 1257 |
<!-- = userinput = --> |
| 1258 |
<xsl:template match="userinput | db:userinput"> |
| 1259 |
<xsl:call-template name="db2html.inline"> |
| 1260 |
<xsl:with-param name="class" select="'input'"/> |
| 1261 |
<xsl:with-param name="ltr" select="true()"/> |
| 1262 |
</xsl:call-template> |
| 1263 |
</xsl:template> |
| 1264 |
|
| 1265 |
<!-- = varname = --> |
| 1266 |
<xsl:template match="varname | db:varname"> |
| 1267 |
<xsl:call-template name="db2html.inline"> |
| 1268 |
<xsl:with-param name="class" select="'code'"/> |
| 1269 |
<xsl:with-param name="ltr" select="true()"/> |
| 1270 |
</xsl:call-template> |
| 1271 |
</xsl:template> |
| 1272 |
|
| 1273 |
<!-- = volumenum = --> |
| 1274 |
<xsl:template match="volumenum | db:volumenum"> |
| 1275 |
<xsl:call-template name="db2html.inline"/> |
| 1276 |
</xsl:template> |
| 1277 |
|
| 1278 |
<!-- = wordasword = --> |
| 1279 |
<xsl:template match="wordasword | db:wordasword"> |
| 1280 |
<xsl:call-template name="db2html.inline"/> |
| 1281 |
</xsl:template> |
| 1282 |
|
| 1283 |
<!-- = year = --> |
| 1284 |
<xsl:template match="year | db:year"> |
| 1285 |
<xsl:call-template name="db2html.inline"/> |
| 1286 |
</xsl:template> |
| 1287 |
|
| 1288 |
|
| 1289 |
</xsl:stylesheet> |