- 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/xhtml/lists.xsl
rf2a5108 rb1a51ac1 5 5 6 6 <!-- ******************************************************************** 7 $Id $7 $Id: lists.xsl 9307 2012-04-28 03:55:07Z bobstayton $ 8 8 ******************************************************************** 9 9 … … 17 17 18 18 <xsl:template match="itemizedlist"> 19 <!-- Handle spacing="compact" as multiple class attribute instead 20 of the deprecated HTML compact attribute --> 21 <xsl:variable name="default.class"> 22 <xsl:value-of select="local-name()"/> 23 <xsl:if test="@spacing = 'compact'"> 24 <xsl:text> compact</xsl:text> 25 </xsl:if> 26 </xsl:variable> 27 28 <xsl:variable name="style.value"> 29 <xsl:variable name="type"> 30 <xsl:call-template name="list.itemsymbol"/> 31 </xsl:variable> 32 33 <xsl:text>list-style-type: </xsl:text> 34 <xsl:value-of select="$type"/> 35 <xsl:text>; </xsl:text> 36 </xsl:variable> 37 19 38 <div> 20 <xsl:apply-templates select="." mode="class.attribute"/> 39 <xsl:call-template name="common.html.attributes"/> 40 <xsl:call-template name="id.attribute"/> 21 41 <xsl:call-template name="anchor"/> 22 <xsl:if test="title ">42 <xsl:if test="title|info/title"> 23 43 <xsl:call-template name="formal.object.heading"/> 24 44 </xsl:if> … … 28 48 29 49 <ul> 30 <xsl:if test="$css.decoration != 0"> 31 <xsl:attribute name="type"> 32 <xsl:call-template name="list.itemsymbol"/> 33 </xsl:attribute> 34 </xsl:if> 35 36 <xsl:if test="@spacing='compact'"> 37 <xsl:attribute name="compact"> 38 <xsl:value-of select="@spacing"/> 39 </xsl:attribute> 40 </xsl:if> 50 <xsl:call-template name="generate.class.attribute"> 51 <xsl:with-param name="class" select="$default.class"/> 52 </xsl:call-template> 53 <xsl:choose> 54 <xsl:when test="$css.decoration != 0"> 55 <xsl:attribute name="style"> 56 <xsl:value-of select="$style.value"/> 57 </xsl:attribute> 58 </xsl:when> 59 <xsl:when test="$make.clean.html != 0"> 60 <!-- styled by separate css only --> 61 </xsl:when> 62 <xsl:otherwise> 63 <!-- use the old @type attribute --> 64 <xsl:attribute name="type"> 65 <xsl:call-template name="list.itemsymbol"/> 66 </xsl:attribute> 67 </xsl:otherwise> 68 </xsl:choose> 69 41 70 <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/> 42 71 </ul> … … 75 104 76 105 <li> 106 <xsl:call-template name="common.html.attributes"/> 107 <xsl:call-template name="id.attribute"/> 77 108 <xsl:if test="$css.decoration = '1' and $cssmark != ''"> 78 109 <xsl:attribute name="style"> … … 104 135 105 136 <xsl:template match="orderedlist"> 137 <!-- Handle spacing="compact" as multiple class attribute instead 138 of the deprecated HTML compact attribute --> 139 <xsl:variable name="default.class"> 140 <xsl:value-of select="local-name()"/> 141 <xsl:if test="@spacing = 'compact'"> 142 <xsl:text> compact</xsl:text> 143 </xsl:if> 144 </xsl:variable> 145 106 146 <xsl:variable name="start"> 107 147 <xsl:call-template name="orderedlist-starting-number"/> … … 131 171 132 172 <div> 133 <xsl:apply-templates select="." mode="class.attribute"/> 173 <xsl:call-template name="common.html.attributes"/> 174 <xsl:call-template name="id.attribute"/> 134 175 <xsl:call-template name="anchor"/> 135 176 136 <xsl:if test="title ">177 <xsl:if test="title|info/title"> 137 178 <xsl:call-template name="formal.object.heading"/> 138 179 </xsl:if> … … 141 182 <xsl:apply-templates select="*[not(self::listitem or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::listitem)] |processing-instruction()[not(preceding-sibling::listitem)]"/> 142 183 143 <ol> 144 <xsl:if test="$start != '1'"> 145 <xsl:attribute name="start"> 146 <xsl:value-of select="$start"/> 147 </xsl:attribute> 148 </xsl:if> 149 <xsl:if test="$numeration != ''"> 150 <xsl:attribute name="type"> 151 <xsl:value-of select="$type"/> 152 </xsl:attribute> 153 </xsl:if> 154 <xsl:if test="@spacing='compact'"> 155 <xsl:attribute name="compact"> 156 <xsl:value-of select="@spacing"/> 157 </xsl:attribute> 158 </xsl:if> 159 <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/> 160 </ol> 184 <xsl:choose> 185 <xsl:when test="@inheritnum='inherit' and ancestor::listitem[parent::orderedlist]"> 186 <table border="{$table.border.off}"> 187 <xsl:call-template name="generate.class.attribute"> 188 <xsl:with-param name="class" select="$default.class"/> 189 </xsl:call-template> 190 <colgroup> 191 <col align="{$direction.align.start}" valign="top"/> 192 <col/> 193 </colgroup> 194 <tbody> 195 <xsl:apply-templates mode="orderedlist-table" select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/> 196 </tbody> 197 </table> 198 </xsl:when> 199 <xsl:otherwise> 200 <ol> 201 <xsl:call-template name="generate.class.attribute"> 202 <xsl:with-param name="class" select="$default.class"/> 203 </xsl:call-template> 204 <xsl:if test="$start != '1'"> 205 <xsl:attribute name="start"> 206 <xsl:value-of select="$start"/> 207 </xsl:attribute> 208 </xsl:if> 209 <xsl:if test="$numeration != ''"> 210 <xsl:attribute name="type"> 211 <xsl:value-of select="$type"/> 212 </xsl:attribute> 213 </xsl:if> 214 <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/> 215 </ol> 216 </xsl:otherwise> 217 </xsl:choose> 161 218 </div> 162 219 </xsl:template> … … 168 225 <xsl:template match="orderedlist/listitem"> 169 226 <li> 227 <xsl:call-template name="common.html.attributes"/> 228 <xsl:call-template name="id.attribute"/> 170 229 <xsl:if test="@override"> 171 230 <xsl:attribute name="value"> … … 195 254 </xsl:template> 196 255 256 <xsl:template match="orderedlist/listitem" mode="orderedlist-table"> 257 <tr> 258 <td> 259 <xsl:apply-templates select="." mode="item-number"/> 260 </td> 261 <td> 262 <xsl:if test="local-name(child::*[1]) != 'para'"> 263 <xsl:call-template name="id.attribute"/> 264 <xsl:call-template name="anchor"/> 265 </xsl:if> 266 267 <xsl:choose> 268 <xsl:when test="$show.revisionflag != 0 and @revisionflag"> 269 <div class="{@revisionflag}"> 270 <xsl:apply-templates/> 271 </div> 272 </xsl:when> 273 <xsl:otherwise> 274 <xsl:apply-templates/> 275 </xsl:otherwise> 276 </xsl:choose> 277 </td> 278 </tr> 279 </xsl:template> 280 197 281 <xsl:template match="variablelist"> 198 282 <xsl:variable name="pi-presentation"> 199 283 <xsl:call-template name="pi.dbhtml_list-presentation"/> 200 284 </xsl:variable> 285 <!-- Handle spacing="compact" as multiple class attribute instead 286 of the deprecated HTML compact attribute --> 287 <xsl:variable name="default.class"> 288 <xsl:value-of select="local-name()"/> 289 <xsl:if test="@spacing = 'compact'"> 290 <xsl:text> compact</xsl:text> 291 </xsl:if> 292 </xsl:variable> 293 201 294 202 295 <xsl:variable name="presentation"> … … 227 320 228 321 <div> 229 <xsl:apply-templates select="." mode="class.attribute"/> 322 <xsl:call-template name="common.html.attributes"/> 323 <xsl:call-template name="id.attribute"/> 230 324 <xsl:call-template name="anchor"/> 231 <xsl:if test="title ">325 <xsl:if test="title|info/title"> 232 326 <xsl:call-template name="formal.object.heading"/> 233 327 </xsl:if> … … 237 331 <!-- Preserve order of PIs and comments --> 238 332 <xsl:apply-templates select="*[not(self::varlistentry or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::varlistentry)] |processing-instruction()[not(preceding-sibling::varlistentry)]"/> 239 <table border="0"> 333 <table border="{$table.border.off}"> 334 <xsl:call-template name="generate.class.attribute"> 335 <xsl:with-param name="class" select="$default.class"/> 336 </xsl:call-template> 240 337 <xsl:if test="$list-width != ''"> 241 338 <xsl:attribute name="width"> … … 248 345 </xsl:attribute> 249 346 </xsl:if> 250 <col align="left" valign="top"> 251 <xsl:if test="$term-width != ''"> 252 <xsl:attribute name="width"> 253 <xsl:value-of select="$term-width"/> 254 </xsl:attribute> 255 </xsl:if> 256 </col> 347 <colgroup> 348 <col align="{$direction.align.start}" valign="top"> 349 <xsl:if test="$term-width != ''"> 350 <xsl:attribute name="width"> 351 <xsl:value-of select="$term-width"/> 352 </xsl:attribute> 353 </xsl:if> 354 </col> 355 <col/> 356 </colgroup> 257 357 <tbody> 258 358 <xsl:apply-templates mode="varlist-table" select="varlistentry |comment()[preceding-sibling::varlistentry] |processing-instruction()[preceding-sibling::varlistentry]"/> … … 264 364 <xsl:apply-templates select="*[not(self::varlistentry or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::varlistentry)] |processing-instruction()[not(preceding-sibling::varlistentry)]"/> 265 365 <dl> 366 <xsl:call-template name="generate.class.attribute"> 367 <xsl:with-param name="class" select="$default.class"/> 368 </xsl:call-template> 266 369 <xsl:apply-templates select="varlistentry |comment()[preceding-sibling::varlistentry] |processing-instruction()[preceding-sibling::varlistentry]"/> 267 370 </dl> … … 298 401 <xsl:otherwise> 299 402 <p> 300 <xsl:if test="@role and $para.propagates.style != 0"> 301 <xsl:apply-templates select="." mode="class.attribute"> 302 <xsl:with-param name="class" select="@role"/> 303 </xsl:apply-templates> 304 </xsl:if> 403 <xsl:call-template name="id.attribute"/> 404 <xsl:choose> 405 <xsl:when test="@role and $para.propagates.style != 0"> 406 <xsl:call-template name="common.html.attributes"> 407 <xsl:with-param name="class" select="@role"/> 408 </xsl:call-template> 409 </xsl:when> 410 <xsl:otherwise> 411 <xsl:call-template name="common.html.attributes"/> 412 </xsl:otherwise> 413 </xsl:choose> 305 414 306 415 <xsl:call-template name="anchor"/> … … 313 422 <xsl:template match="varlistentry"> 314 423 <dt> 424 <xsl:call-template name="id.attribute"/> 315 425 <xsl:call-template name="anchor"/> 316 426 <xsl:apply-templates select="term"/> … … 341 451 342 452 <td> 453 <xsl:call-template name="id.attribute"/> 343 454 <p> 344 455 <xsl:call-template name="anchor"/> 345 456 <xsl:choose> 346 457 <xsl:when test="$presentation = 'bold'"> 347 < b>458 <strong> 348 459 <xsl:apply-templates select="term"/> 349 460 <xsl:value-of select="$separator"/> 350 </ b>461 </strong> 351 462 </xsl:when> 352 463 <xsl:when test="$presentation = 'italic'"> 353 < i>464 <em> 354 465 <xsl:apply-templates select="term"/> 355 466 <xsl:value-of select="$separator"/> 356 </ i>467 </em> 357 468 </xsl:when> 358 469 <xsl:when test="$presentation = 'bold-italic'"> 359 < b>360 < i>470 <strong> 471 <em> 361 472 <xsl:apply-templates select="term"/> 362 473 <xsl:value-of select="$separator"/> 363 </ i>364 </ b>474 </em> 475 </strong> 365 476 </xsl:when> 366 477 <xsl:otherwise> … … 378 489 379 490 <xsl:template match="varlistentry/term"> 380 <span class="term"> 491 <span> 492 <xsl:call-template name="common.html.attributes"/> 493 <xsl:call-template name="id.attribute"/> 381 494 <xsl:call-template name="anchor"/> 382 495 <xsl:call-template name="simple.xlink"> … … 426 539 <!-- with no type specified, the default is 'vert' --> 427 540 <xsl:call-template name="anchor"/> 428 <table class="simplelist" border="0" summary="Simple list"> 541 <table border="{$table.border.off}"> 542 <xsl:if test="$div.element != 'section'"> 543 <xsl:attribute name="summary">Simple list</xsl:attribute> 544 </xsl:if> 545 <xsl:call-template name="common.html.attributes"/> 546 <xsl:call-template name="id.attribute"/> 429 547 <xsl:call-template name="simplelist.vert"> 430 548 <xsl:with-param name="cols"> … … 442 560 <xsl:template match="simplelist[@type='inline']"> 443 561 <span> 444 <xsl:apply-templates select="." mode="class.attribute"/> 445 <!-- if dbchoice PI exists, use that to determine the choice separator --> 446 <!-- (that is, equivalent of "and" or "or" in current locale), or literal --> 447 <!-- value of "choice" otherwise --> 448 <xsl:variable name="localized-choice-separator"> 449 <xsl:choose> 450 <xsl:when test="processing-instruction('dbchoice')"> 451 <xsl:call-template name="select.choice.separator"/> 452 </xsl:when> 453 <xsl:otherwise> 454 <!-- empty --> 455 </xsl:otherwise> 456 </xsl:choose> 457 </xsl:variable> 458 459 <xsl:for-each select="member"> 460 <xsl:call-template name="simple.xlink"> 461 <xsl:with-param name="content"> 462 <xsl:apply-templates/> 463 </xsl:with-param> 464 </xsl:call-template> 465 <xsl:choose> 466 <xsl:when test="position() = last()"/> <!-- do nothing --> 467 <xsl:otherwise> 468 <xsl:text>, </xsl:text> 469 <xsl:if test="position() = last() - 1"> 470 <xsl:if test="$localized-choice-separator != ''"> 471 <xsl:value-of select="$localized-choice-separator"/> 472 <xsl:text> </xsl:text> 473 </xsl:if> 474 </xsl:if> 475 </xsl:otherwise> 476 </xsl:choose> 477 </xsl:for-each> 562 <xsl:call-template name="common.html.attributes"/> 563 <xsl:call-template name="id.attribute"/> 564 <!-- if dbchoice PI exists, use that to determine the choice separator --> 565 <!-- (that is, equivalent of "and" or "or" in current locale), or literal --> 566 <!-- value of "choice" otherwise --> 567 <xsl:variable name="localized-choice-separator"> 568 <xsl:choose> 569 <xsl:when test="processing-instruction('dbchoice')"> 570 <xsl:call-template name="select.choice.separator"/> 571 </xsl:when> 572 <xsl:otherwise> 573 <!-- empty --> 574 </xsl:otherwise> 575 </xsl:choose> 576 </xsl:variable> 577 578 <xsl:for-each select="member"> 579 <xsl:call-template name="simple.xlink"> 580 <xsl:with-param name="content"> 581 <xsl:apply-templates/> 582 </xsl:with-param> 583 </xsl:call-template> 584 <xsl:choose> 585 <xsl:when test="position() = last()"/> <!-- do nothing --> 586 <xsl:otherwise> 587 <xsl:text>, </xsl:text> 588 <xsl:if test="position() = last() - 1"> 589 <xsl:if test="$localized-choice-separator != ''"> 590 <xsl:value-of select="$localized-choice-separator"/> 591 <xsl:text> </xsl:text> 592 </xsl:if> 593 </xsl:if> 594 </xsl:otherwise> 595 </xsl:choose> 596 </xsl:for-each> 478 597 </span> 479 598 </xsl:template> … … 481 600 <xsl:template match="simplelist[@type='horiz']"> 482 601 <xsl:call-template name="anchor"/> 483 <table class="simplelist" border="0" summary="Simple list"> 602 <table border="{$table.border.off}"> 603 <xsl:if test="$div.element != 'section'"> 604 <xsl:attribute name="summary">Simple list</xsl:attribute> 605 </xsl:if> 606 <xsl:call-template name="common.html.attributes"/> 607 <xsl:call-template name="id.attribute"/> 484 608 <xsl:call-template name="simplelist.horiz"> 485 609 <xsl:with-param name="cols"> … … 497 621 <xsl:template match="simplelist[@type='vert']"> 498 622 <xsl:call-template name="anchor"/> 499 <table class="simplelist" border="0" summary="Simple list"> 623 <table border="{$table.border.off}"> 624 <xsl:if test="$div.element != 'section'"> 625 <xsl:attribute name="summary">Simple list</xsl:attribute> 626 </xsl:if> 627 <xsl:call-template name="common.html.attributes"/> 628 <xsl:call-template name="id.attribute"/> 500 629 <xsl:call-template name="simplelist.vert"> 501 630 <xsl:with-param name="cols"> … … 650 779 651 780 <div> 652 <xsl:apply-templates select="." mode="class.attribute"/> 781 <xsl:call-template name="common.html.attributes"/> 782 <xsl:call-template name="id.attribute"> 783 <xsl:with-param name="conditional"> 784 <xsl:choose> 785 <xsl:when test="title">0</xsl:when> 786 <xsl:otherwise>1</xsl:otherwise> 787 </xsl:choose> 788 </xsl:with-param> 789 </xsl:call-template> 653 790 <xsl:call-template name="anchor"> 654 791 <xsl:with-param name="conditional"> 655 792 <xsl:choose> 656 657 658 793 <xsl:when test="title">0</xsl:when> 794 <xsl:otherwise>1</xsl:otherwise> 795 </xsl:choose> 659 796 </xsl:with-param> 660 797 </xsl:call-template> 661 798 662 <xsl:if test=" titleand $placement = 'before'">799 <xsl:if test="(title or info/title) and $placement = 'before'"> 663 800 <xsl:call-template name="formal.object.heading"/> 664 801 </xsl:if> … … 669 806 <xsl:when test="count(step) = 1"> 670 807 <ul> 808 <xsl:call-template name="generate.class.attribute"/> 671 809 <xsl:apply-templates select="step |comment()[preceding-sibling::step] |processing-instruction()[preceding-sibling::step]"/> 672 810 </ul> … … 674 812 <xsl:otherwise> 675 813 <ol> 814 <xsl:call-template name="generate.class.attribute"/> 676 815 <xsl:attribute name="type"> 677 816 <xsl:value-of select="substring($procedure.step.numeration.formats,1,1)"/> … … 682 821 </xsl:choose> 683 822 684 <xsl:if test=" titleand $placement != 'before'">823 <xsl:if test="(title or info/title) and $placement != 'before'"> 685 824 <xsl:call-template name="formal.object.heading"/> 686 825 </xsl:if> … … 700 839 701 840 <ol type="{$numeration}"> 841 <xsl:call-template name="common.html.attributes"/> 842 <xsl:call-template name="id.attribute"/> 702 843 <xsl:apply-templates/> 703 844 </ol> … … 706 847 <xsl:template match="step"> 707 848 <li> 849 <xsl:call-template name="common.html.attributes"/> 850 <xsl:call-template name="id.attribute"/> 708 851 <xsl:call-template name="anchor"/> 709 852 <xsl:apply-templates/> … … 714 857 <xsl:call-template name="anchor"/> 715 858 <ul> 859 <xsl:call-template name="common.html.attributes"/> 860 <xsl:call-template name="id.attribute"/> 716 861 <xsl:apply-templates/> 717 862 </ul> … … 719 864 720 865 <xsl:template match="step/title"> 721 <p class="title"> 722 <b> 866 <p> 867 <xsl:call-template name="common.html.attributes"/> 868 <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"> 723 869 <xsl:apply-templates/> 724 </ b>870 </strong> 725 871 </p> 726 872 </xsl:template> … … 734 880 735 881 <div> 736 <xsl:apply-templates select="." mode="class.attribute"/> 882 <xsl:call-template name="common.html.attributes"/> 883 <xsl:call-template name="id.attribute"/> 737 884 <xsl:call-template name="anchor"/> 738 885 … … 755 902 756 903 <xsl:template match="segmentedlist/title"> 757 <div class="title"> 758 <strong><span class="title"><xsl:apply-templates/></span></strong> 904 <div> 905 <xsl:call-template name="common.html.attributes"/> 906 <strong> 907 <span> 908 <xsl:call-template name="generate.class.attribute"/> 909 <xsl:apply-templates/> 910 </span> 911 </strong> 759 912 </div> 760 913 </xsl:template> … … 768 921 769 922 <xsl:template match="seglistitem"> 770 <div class="seglistitem"> 923 <div> 924 <xsl:call-template name="common.html.attributes"/> 925 <xsl:call-template name="id.attribute"/> 771 926 <xsl:call-template name="anchor"/> 772 927 <xsl:apply-templates/> … … 785 940 --> 786 941 787 <div class="seg"> 942 <div> 943 <xsl:call-template name="common.html.attributes"/> 944 <xsl:call-template name="id.attribute"/> 788 945 <strong> 789 946 <span class="segtitle"> … … 807 964 <xsl:apply-templates select="title"/> 808 965 809 <table border=" 0">966 <table border="{$table.border.off}"> 810 967 <xsl:if test="$list-width != ''"> 811 968 <xsl:attribute name="width"> … … 813 970 </xsl:attribute> 814 971 </xsl:if> 815 <xsl:if test="$table-summary != '' ">972 <xsl:if test="$table-summary != '' and $div.element != 'section'"> 816 973 <xsl:attribute name="summary"> 817 974 <xsl:value-of select="$table-summary"/> … … 842 999 </xsl:variable> 843 1000 844 <tr class="seglistitem"> 1001 <tr> 1002 <xsl:call-template name="common.html.attributes"/> 1003 <xsl:call-template name="id.attribute"/> 845 1004 <xsl:call-template name="tr.attributes"> 846 1005 <xsl:with-param name="rownum" select="$seglinum + 1"/> … … 851 1010 852 1011 <xsl:template match="seg" mode="seglist-table"> 853 <td class="seg"><xsl:apply-templates/></td> 1012 <td> 1013 <xsl:call-template name="common.html.attributes"/> 1014 <xsl:call-template name="id.attribute"/> 1015 <xsl:apply-templates/> 1016 </td> 854 1017 </xsl:template> 855 1018 856 1019 <xsl:template match="seg[1]" mode="seglist-table"> 857 <td class="seg"> 1020 <td> 1021 <xsl:call-template name="common.html.attributes"/> 1022 <xsl:call-template name="id.attribute"/> 858 1023 <xsl:call-template name="anchor"> 859 1024 <xsl:with-param name="node" select="ancestor::seglistitem"/> … … 867 1032 <xsl:template match="calloutlist"> 868 1033 <div> 869 <xsl:apply-templates select="." mode="class.attribute"/> 1034 <xsl:call-template name="common.html.attributes"/> 1035 <xsl:call-template name="id.attribute"/> 870 1036 <xsl:call-template name="anchor"/> 871 1037 <xsl:if test="title|info/title"> … … 874 1040 875 1041 <!-- Preserve order of PIs and comments --> 876 <xsl:apply-templates select="*[not(self::callout or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::callout)] |processing-instruction()[not(preceding-sibling::callout)]"/>1042 <xsl:apply-templates select="*[not(self::callout or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::callout)] |processing-instruction()[not(preceding-sibling::callout)]"/> 877 1043 878 1044 <xsl:choose> 879 1045 <xsl:when test="$callout.list.table != 0"> 880 <table border="0" summary="Callout list"> 881 <xsl:apply-templates select="callout |comment()[preceding-sibling::callout] |processing-instruction()[preceding-sibling::callout]"/> 882 </table> 883 </xsl:when> 884 <xsl:otherwise> 885 <dl compact="compact"> 886 <xsl:apply-templates select="callout |comment()[preceding-sibling::callout] |processing-instruction()[preceding-sibling::callout]"/> 887 </dl> 1046 <table border="{$table.border.off}"> 1047 <xsl:if test="$div.element != 'section'"> 1048 <xsl:attribute name="summary">Callout list</xsl:attribute> 1049 </xsl:if> 1050 <xsl:apply-templates select="callout |comment()[preceding-sibling::callout] |processing-instruction()[preceding-sibling::callout]"/> 1051 </table> 1052 </xsl:when> 1053 <xsl:otherwise> 1054 <dl> 1055 <xsl:apply-templates select="." mode="class.attribute"/> 1056 <xsl:apply-templates select="callout |comment()[preceding-sibling::callout] |processing-instruction()[preceding-sibling::callout]"/> 1057 </dl> 888 1058 </xsl:otherwise> 889 1059 </xsl:choose> … … 904 1074 </xsl:call-template> 905 1075 906 <td width="5%" valign="top" align="left"> 1076 <td width="5%" valign="top" align="{$direction.align.start}"> 1077 <xsl:call-template name="id.attribute"/> 907 1078 <p> 908 1079 <xsl:call-template name="anchor"/> … … 912 1083 </p> 913 1084 </td> 914 <td valign="top" align=" left">1085 <td valign="top" align="{$direction.align.start}"> 915 1086 <xsl:apply-templates/> 916 1087 </td> … … 919 1090 <xsl:otherwise> 920 1091 <dt> 1092 <xsl:call-template name="id.attribute"/> 921 1093 <xsl:call-template name="anchor"/> 922 1094 <xsl:call-template name="callout.arearefs"> … … 940 1112 <xsl:otherwise> 941 1113 <p> 1114 <xsl:call-template name="id.attribute"/> 942 1115 <xsl:if test="@role and $para.propagates.style != 0"> 943 <xsl:apply-templates select="." mode="class.attribute"> 944 <xsl:with-param name="class" select="@role"/> 945 </xsl:apply-templates> 1116 <xsl:choose> 1117 <xsl:when test="@role and $para.propagates.style != 0"> 1118 <xsl:call-template name="common.html.attributes"> 1119 <xsl:with-param name="class" select="@role"/> 1120 </xsl:call-template> 1121 </xsl:when> 1122 <xsl:otherwise> 1123 <xsl:call-template name="common.html.attributes"/> 1124 </xsl:otherwise> 1125 </xsl:choose> 946 1126 </xsl:if> 947 1127
Note:
See TracChangeset
for help on using the changeset viewer.