- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/html/block.xsl
rf2a5108 rb1a51ac1 1 <?xml version="1.0" encoding="ASCII"?> 2 <!--This file was created automatically by html2xhtml--> 3 <!--from the HTML stylesheets.--> 4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> 1 <?xml version='1.0'?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 version='1.0'> 5 4 6 5 <!-- ******************************************************************** 7 $Id $6 $Id: block.xsl 9667 2012-11-26 23:10:44Z bobstayton $ 8 7 ******************************************************************** 9 8 … … 25 24 <xsl:template name="block.object"> 26 25 <div> 27 <xsl:apply-templates select="." mode="class.attribute"/> 26 <xsl:call-template name="common.html.attributes"/> 27 <xsl:call-template name="id.attribute"/> 28 28 <xsl:call-template name="anchor"/> 29 29 <xsl:apply-templates/> … … 59 59 <xsl:variable name="p"> 60 60 <p> 61 <xsl:call-template name="dir"/> 62 <xsl:if test="$class != ''"> 63 <xsl:apply-templates select="." mode="class.attribute"> 64 <xsl:with-param name="class" select="$class"/> 65 </xsl:apply-templates> 66 </xsl:if> 61 <xsl:call-template name="id.attribute"/> 62 <xsl:choose> 63 <xsl:when test="$class != ''"> 64 <xsl:call-template name="common.html.attributes"> 65 <xsl:with-param name="class" select="$class"/> 66 </xsl:call-template> 67 </xsl:when> 68 <xsl:otherwise> 69 <xsl:call-template name="common.html.attributes"> 70 <xsl:with-param name="class" select="''"/> 71 </xsl:call-template> 72 </xsl:otherwise> 73 </xsl:choose> 74 67 75 <xsl:copy-of select="$content"/> 68 76 </p> … … 84 92 <!-- see also listitem/simpara in lists.xsl --> 85 93 <p> 94 <xsl:call-template name="id.attribute"/> 95 <xsl:call-template name="locale.html.attributes"/> 86 96 <xsl:if test="@role and $para.propagates.style != 0"> 87 97 <xsl:apply-templates select="." mode="class.attribute"> … … 124 134 </xsl:variable> 125 135 126 <b> 127 <xsl:copy-of select="$titleStr"/> 128 <xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))"> 129 <xsl:value-of select="$runinhead.default.title.end.punct"/> 130 </xsl:if> 131 <xsl:text> </xsl:text> 132 </b> 136 <xsl:choose> 137 <xsl:when test="$make.clean.html != 0"> 138 <span class="formalpara-title"> 139 <xsl:copy-of select="$titleStr"/> 140 <xsl:if test="$lastChar != '' 141 and not(contains($runinhead.title.end.punct, $lastChar))"> 142 <xsl:value-of select="$runinhead.default.title.end.punct"/> 143 </xsl:if> 144 <xsl:text> </xsl:text> 145 </span> 146 </xsl:when> 147 <xsl:otherwise> 148 <b> 149 <xsl:copy-of select="$titleStr"/> 150 <xsl:if test="$lastChar != '' 151 and not(contains($runinhead.title.end.punct, $lastChar))"> 152 <xsl:value-of select="$runinhead.default.title.end.punct"/> 153 </xsl:if> 154 <xsl:text> </xsl:text> 155 </b> 156 </xsl:otherwise> 157 </xsl:choose> 133 158 </xsl:template> 134 159 … … 141 166 <xsl:template match="blockquote"> 142 167 <div> 143 <xsl:apply-templates select="." mode="class.attribute"/> 144 <xsl:if test="@lang or @xml:lang"> 145 <xsl:call-template name="language.attribute"/> 146 </xsl:if> 168 <xsl:call-template name="common.html.attributes"/> 169 <xsl:call-template name="id.attribute"/> 147 170 <xsl:call-template name="anchor"/> 148 171 149 172 <xsl:choose> 150 173 <xsl:when test="attribution"> 151 <table border="0" width="100%" cellspacing="0" cellpadding="0" class="blockquote" summary="Block quote"> 174 <table border="{$table.border.off}" class="blockquote"> 175 <xsl:if test="$css.decoration != 0"> 176 <xsl:attribute name="style"> 177 <xsl:text>width: 100%; cellspacing: 0; cellpadding: 0;</xsl:text> 178 </xsl:attribute> 179 </xsl:if> 180 <xsl:if test="$div.element != 'section'"> 181 <xsl:attribute name="summary">Block quote</xsl:attribute> 182 </xsl:if> 152 183 <tr> 153 184 <td width="10%" valign="top"> </td> … … 159 190 <tr> 160 191 <td width="10%" valign="top"> </td> 161 <td colspan="2" align=" right" valign="top">192 <td colspan="2" align="{$direction.align.end}" valign="top"> 162 193 <xsl:text>--</xsl:text> 163 194 <xsl:apply-templates select="attribution"/> … … 168 199 <xsl:otherwise> 169 200 <blockquote> 170 <xsl: apply-templates select="." mode="class.attribute"/>201 <xsl:call-template name="common.html.attributes"/> 171 202 <xsl:apply-templates/> 172 203 </blockquote> … … 177 208 178 209 <xsl:template match="blockquote/title|blockquote/info/title"> 179 <div class="blockquote-title"> 180 <p> 181 <b> 182 <xsl:apply-templates/> 183 </b> 184 </p> 185 </div> 186 </xsl:template> 187 210 <xsl:choose> 211 <xsl:when test="$make.clean.html != 0"> 212 <div class="blockquote-title"> 213 <xsl:apply-templates/> 214 </div> 215 </xsl:when> 216 <xsl:otherwise> 217 <div class="blockquote-title"> 218 <p> 219 <b> 220 <xsl:apply-templates/> 221 </b> 222 </p> 223 </div> 224 </xsl:otherwise> 225 </xsl:choose> 226 </xsl:template> 227 228 <!-- Use an em dash per Chicago Manual of Style and https://sourceforge.net/tracker/index.php?func=detail&aid=2793878&group_id=21935&atid=373747 --> 188 229 <xsl:template match="epigraph"> 189 230 <div> 190 <xsl:apply-templates select="." mode="class.attribute"/> 191 <xsl:apply-templates select="para|simpara|formalpara|literallayout"/> 192 <xsl:if test="attribution"> 193 <div class="attribution"> 194 <span>--<xsl:apply-templates select="attribution"/></span> 195 </div> 196 </xsl:if> 231 <xsl:call-template name="common.html.attributes"/> 232 <xsl:call-template name="id.attribute"/> 233 <xsl:apply-templates select="para|simpara|formalpara|literallayout"/> 234 <xsl:if test="attribution"> 235 <div class="attribution"> 236 <span>—<xsl:apply-templates select="attribution"/></span> 237 </div> 238 </xsl:if> 197 239 </div> 198 240 </xsl:template> … … 200 242 <xsl:template match="attribution"> 201 243 <span> 202 <xsl:apply-templates select="." mode="class.attribute"/> 244 <xsl:call-template name="common.html.attributes"/> 245 <xsl:call-template name="id.attribute"/> 203 246 <xsl:apply-templates/> 204 247 </span> … … 207 250 <!-- ==================================================================== --> 208 251 209 <xsl:template match=" abstract|sidebar">252 <xsl:template match="sidebar"> 210 253 <div> 211 <xsl:apply-templates select="." mode="class.attribute"/> 254 <xsl:call-template name="common.html.attributes"/> 255 <xsl:call-template name="id.attribute"/> 256 <xsl:call-template name="anchor"/> 257 <xsl:call-template name="sidebar.titlepage"/> 258 <xsl:apply-templates/> 259 </div> 260 </xsl:template> 261 262 <xsl:template match="abstract/title|sidebar/title"> 263 </xsl:template> 264 265 <xsl:template match="sidebar/sidebarinfo|sidebar/info"/> 266 267 <xsl:template match="abstract"> 268 <div> 269 <xsl:call-template name="common.html.attributes"/> 212 270 <xsl:call-template name="anchor"/> 213 271 <xsl:call-template name="formal.object.heading"> … … 222 280 </xsl:template> 223 281 224 <xsl:template match="abstract/title|sidebar/title">225 </xsl:template>226 227 <xsl:template match="sidebar/sidebarinfo|sidebar/info"/>228 229 282 <!-- ==================================================================== --> 230 283 … … 250 303 251 304 <xsl:template match="msgmain/title"> 252 <b><xsl:apply-templates/></b> 305 <xsl:choose> 306 <xsl:when test="$make.clean.html != 0"> 307 <span class="msgmain-title"> 308 <xsl:apply-templates/> 309 </span> 310 </xsl:when> 311 <xsl:otherwise> 312 <b><xsl:apply-templates/></b> 313 </xsl:otherwise> 314 </xsl:choose> 253 315 </xsl:template> 254 316 … … 258 320 259 321 <xsl:template match="msgsub/title"> 260 <b><xsl:apply-templates/></b> 322 <xsl:choose> 323 <xsl:when test="$make.clean.html != 0"> 324 <span class="msgsub-title"> 325 <xsl:apply-templates/> 326 </span> 327 </xsl:when> 328 <xsl:otherwise> 329 <b><xsl:apply-templates/></b> 330 </xsl:otherwise> 331 </xsl:choose> 261 332 </xsl:template> 262 333 … … 266 337 267 338 <xsl:template match="msgrel/title"> 268 <b><xsl:apply-templates/></b> 339 <xsl:choose> 340 <xsl:when test="$make.clean.html != 0"> 341 <span class="msgrel-title"> 342 <xsl:apply-templates/> 343 </span> 344 </xsl:when> 345 <xsl:otherwise> 346 <b><xsl:apply-templates/></b> 347 </xsl:otherwise> 348 </xsl:choose> 269 349 </xsl:template> 270 350 … … 278 358 279 359 <xsl:template match="msglevel"> 280 <p> 281 <b> 282 <xsl:call-template name="gentext.template"> 283 <xsl:with-param name="context" select="'msgset'"/> 284 <xsl:with-param name="name" select="'MsgLevel'"/> 285 </xsl:call-template> 286 </b> 287 <xsl:apply-templates/> 288 </p> 360 <xsl:choose> 361 <xsl:when test="$make.clean.html != 0"> 362 <div class="msglevel"> 363 <span class="msglevel-title"> 364 <xsl:call-template name="gentext.template"> 365 <xsl:with-param name="context" select="'msgset'"/> 366 <xsl:with-param name="name" select="'MsgLevel'"/> 367 </xsl:call-template> 368 </span> 369 <xsl:apply-templates/> 370 </div> 371 </xsl:when> 372 <xsl:otherwise> 373 <p> 374 <b> 375 <xsl:call-template name="gentext.template"> 376 <xsl:with-param name="context" select="'msgset'"/> 377 <xsl:with-param name="name" select="'MsgLevel'"/> 378 </xsl:call-template> 379 </b> 380 <xsl:apply-templates/> 381 </p> 382 </xsl:otherwise> 383 </xsl:choose> 289 384 </xsl:template> 290 385 291 386 <xsl:template match="msgorig"> 292 <p> 293 <b> 294 <xsl:call-template name="gentext.template"> 295 <xsl:with-param name="context" select="'msgset'"/> 296 <xsl:with-param name="name" select="'MsgOrig'"/> 297 </xsl:call-template> 298 </b> 299 <xsl:apply-templates/> 300 </p> 387 <xsl:choose> 388 <xsl:when test="$make.clean.html != 0"> 389 <div class="msgorig"> 390 <span class="msgorig-title"> 391 <xsl:call-template name="gentext.template"> 392 <xsl:with-param name="context" select="'msgset'"/> 393 <xsl:with-param name="name" select="'MsgOrig'"/> 394 </xsl:call-template> 395 </span> 396 <xsl:apply-templates/> 397 </div> 398 </xsl:when> 399 <xsl:otherwise> 400 <p> 401 <b> 402 <xsl:call-template name="gentext.template"> 403 <xsl:with-param name="context" select="'msgset'"/> 404 <xsl:with-param name="name" select="'MsgOrig'"/> 405 </xsl:call-template> 406 </b> 407 <xsl:apply-templates/> 408 </p> 409 </xsl:otherwise> 410 </xsl:choose> 301 411 </xsl:template> 302 412 303 413 <xsl:template match="msgaud"> 304 <p> 305 <b> 306 <xsl:call-template name="gentext.template"> 307 <xsl:with-param name="context" select="'msgset'"/> 308 <xsl:with-param name="name" select="'MsgAud'"/> 309 </xsl:call-template> 310 </b> 311 <xsl:apply-templates/> 312 </p> 414 <xsl:choose> 415 <xsl:when test="$make.clean.html != 0"> 416 <div class="msgaud"> 417 <span class="msgaud-title"> 418 <xsl:call-template name="gentext.template"> 419 <xsl:with-param name="context" select="'msgset'"/> 420 <xsl:with-param name="name" select="'MsgAud'"/> 421 </xsl:call-template> 422 </span> 423 <xsl:apply-templates/> 424 </div> 425 </xsl:when> 426 <xsl:otherwise> 427 <p> 428 <b> 429 <xsl:call-template name="gentext.template"> 430 <xsl:with-param name="context" select="'msgset'"/> 431 <xsl:with-param name="name" select="'MsgAud'"/> 432 </xsl:call-template> 433 </b> 434 <xsl:apply-templates/> 435 </p> 436 </xsl:otherwise> 437 </xsl:choose> 313 438 </xsl:template> 314 439 … … 318 443 319 444 <xsl:template match="msgexplan/title"> 320 <p><b><xsl:apply-templates/></b></p> 445 <xsl:choose> 446 <xsl:when test="$make.clean.html != 0"> 447 <div class="msgexplan"> 448 <span class="msgexplan-title"> 449 <xsl:apply-templates/> 450 </span> 451 </div> 452 </xsl:when> 453 <xsl:otherwise> 454 <p> 455 <b> 456 <xsl:apply-templates/> 457 </b> 458 </p> 459 </xsl:otherwise> 460 </xsl:choose> 321 461 </xsl:template> 322 462 … … 325 465 <xsl:template match="revhistory"> 326 466 <div> 327 <xsl:apply-templates select="." mode="class.attribute"/> 328 <table border="0" width="100%" summary="Revision history"> 467 <xsl:call-template name="common.html.attributes"/> 468 <xsl:call-template name="id.attribute"/> 469 <table> 470 <xsl:if test="$css.decoration != 0"> 471 <xsl:attribute name="style"> 472 <xsl:text>border-style:solid; width:100%;</xsl:text> 473 </xsl:attribute> 474 </xsl:if> 475 <!-- include summary attribute if not HTML5 --> 476 <xsl:if test="$div.element != 'section'"> 477 <xsl:attribute name="summary"> 478 <xsl:call-template name="gentext"> 479 <xsl:with-param name="key">revhistory</xsl:with-param> 480 </xsl:call-template> 481 </xsl:attribute> 482 </xsl:if> 329 483 <tr> 330 <th align=" left" valign="top" colspan="3">484 <th align="{$direction.align.start}" valign="top" colspan="3"> 331 485 <b> 332 486 <xsl:call-template name="gentext"> … … 343 497 <xsl:template match="revhistory/revision"> 344 498 <xsl:variable name="revnumber" select="revnumber"/> 345 <xsl:variable name="revdate" select="date"/>499 <xsl:variable name="revdate" select="date"/> 346 500 <xsl:variable name="revauthor" select="authorinitials|author"/> 347 501 <xsl:variable name="revremark" select="revremark|revdescription"/> 348 502 <tr> 349 <td align=" left">503 <td align="{$direction.align.start}"> 350 504 <xsl:if test="$revnumber"> 351 505 <xsl:call-template name="gentext"> … … 356 510 </xsl:if> 357 511 </td> 358 <td align=" left">512 <td align="{$direction.align.start}"> 359 513 <xsl:apply-templates select="$revdate"/> 360 514 </td> 361 515 <xsl:choose> 362 516 <xsl:when test="count($revauthor)=0"> 363 <td align=" left">517 <td align="{$direction.align.start}"> 364 518 <xsl:call-template name="dingbat"> 365 519 <xsl:with-param name="dingbat">nbsp</xsl:with-param> … … 368 522 </xsl:when> 369 523 <xsl:otherwise> 370 <td align=" left">524 <td align="{$direction.align.start}"> 371 525 <xsl:for-each select="$revauthor"> 372 526 <xsl:apply-templates select="."/> … … 381 535 <xsl:if test="$revremark"> 382 536 <tr> 383 <td align=" left" colspan="3">537 <td align="{$direction.align.start}" colspan="3"> 384 538 <xsl:apply-templates select="$revremark"/> 385 539 </td> … … 415 569 <!-- ==================================================================== --> 416 570 417 <xsl:template match="ackno"> 418 <p> 419 <xsl:apply-templates select="." mode="class.attribute"/> 420 <xsl:apply-templates/> 421 </p> 571 <xsl:template match="ackno|acknowledgements[parent::article]"> 572 <xsl:call-template name="block.object"/> 422 573 </xsl:template> 423 574
Note:
See TracChangeset
for help on using the changeset viewer.