1 <?xml version="1.0" encoding="US-ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets. Do not edit this file.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
12 and other information.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
18 <xsl:template match="itemizedlist">
19 <div class="{name(.)}">
20 <xsl:call-template name="anchor"/>
22 <xsl:call-template name="formal.object.heading"/>
25 <!-- Preserve order of PIs and comments -->
26 <xsl:apply-templates select="*[not(self::listitem or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::listitem)] |processing-instruction()[not(preceding-sibling::listitem)]"/>
29 <xsl:if test="$css.decoration != 0">
30 <xsl:attribute name="type">
31 <xsl:call-template name="list.itemsymbol"/>
35 <xsl:if test="@spacing='compact'">
36 <xsl:attribute name="compact">
37 <xsl:value-of select="@spacing"/>
40 <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/>
45 <xsl:template match="itemizedlist/title">
49 <xsl:template match="itemizedlist/listitem">
50 <xsl:variable name="mark" select="../@mark"/>
51 <xsl:variable name="override" select="@override"/>
53 <xsl:variable name="usemark">
55 <xsl:when test="$override != ''">
56 <xsl:value-of select="$override"/>
59 <xsl:value-of select="$mark"/>
64 <xsl:variable name="cssmark">
66 <xsl:when test="$usemark = 'opencircle'">circle</xsl:when>
67 <xsl:when test="$usemark = 'bullet'">disc</xsl:when>
68 <xsl:when test="$usemark = 'box'">square</xsl:when>
70 <xsl:value-of select="$usemark"/>
76 <xsl:if test="$css.decoration = '1' and $cssmark != ''">
77 <xsl:attribute name="style">
78 <xsl:text>list-style-type: </xsl:text>
79 <xsl:value-of select="$cssmark"/>
83 <!-- we can't just drop the anchor in since some browsers (Opera)
84 get confused about line breaks if we do. So if the first child
85 is a para, assume the para will put in the anchor. Otherwise,
86 put the anchor in anyway. -->
87 <xsl:if test="local-name(child::*[1]) != 'para'">
88 <xsl:call-template name="anchor"/>
92 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
93 <div class="{@revisionflag}">
94 <xsl:apply-templates/>
98 <xsl:apply-templates/>
104 <xsl:template match="orderedlist">
105 <xsl:variable name="pi-start">
106 <xsl:call-template name="dbhtml-attribute">
107 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
108 <xsl:with-param name="attribute" select="'start'"/>
112 <xsl:variable name="start">
114 <xsl:when test="@continuation='continues'">
115 <xsl:call-template name="orderedlist-starting-number"/>
117 <xsl:when test="$pi-start != ''">
118 <xsl:value-of select="$pi-start"/>
120 <xsl:otherwise>1</xsl:otherwise>
124 <xsl:variable name="numeration">
125 <xsl:call-template name="list.numeration"/>
128 <xsl:variable name="type">
130 <xsl:when test="$numeration='arabic'">1</xsl:when>
131 <xsl:when test="$numeration='loweralpha'">a</xsl:when>
132 <xsl:when test="$numeration='lowerroman'">i</xsl:when>
133 <xsl:when test="$numeration='upperalpha'">A</xsl:when>
134 <xsl:when test="$numeration='upperroman'">I</xsl:when>
135 <!-- What!? This should never happen -->
138 <xsl:text>Unexpected numeration: </xsl:text>
139 <xsl:value-of select="$numeration"/>
141 <xsl:value-of select="1"/>
146 <div class="{name(.)}">
147 <xsl:call-template name="anchor"/>
149 <xsl:if test="title">
150 <xsl:call-template name="formal.object.heading"/>
153 <!-- Preserve order of PIs and comments -->
154 <xsl:apply-templates select="*[not(self::listitem or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::listitem)] |processing-instruction()[not(preceding-sibling::listitem)]"/>
157 <xsl:if test="$start != '1'">
158 <xsl:attribute name="start">
159 <xsl:value-of select="$start"/>
162 <xsl:if test="$numeration != ''">
163 <xsl:attribute name="type">
164 <xsl:value-of select="$type"/>
167 <xsl:if test="@spacing='compact'">
168 <xsl:attribute name="compact">
169 <xsl:value-of select="@spacing"/>
172 <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem] |processing-instruction()[preceding-sibling::listitem]"/>
177 <xsl:template match="orderedlist/title">
181 <xsl:template match="orderedlist/listitem">
183 <xsl:if test="@override">
184 <xsl:attribute name="value">
185 <xsl:value-of select="@override"/>
189 <!-- we can't just drop the anchor in since some browsers (Opera)
190 get confused about line breaks if we do. So if the first child
191 is a para, assume the para will put in the anchor. Otherwise,
192 put the anchor in anyway. -->
193 <xsl:if test="local-name(child::*[1]) != 'para'">
194 <xsl:call-template name="anchor"/>
198 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
199 <div class="{@revisionflag}">
200 <xsl:apply-templates/>
204 <xsl:apply-templates/>
210 <xsl:template match="variablelist">
211 <xsl:variable name="pi-presentation">
212 <xsl:call-template name="dbhtml-attribute">
213 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
214 <xsl:with-param name="attribute" select="'list-presentation'"/>
218 <xsl:variable name="presentation">
220 <xsl:when test="$pi-presentation != ''">
221 <xsl:value-of select="$pi-presentation"/>
223 <xsl:when test="$variablelist.as.table != 0">
224 <xsl:value-of select="'table'"/>
227 <xsl:value-of select="'list'"/>
232 <xsl:variable name="list-width">
233 <xsl:call-template name="dbhtml-attribute">
234 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
235 <xsl:with-param name="attribute" select="'list-width'"/>
239 <xsl:variable name="term-width">
240 <xsl:call-template name="dbhtml-attribute">
241 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
242 <xsl:with-param name="attribute" select="'term-width'"/>
246 <xsl:variable name="table-summary">
247 <xsl:call-template name="dbhtml-attribute">
248 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
249 <xsl:with-param name="attribute" select="'table-summary'"/>
253 <div class="{name(.)}">
254 <xsl:call-template name="anchor"/>
255 <xsl:if test="title">
256 <xsl:call-template name="formal.object.heading"/>
260 <xsl:when test="$presentation = 'table'">
261 <!-- Preserve order of PIs and comments -->
262 <xsl:apply-templates select="*[not(self::varlistentry or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::varlistentry)] |processing-instruction()[not(preceding-sibling::varlistentry)]"/>
264 <xsl:if test="$list-width != ''">
265 <xsl:attribute name="width">
266 <xsl:value-of select="$list-width"/>
269 <xsl:if test="$table-summary != ''">
270 <xsl:attribute name="summary">
271 <xsl:value-of select="$table-summary"/>
274 <col align="left" valign="top">
275 <xsl:if test="$term-width != ''">
276 <xsl:attribute name="width">
277 <xsl:value-of select="$term-width"/>
282 <xsl:apply-templates mode="varlist-table" select="varlistentry |comment()[preceding-sibling::varlistentry] |processing-instruction()[preceding-sibling::varlistentry]"/>
287 <!-- Preserve order of PIs and comments -->
288 <xsl:apply-templates select="*[not(self::varlistentry or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::varlistentry)] |processing-instruction()[not(preceding-sibling::varlistentry)]"/>
290 <xsl:apply-templates select="varlistentry |comment()[preceding-sibling::varlistentry] |processing-instruction()[preceding-sibling::varlistentry]"/>
297 <xsl:template match="variablelist/title">
301 <xsl:template match="itemizedlist/titleabbrev|orderedlist/titleabbrev">
305 <xsl:template match="variablelist/titleabbrev">
309 <xsl:template match="listitem" mode="xref">
310 <xsl:number format="1"/>
313 <xsl:template match="listitem/simpara" priority="2">
314 <!-- If a listitem contains only a single simpara, don't output
315 the <p> wrapper; this has the effect of creating an li
316 with simple text content. -->
318 <xsl:when test="not(preceding-sibling::*) and not (following-sibling::*)">
319 <xsl:call-template name="anchor"/>
320 <xsl:apply-templates/>
324 <xsl:if test="@role and $para.propagates.style != 0">
325 <xsl:attribute name="class">
326 <xsl:value-of select="@role"/>
330 <xsl:call-template name="anchor"/>
331 <xsl:apply-templates/>
337 <xsl:template match="varlistentry">
339 <xsl:call-template name="anchor"/>
340 <xsl:apply-templates select="term"/>
343 <xsl:apply-templates select="listitem"/>
347 <xsl:template match="varlistentry" mode="varlist-table">
348 <xsl:variable name="presentation">
349 <xsl:call-template name="dbhtml-attribute">
350 <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
351 <xsl:with-param name="attribute" select="'term-presentation'"/>
355 <xsl:variable name="separator">
356 <xsl:call-template name="dbhtml-attribute">
357 <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
358 <xsl:with-param name="attribute" select="'term-separator'"/>
362 <xsl:call-template name="tr.attributes">
363 <xsl:with-param name="rownum">
364 <xsl:number from="variablelist" count="varlistentry"/>
369 <xsl:call-template name="anchor"/>
371 <xsl:when test="$presentation = 'bold'">
373 <xsl:apply-templates select="term"/>
374 <xsl:value-of select="$separator"/>
377 <xsl:when test="$presentation = 'italic'">
379 <xsl:apply-templates select="term"/>
380 <xsl:value-of select="$separator"/>
383 <xsl:when test="$presentation = 'bold-italic'">
386 <xsl:apply-templates select="term"/>
387 <xsl:value-of select="$separator"/>
392 <xsl:apply-templates select="term"/>
393 <xsl:value-of select="$separator"/>
398 <xsl:apply-templates select="listitem"/>
403 <xsl:template match="varlistentry/term">
405 <xsl:call-template name="anchor"/>
406 <xsl:apply-templates/>
407 <xsl:text>, </xsl:text>
411 <xsl:template match="varlistentry/term[position()=last()]" priority="2">
413 <xsl:call-template name="anchor"/>
414 <xsl:apply-templates/>
418 <xsl:template match="varlistentry/listitem">
420 <xsl:when test="$show.revisionflag != 0 and @revisionflag">
421 <div class="{@revisionflag}">
422 <xsl:apply-templates/>
426 <xsl:apply-templates/>
431 <!-- ==================================================================== -->
433 <xsl:template match="simplelist">
434 <!-- with no type specified, the default is 'vert' -->
435 <xsl:call-template name="anchor"/>
436 <table class="simplelist" border="0" summary="Simple list">
437 <xsl:call-template name="simplelist.vert">
438 <xsl:with-param name="cols">
440 <xsl:when test="@columns">
441 <xsl:value-of select="@columns"/>
443 <xsl:otherwise>1</xsl:otherwise>
450 <xsl:template match="simplelist[@type='inline']">
451 <span class="{name(.)}">
452 <!-- if dbchoice PI exists, use that to determine the choice separator -->
453 <!-- (that is, equivalent of "and" or "or" in current locale), or literal -->
454 <!-- value of "choice" otherwise -->
455 <xsl:variable name="localized-choice-separator">
457 <xsl:when test="processing-instruction('dbchoice')">
458 <xsl:call-template name="select.choice.separator"/>
466 <xsl:for-each select="member">
467 <xsl:apply-templates/>
469 <xsl:when test="position() = last()"/> <!-- do nothing -->
471 <xsl:text>, </xsl:text>
472 <xsl:if test="position() = last() - 1">
473 <xsl:if test="$localized-choice-separator != ''">
474 <xsl:value-of select="$localized-choice-separator"/>
475 <xsl:text> </xsl:text>
484 <xsl:template match="simplelist[@type='horiz']">
485 <xsl:call-template name="anchor"/>
486 <table class="simplelist" border="0" summary="Simple list">
487 <xsl:call-template name="simplelist.horiz">
488 <xsl:with-param name="cols">
490 <xsl:when test="@columns">
491 <xsl:value-of select="@columns"/>
493 <xsl:otherwise>1</xsl:otherwise>
500 <xsl:template match="simplelist[@type='vert']">
501 <xsl:call-template name="anchor"/>
502 <table class="simplelist" border="0" summary="Simple list">
503 <xsl:call-template name="simplelist.vert">
504 <xsl:with-param name="cols">
506 <xsl:when test="@columns">
507 <xsl:value-of select="@columns"/>
509 <xsl:otherwise>1</xsl:otherwise>
516 <xsl:template name="simplelist.horiz">
517 <xsl:param name="cols">1</xsl:param>
518 <xsl:param name="cell">1</xsl:param>
519 <xsl:param name="members" select="./member"/>
521 <xsl:if test="$cell <= count($members)">
523 <xsl:call-template name="tr.attributes">
524 <xsl:with-param name="row" select="$members[1]"/>
525 <xsl:with-param name="rownum" select="(($cell - 1) div $cols) + 1"/>
528 <xsl:call-template name="simplelist.horiz.row">
529 <xsl:with-param name="cols" select="$cols"/>
530 <xsl:with-param name="cell" select="$cell"/>
531 <xsl:with-param name="members" select="$members"/>
534 <xsl:call-template name="simplelist.horiz">
535 <xsl:with-param name="cols" select="$cols"/>
536 <xsl:with-param name="cell" select="$cell + $cols"/>
537 <xsl:with-param name="members" select="$members"/>
542 <xsl:template name="simplelist.horiz.row">
543 <xsl:param name="cols">1</xsl:param>
544 <xsl:param name="cell">1</xsl:param>
545 <xsl:param name="members" select="./member"/>
546 <xsl:param name="curcol">1</xsl:param>
548 <xsl:if test="$curcol <= $cols">
551 <xsl:when test="$members[position()=$cell]">
552 <xsl:apply-templates select="$members[position()=$cell]"/>
555 <xsl:text> </xsl:text>
559 <xsl:call-template name="simplelist.horiz.row">
560 <xsl:with-param name="cols" select="$cols"/>
561 <xsl:with-param name="cell" select="$cell+1"/>
562 <xsl:with-param name="members" select="$members"/>
563 <xsl:with-param name="curcol" select="$curcol+1"/>
568 <xsl:template name="simplelist.vert">
569 <xsl:param name="cols">1</xsl:param>
570 <xsl:param name="cell">1</xsl:param>
571 <xsl:param name="members" select="./member"/>
572 <xsl:param name="rows" select="floor((count($members)+$cols - 1) div $cols)"/>
574 <xsl:if test="$cell <= $rows">
576 <xsl:call-template name="tr.attributes">
577 <xsl:with-param name="row" select="$members[1]"/>
578 <xsl:with-param name="rownum" select="$cell"/>
581 <xsl:call-template name="simplelist.vert.row">
582 <xsl:with-param name="cols" select="$cols"/>
583 <xsl:with-param name="rows" select="$rows"/>
584 <xsl:with-param name="cell" select="$cell"/>
585 <xsl:with-param name="members" select="$members"/>
588 <xsl:call-template name="simplelist.vert">
589 <xsl:with-param name="cols" select="$cols"/>
590 <xsl:with-param name="cell" select="$cell+1"/>
591 <xsl:with-param name="members" select="$members"/>
592 <xsl:with-param name="rows" select="$rows"/>
597 <xsl:template name="simplelist.vert.row">
598 <xsl:param name="cols">1</xsl:param>
599 <xsl:param name="rows">1</xsl:param>
600 <xsl:param name="cell">1</xsl:param>
601 <xsl:param name="members" select="./member"/>
602 <xsl:param name="curcol">1</xsl:param>
604 <xsl:if test="$curcol <= $cols">
607 <xsl:when test="$members[position()=$cell]">
608 <xsl:apply-templates select="$members[position()=$cell]"/>
611 <xsl:text> </xsl:text>
615 <xsl:call-template name="simplelist.vert.row">
616 <xsl:with-param name="cols" select="$cols"/>
617 <xsl:with-param name="rows" select="$rows"/>
618 <xsl:with-param name="cell" select="$cell+$rows"/>
619 <xsl:with-param name="members" select="$members"/>
620 <xsl:with-param name="curcol" select="$curcol+1"/>
625 <xsl:template match="member">
626 <xsl:call-template name="anchor"/>
627 <xsl:apply-templates/>
630 <!-- ==================================================================== -->
632 <xsl:template match="procedure">
633 <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
635 <xsl:variable name="placement">
637 <xsl:when test="contains($param.placement, ' ')">
638 <xsl:value-of select="substring-before($param.placement, ' ')"/>
640 <xsl:when test="$param.placement = ''">before</xsl:when>
642 <xsl:value-of select="$param.placement"/>
647 <!-- Preserve order of PIs and comments -->
648 <xsl:variable name="preamble" select="*[not(self::step or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::step)] |processing-instruction()[not(preceding-sibling::step)]"/>
650 <div class="{name(.)}">
651 <xsl:call-template name="anchor">
652 <xsl:with-param name="conditional">
654 <xsl:when test="title">0</xsl:when>
655 <xsl:otherwise>1</xsl:otherwise>
660 <xsl:if test="title and $placement = 'before'">
661 <xsl:call-template name="formal.object.heading"/>
664 <xsl:apply-templates select="$preamble"/>
667 <xsl:when test="count(step) = 1">
669 <xsl:apply-templates select="step |comment()[preceding-sibling::step] |processing-instruction()[preceding-sibling::step]"/>
674 <xsl:attribute name="type">
675 <xsl:value-of select="substring($procedure.step.numeration.formats,1,1)"/>
677 <xsl:apply-templates select="step |comment()[preceding-sibling::step] |processing-instruction()[preceding-sibling::step]"/>
682 <xsl:if test="title and $placement != 'before'">
683 <xsl:call-template name="formal.object.heading"/>
688 <xsl:template match="procedure/title">
692 <xsl:template match="substeps">
693 <xsl:variable name="numeration">
694 <xsl:call-template name="procedure.step.numeration"/>
697 <xsl:call-template name="anchor"/>
699 <ol type="{$numeration}">
700 <xsl:apply-templates/>
704 <xsl:template match="step">
706 <xsl:call-template name="anchor"/>
707 <xsl:apply-templates/>
711 <xsl:template match="stepalternatives">
712 <xsl:call-template name="anchor"/>
714 <xsl:apply-templates/>
718 <xsl:template match="step/title">
721 <xsl:apply-templates/>
726 <!-- ==================================================================== -->
728 <xsl:template match="segmentedlist">
729 <xsl:variable name="presentation">
730 <xsl:call-template name="dbhtml-attribute">
731 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
732 <xsl:with-param name="attribute" select="'list-presentation'"/>
736 <div class="{name(.)}">
737 <xsl:call-template name="anchor"/>
740 <xsl:when test="$presentation = 'table'">
741 <xsl:apply-templates select="." mode="seglist-table"/>
743 <xsl:when test="$presentation = 'list'">
744 <xsl:apply-templates/>
746 <xsl:when test="$segmentedlist.as.table != 0">
747 <xsl:apply-templates select="." mode="seglist-table"/>
750 <xsl:apply-templates/>
756 <xsl:template match="segmentedlist/title">
758 <strong><span class="title"><xsl:apply-templates/></span></strong>
762 <xsl:template match="segtitle">
765 <xsl:template match="segtitle" mode="segtitle-in-seg">
766 <xsl:apply-templates/>
769 <xsl:template match="seglistitem">
770 <div class="seglistitem">
771 <xsl:call-template name="anchor"/>
772 <xsl:apply-templates/>
776 <xsl:template match="seg">
777 <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
778 <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
779 <xsl:variable name="segtitles" select="$seglist/segtitle"/>
782 Note: segtitle is only going to be the right thing in a well formed
783 SegmentedList. If there are too many Segs or too few SegTitles,
784 you'll get something odd...maybe an error
789 <span class="segtitle">
790 <xsl:apply-templates select="$segtitles[$segnum=position()]" mode="segtitle-in-seg"/>
791 <xsl:text>: </xsl:text>
794 <xsl:apply-templates/>
798 <xsl:template match="segmentedlist" mode="seglist-table">
799 <xsl:variable name="table-summary">
800 <xsl:call-template name="dbhtml-attribute">
801 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
802 <xsl:with-param name="attribute" select="'table-summary'"/>
806 <xsl:variable name="list-width">
807 <xsl:call-template name="dbhtml-attribute">
808 <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
809 <xsl:with-param name="attribute" select="'list-width'"/>
813 <xsl:apply-templates select="title"/>
816 <xsl:if test="$list-width != ''">
817 <xsl:attribute name="width">
818 <xsl:value-of select="$list-width"/>
821 <xsl:if test="$table-summary != ''">
822 <xsl:attribute name="summary">
823 <xsl:value-of select="$table-summary"/>
827 <tr class="segtitle">
828 <xsl:call-template name="tr.attributes">
829 <xsl:with-param name="row" select="segtitle[1]"/>
830 <xsl:with-param name="rownum" select="1"/>
832 <xsl:apply-templates select="segtitle" mode="seglist-table"/>
836 <xsl:apply-templates select="seglistitem" mode="seglist-table"/>
841 <xsl:template match="segtitle" mode="seglist-table">
842 <th><xsl:apply-templates/></th>
845 <xsl:template match="seglistitem" mode="seglist-table">
846 <xsl:variable name="seglinum">
847 <xsl:number from="segmentedlist" count="seglistitem"/>
850 <tr class="seglistitem">
851 <xsl:call-template name="tr.attributes">
852 <xsl:with-param name="rownum" select="$seglinum + 1"/>
854 <xsl:apply-templates mode="seglist-table"/>
858 <xsl:template match="seg" mode="seglist-table">
859 <td class="seg"><xsl:apply-templates/></td>
862 <xsl:template match="seg[1]" mode="seglist-table">
864 <xsl:call-template name="anchor">
865 <xsl:with-param name="node" select="ancestor::seglistitem"/>
867 <xsl:apply-templates/>
871 <!-- ==================================================================== -->
873 <xsl:template match="calloutlist">
874 <div class="{name(.)}">
875 <xsl:call-template name="anchor"/>
876 <xsl:if test="title">
877 <xsl:call-template name="formal.object.heading"/>
880 <!-- Preserve order of PIs and comments -->
881 <xsl:apply-templates select="*[not(self::callout or self::title or self::titleabbrev)] |comment()[not(preceding-sibling::callout)] |processing-instruction()[not(preceding-sibling::callout)]"/>
884 <xsl:when test="$callout.list.table != 0">
885 <table border="0" summary="Callout list">
886 <xsl:apply-templates select="callout |comment()[preceding-sibling::calllout] |processing-instruction()[preceding-sibling::callout]"/>
890 <dl compact="compact">
891 <xsl:apply-templates select="callout |comment()[preceding-sibling::calllout] |processing-instruction()[preceding-sibling::callout]"/>
898 <xsl:template match="calloutlist/title">
901 <xsl:template match="callout">
903 <xsl:when test="$callout.list.table != 0">
905 <xsl:call-template name="tr.attributes">
906 <xsl:with-param name="rownum">
907 <xsl:number from="calloutlist" count="callout"/>
911 <td width="5%" valign="top" align="left">
912 <xsl:call-template name="anchor"/>
913 <xsl:call-template name="callout.arearefs">
914 <xsl:with-param name="arearefs" select="@arearefs"/>
917 <td valign="top" align="left">
918 <xsl:apply-templates/>
924 <xsl:call-template name="anchor"/>
925 <xsl:call-template name="callout.arearefs">
926 <xsl:with-param name="arearefs" select="@arearefs"/>
929 <dd><xsl:apply-templates/></dd>
934 <xsl:template match="callout/simpara" priority="2">
935 <!-- If a callout contains only a single simpara, don't output
936 the <p> wrapper; this has the effect of creating an li
937 with simple text content. -->
939 <xsl:when test="not(preceding-sibling::*) and not (following-sibling::*)">
940 <xsl:call-template name="anchor"/>
941 <xsl:apply-templates/>
945 <xsl:if test="@role and $para.propagates.style != 0">
946 <xsl:attribute name="class">
947 <xsl:value-of select="@role"/>
951 <xsl:call-template name="anchor"/>
952 <xsl:apply-templates/>
958 <xsl:template name="callout.arearefs">
959 <xsl:param name="arearefs"/>
960 <xsl:if test="$arearefs!=''">
962 <xsl:when test="substring-before($arearefs,' ')=''">
963 <xsl:call-template name="callout.arearef">
964 <xsl:with-param name="arearef" select="$arearefs"/>
968 <xsl:call-template name="callout.arearef">
969 <xsl:with-param name="arearef" select="substring-before($arearefs,' ')"/>
973 <xsl:call-template name="callout.arearefs">
974 <xsl:with-param name="arearefs" select="substring-after($arearefs,' ')"/>
979 <xsl:template name="callout.arearef">
980 <xsl:param name="arearef"/>
981 <xsl:variable name="targets" select="key('id',$arearef)"/>
982 <xsl:variable name="target" select="$targets[1]"/>
984 <xsl:call-template name="check.id.unique">
985 <xsl:with-param name="linkend" select="$arearef"/>
989 <xsl:when test="count($target)=0">
990 <xsl:text>???</xsl:text>
992 <xsl:when test="local-name($target)='co'">
994 <xsl:attribute name="href">
995 <xsl:text>#</xsl:text>
996 <xsl:value-of select="$arearef"/>
998 <xsl:apply-templates select="$target" mode="callout-bug"/>
1000 <xsl:text> </xsl:text>
1002 <xsl:when test="local-name($target)='areaset'">
1003 <xsl:call-template name="callout-bug">
1004 <xsl:with-param name="conum">
1005 <xsl:apply-templates select="$target" mode="conumber"/>
1007 </xsl:call-template>
1009 <xsl:when test="local-name($target)='area'">
1011 <xsl:when test="$target/parent::areaset">
1012 <xsl:call-template name="callout-bug">
1013 <xsl:with-param name="conum">
1014 <xsl:apply-templates select="$target/parent::areaset" mode="conumber"/>
1016 </xsl:call-template>
1019 <xsl:call-template name="callout-bug">
1020 <xsl:with-param name="conum">
1021 <xsl:apply-templates select="$target" mode="conumber"/>
1023 </xsl:call-template>
1028 <xsl:text>???</xsl:text>
1033 <!-- ==================================================================== -->