2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4 exclude-result-prefixes="doc"
7 <!-- ********************************************************************
8 $Id: labels.xsl 9816 2013-09-24 03:35:07Z stilor $
9 ********************************************************************
11 This file is part of the XSL DocBook Stylesheet distribution.
12 See ../README or http://docbook.sf.net/release/xsl/current/ for
13 copyright and other information.
15 ******************************************************************** -->
17 <!-- ==================================================================== -->
21 <doc:mode mode="label.markup" xmlns="">
22 <refpurpose>Provides access to element labels</refpurpose>
23 <refdescription id="label.markup-desc">
24 <para>Processing an element in the
25 <literal role="mode">label.markup</literal> mode produces the
27 <para>Trailing punctuation is not added to the label.
33 Note that this template is applied to parent of the object being
34 referenced, and that object is passed via parameter.
36 <xsl:template match="*" mode="intralabel.punctuation">
37 <xsl:param name="object" select="."/>
39 <xsl:text>.</xsl:text>
42 <xsl:template match="*" mode="label.markup">
43 <xsl:param name="verbose" select="1"/>
44 <xsl:if test="$verbose">
46 <xsl:text>Request for label of unexpected element: </xsl:text>
47 <xsl:value-of select="local-name(.)"/>
52 <xsl:template match="set|book" mode="label.markup">
53 <xsl:if test="@label">
54 <xsl:value-of select="@label"/>
58 <xsl:template match="part" mode="label.markup">
60 <xsl:when test="@label">
61 <xsl:value-of select="@label"/>
63 <xsl:when test="string($part.autolabel) != 0">
64 <xsl:variable name="format">
65 <xsl:call-template name="autolabel.format">
66 <xsl:with-param name="format" select="$part.autolabel"/>
69 <xsl:number from="book" count="part" format="{$format}"/>
74 <xsl:template match="partintro" mode="label.markup">
78 <xsl:template match="preface" mode="label.markup">
80 <xsl:when test="@label">
81 <xsl:value-of select="@label"/>
83 <xsl:when test="string($preface.autolabel) != 0">
84 <xsl:if test="$component.label.includes.part.label != 0 and
86 <xsl:variable name="part.label">
87 <xsl:apply-templates select="ancestor::part"
90 <xsl:if test="$part.label != ''">
91 <xsl:value-of select="$part.label"/>
92 <xsl:apply-templates select="ancestor::part"
93 mode="intralabel.punctuation">
94 <xsl:with-param name="object" select="."/>
95 </xsl:apply-templates>
98 <xsl:variable name="format">
99 <xsl:call-template name="autolabel.format">
100 <xsl:with-param name="format" select="$preface.autolabel"/>
104 <xsl:when test="$label.from.part != 0 and ancestor::part">
105 <xsl:number from="part" count="preface" format="{$format}" level="any"/>
108 <xsl:number from="book" count="preface" format="{$format}" level="any"/>
115 <xsl:template match="chapter" mode="label.markup">
117 <xsl:when test="@label">
118 <xsl:value-of select="@label"/>
120 <xsl:when test="string($chapter.autolabel) != 0">
121 <xsl:if test="$component.label.includes.part.label != 0 and
123 <xsl:variable name="part.label">
124 <xsl:apply-templates select="ancestor::part"
125 mode="label.markup"/>
127 <xsl:if test="$part.label != ''">
128 <xsl:value-of select="$part.label"/>
129 <xsl:apply-templates select="ancestor::part"
130 mode="intralabel.punctuation">
131 <xsl:with-param name="object" select="."/>
132 </xsl:apply-templates>
135 <xsl:variable name="format">
136 <xsl:call-template name="autolabel.format">
137 <xsl:with-param name="format" select="$chapter.autolabel"/>
141 <xsl:when test="$label.from.part != 0 and ancestor::part">
142 <xsl:number from="part" count="chapter" format="{$format}" level="any"/>
145 <xsl:number from="book" count="chapter" format="{$format}" level="any"/>
152 <xsl:template match="appendix" mode="label.markup">
154 <xsl:when test="@label">
155 <xsl:value-of select="@label"/>
157 <xsl:when test="string($appendix.autolabel) != 0">
158 <xsl:if test="$component.label.includes.part.label != 0 and
160 <xsl:variable name="part.label">
161 <xsl:apply-templates select="ancestor::part"
162 mode="label.markup"/>
164 <xsl:if test="$part.label != ''">
165 <xsl:value-of select="$part.label"/>
166 <xsl:apply-templates select="ancestor::part"
167 mode="intralabel.punctuation">
168 <xsl:with-param name="object" select="."/>
169 </xsl:apply-templates>
172 <xsl:variable name="format">
173 <xsl:call-template name="autolabel.format">
174 <xsl:with-param name="format" select="$appendix.autolabel"/>
178 <xsl:when test="$label.from.part != 0 and ancestor::part">
179 <xsl:number from="part" count="appendix" format="{$format}" level="any"/>
182 <xsl:number from="book|article"
183 count="appendix" format="{$format}" level="any"/>
190 <xsl:template match="article" mode="label.markup">
191 <xsl:if test="@label">
192 <xsl:value-of select="@label"/>
196 <xsl:template match="dedication|colophon" mode="label.markup">
197 <xsl:if test="@label">
198 <xsl:value-of select="@label"/>
202 <xsl:template match="reference" mode="label.markup">
204 <xsl:when test="@label">
205 <xsl:value-of select="@label"/>
207 <xsl:when test="string($reference.autolabel) != 0">
208 <xsl:if test="$component.label.includes.part.label != 0 and
210 <xsl:variable name="part.label">
211 <xsl:apply-templates select="ancestor::part"
212 mode="label.markup"/>
214 <xsl:if test="$part.label != ''">
215 <xsl:value-of select="$part.label"/>
216 <xsl:apply-templates select="ancestor::part"
217 mode="intralabel.punctuation">
218 <xsl:with-param name="object" select="."/>
219 </xsl:apply-templates>
222 <xsl:variable name="format">
223 <xsl:call-template name="autolabel.format">
224 <xsl:with-param name="format" select="$reference.autolabel"/>
228 <xsl:when test="$label.from.part != 0 and ancestor::part">
229 <xsl:number from="part" count="reference" format="{$format}" level="any"/>
232 <xsl:number from="book" count="reference" format="{$format}" level="any"/>
239 <xsl:template match="refentry" mode="label.markup">
240 <xsl:if test="@label">
241 <xsl:value-of select="@label"/>
245 <xsl:template match="section" mode="label.markup">
246 <!-- if this is a nested section, label the parent -->
247 <xsl:if test="local-name(..) = 'section'">
248 <xsl:variable name="parent.section.label">
249 <xsl:call-template name="label.this.section">
250 <xsl:with-param name="section" select=".."/>
253 <xsl:if test="$parent.section.label != '0'">
254 <xsl:apply-templates select=".." mode="label.markup"/>
255 <xsl:apply-templates select=".." mode="intralabel.punctuation">
256 <xsl:with-param name="object" select="."/>
257 </xsl:apply-templates>
261 <!-- if the parent is a component, maybe label that too -->
262 <xsl:variable name="parent.is.component">
263 <xsl:call-template name="is.component">
264 <xsl:with-param name="node" select=".."/>
268 <!-- does this section get labelled? -->
269 <xsl:variable name="label">
270 <xsl:call-template name="label.this.section">
271 <xsl:with-param name="section" select="."/>
275 <xsl:if test="$section.label.includes.component.label != 0
276 and $parent.is.component != 0">
277 <xsl:variable name="parent.label">
278 <xsl:apply-templates select=".." mode="label.markup"/>
280 <xsl:if test="$parent.label != ''">
281 <xsl:apply-templates select=".." mode="label.markup"/>
282 <xsl:apply-templates select=".." mode="intralabel.punctuation">
283 <xsl:with-param name="object" select="."/>
284 </xsl:apply-templates>
290 test: <xsl:value-of select="$label"/>, <xsl:number count="section"/>
295 <xsl:when test="@label">
296 <xsl:value-of select="@label"/>
298 <xsl:when test="$label != 0">
299 <xsl:variable name="format">
300 <xsl:call-template name="autolabel.format">
301 <xsl:with-param name="format" select="$section.autolabel"/>
304 <xsl:number format="{$format}" count="section"/>
309 <xsl:template match="sect1" mode="label.markup">
310 <!-- if the parent is a component, maybe label that too -->
311 <xsl:variable name="parent.is.component">
312 <xsl:call-template name="is.component">
313 <xsl:with-param name="node" select=".."/>
317 <xsl:variable name="component.label">
318 <xsl:if test="$section.label.includes.component.label != 0
319 and $parent.is.component != 0">
320 <xsl:variable name="parent.label">
321 <xsl:apply-templates select=".." mode="label.markup"/>
323 <xsl:if test="$parent.label != ''">
324 <xsl:apply-templates select=".." mode="label.markup"/>
325 <xsl:apply-templates select=".." mode="intralabel.punctuation">
326 <xsl:with-param name="object" select="."/>
327 </xsl:apply-templates>
333 <xsl:variable name="is.numbered">
334 <xsl:call-template name="label.this.section"/>
338 <xsl:when test="@label">
339 <xsl:value-of select="@label"/>
341 <xsl:when test="$is.numbered != 0">
342 <xsl:variable name="format">
343 <xsl:call-template name="autolabel.format">
344 <xsl:with-param name="format" select="$section.autolabel"/>
347 <xsl:copy-of select="$component.label"/>
348 <xsl:number format="{$format}" count="sect1"/>
353 <xsl:template match="sect2|sect3|sect4|sect5" mode="label.markup">
354 <!-- label the parent -->
355 <xsl:variable name="parent.section.label">
356 <xsl:call-template name="label.this.section">
357 <xsl:with-param name="section" select=".."/>
360 <xsl:if test="$parent.section.label != '0'">
361 <xsl:apply-templates select=".." mode="label.markup"/>
362 <xsl:apply-templates select=".." mode="intralabel.punctuation">
363 <xsl:with-param name="object" select="."/>
364 </xsl:apply-templates>
367 <xsl:variable name="is.numbered">
368 <xsl:call-template name="label.this.section"/>
372 <xsl:when test="@label">
373 <xsl:value-of select="@label"/>
375 <xsl:when test="$is.numbered != 0">
376 <xsl:variable name="format">
377 <xsl:call-template name="autolabel.format">
378 <xsl:with-param name="format" select="$section.autolabel"/>
382 <xsl:when test="local-name(.) = 'sect2'">
383 <xsl:number format="{$format}" count="sect2"/>
385 <xsl:when test="local-name(.) = 'sect3'">
386 <xsl:number format="{$format}" count="sect3"/>
388 <xsl:when test="local-name(.) = 'sect4'">
389 <xsl:number format="{$format}" count="sect4"/>
391 <xsl:when test="local-name(.) = 'sect5'">
392 <xsl:number format="{$format}" count="sect5"/>
395 <xsl:message>label.markup: this can't happen!</xsl:message>
402 <xsl:template match="bridgehead" mode="label.markup">
403 <!-- bridgeheads are not normally numbered -->
406 <xsl:template match="refsect1" mode="label.markup">
408 <xsl:when test="@label">
409 <xsl:value-of select="@label"/>
411 <xsl:when test="$section.autolabel != 0">
412 <xsl:variable name="format">
413 <xsl:call-template name="autolabel.format">
414 <xsl:with-param name="format" select="$section.autolabel"/>
417 <xsl:number count="refsect1" format="{$format}"/>
422 <xsl:template match="refsect2|refsect3" mode="label.markup">
423 <!-- label the parent -->
424 <xsl:variable name="parent.label">
425 <xsl:apply-templates select=".." mode="label.markup"/>
427 <xsl:if test="$parent.label != ''">
428 <xsl:apply-templates select=".." mode="label.markup"/>
429 <xsl:apply-templates select=".." mode="intralabel.punctuation">
430 <xsl:with-param name="object" select="."/>
431 </xsl:apply-templates>
435 <xsl:when test="@label">
436 <xsl:value-of select="@label"/>
438 <xsl:when test="$section.autolabel != 0">
439 <xsl:variable name="format">
440 <xsl:call-template name="autolabel.format">
441 <xsl:with-param name="format" select="$section.autolabel"/>
445 <xsl:when test="local-name(.) = 'refsect2'">
446 <xsl:number count="refsect2" format="{$format}"/>
449 <xsl:number count="refsect3" format="{$format}"/>
456 <xsl:template match="simplesect" mode="label.markup">
457 <!-- if this is a nested section, label the parent -->
458 <xsl:if test="local-name(..) = 'section'
459 or local-name(..) = 'sect1'
460 or local-name(..) = 'sect2'
461 or local-name(..) = 'sect3'
462 or local-name(..) = 'sect4'
463 or local-name(..) = 'sect5'">
464 <xsl:variable name="parent.section.label">
465 <xsl:apply-templates select=".." mode="label.markup"/>
467 <xsl:if test="$parent.section.label != ''">
468 <xsl:apply-templates select=".." mode="label.markup"/>
469 <xsl:apply-templates select=".." mode="intralabel.punctuation">
470 <xsl:with-param name="object" select="."/>
471 </xsl:apply-templates>
475 <!-- if the parent is a component, maybe label that too -->
476 <xsl:variable name="parent.is.component">
477 <xsl:call-template name="is.component">
478 <xsl:with-param name="node" select=".."/>
482 <!-- does this section get labelled? -->
483 <xsl:variable name="label">
484 <xsl:call-template name="label.this.section">
485 <xsl:with-param name="section" select="."/>
489 <xsl:if test="$section.label.includes.component.label != 0
490 and $parent.is.component != 0">
491 <xsl:variable name="parent.label">
492 <xsl:apply-templates select=".." mode="label.markup"/>
494 <xsl:if test="$parent.label != ''">
495 <xsl:apply-templates select=".." mode="label.markup"/>
496 <xsl:apply-templates select=".." mode="intralabel.punctuation">
497 <xsl:with-param name="object" select="."/>
498 </xsl:apply-templates>
503 <xsl:when test="@label">
504 <xsl:value-of select="@label"/>
506 <xsl:when test="$label != 0">
507 <xsl:variable name="format">
508 <xsl:call-template name="autolabel.format">
509 <xsl:with-param name="format" select="$section.autolabel"/>
512 <xsl:number format="{$format}" count="simplesect"/>
517 <xsl:template match="topic" mode="label.markup">
518 <!-- topics are not numbered by default -->
521 <xsl:template match="qandadiv" mode="label.markup">
522 <xsl:variable name="lparent" select="(ancestor::set
528 |ancestor::simplesect
536 |ancestor::refsect3)[last()]"/>
538 <xsl:variable name="lparent.prefix">
539 <xsl:apply-templates select="$lparent" mode="label.markup"/>
542 <xsl:variable name="prefix">
543 <xsl:if test="$qanda.inherit.numeration != 0">
544 <xsl:if test="$lparent.prefix != ''">
545 <xsl:apply-templates select="$lparent" mode="label.markup"/>
546 <xsl:apply-templates select="$lparent" mode="intralabel.punctuation">
547 <xsl:with-param name="object" select="."/>
548 </xsl:apply-templates>
554 <xsl:when test="$qandadiv.autolabel != 0">
555 <xsl:variable name="format">
556 <xsl:call-template name="autolabel.format">
557 <xsl:with-param name="format" select="$qandadiv.autolabel"/>
560 <xsl:value-of select="$prefix"/>
561 <xsl:number level="multiple" count="qandadiv" format="{$format}"/>
566 <xsl:template match="question|answer" mode="label.markup">
567 <xsl:variable name="lparent" select="(ancestor::set
573 |ancestor::simplesect
581 |ancestor::refsect3)[last()]"/>
583 <xsl:variable name="lparent.prefix">
584 <xsl:apply-templates select="$lparent" mode="label.markup"/>
587 <xsl:variable name="prefix">
588 <xsl:if test="$qanda.inherit.numeration != 0">
590 <xsl:when test="ancestor::qandadiv">
591 <xsl:variable name="div.label">
592 <xsl:apply-templates select="ancestor::qandadiv[1]" mode="label.markup"/>
594 <xsl:if test="string-length($div.label) != 0">
595 <xsl:copy-of select="$div.label"/>
596 <xsl:apply-templates select="ancestor::qandadiv[1]"
597 mode="intralabel.punctuation">
598 <xsl:with-param name="object" select="."/>
599 </xsl:apply-templates>
602 <xsl:when test="$lparent.prefix != ''">
603 <xsl:apply-templates select="$lparent" mode="label.markup"/>
604 <xsl:apply-templates select="$lparent" mode="intralabel.punctuation">
605 <xsl:with-param name="object" select="."/>
606 </xsl:apply-templates>
612 <xsl:variable name="inhlabel"
613 select="ancestor-or-self::qandaset/@defaultlabel[1]"/>
615 <xsl:variable name="deflabel">
617 <xsl:when test="$inhlabel != ''">
618 <xsl:value-of select="$inhlabel"/>
621 <xsl:value-of select="$qanda.defaultlabel"/>
626 <xsl:variable name="label" select="label"/>
629 <xsl:when test="count($label)>0">
630 <xsl:apply-templates select="$label"/>
633 <xsl:when test="$deflabel = 'qanda' and self::question">
634 <xsl:call-template name="gentext">
635 <xsl:with-param name="key" select="'Question'"/>
639 <xsl:when test="$deflabel = 'qanda' and self::answer">
640 <xsl:call-template name="gentext">
641 <xsl:with-param name="key" select="'Answer'"/>
645 <xsl:when test="($deflabel = 'qnumber' or
646 $deflabel = 'qnumberanda') and self::question">
647 <xsl:call-template name="gentext">
648 <xsl:with-param name="key" select="'Question'"/>
650 <xsl:text> </xsl:text>
651 <xsl:value-of select="$prefix"/>
652 <xsl:number level="multiple" count="qandaentry" format="1"/>
655 <xsl:when test="$deflabel = 'qnumberanda' and self::answer">
656 <xsl:call-template name="gentext">
657 <xsl:with-param name="key" select="'Answer'"/>
661 <xsl:when test="$deflabel = 'number' and self::question">
662 <xsl:value-of select="$prefix"/>
663 <xsl:number level="multiple" count="qandaentry" format="1"/>
668 <xsl:template match="bibliography|glossary|
669 qandaset|index|setindex" mode="label.markup">
670 <xsl:if test="@label">
671 <xsl:value-of select="@label"/>
675 <xsl:template match="figure|table|example" mode="label.markup">
676 <xsl:variable name="pchap"
677 select="(ancestor::chapter
679 |ancestor::article[ancestor::book])[last()]"/>
681 <xsl:variable name="prefix">
682 <xsl:if test="count($pchap) > 0">
683 <xsl:apply-templates select="$pchap" mode="label.markup"/>
688 <xsl:when test="@label">
689 <xsl:value-of select="@label"/>
693 <xsl:when test="$prefix != ''">
694 <xsl:apply-templates select="$pchap" mode="label.markup"/>
695 <xsl:apply-templates select="$pchap" mode="intralabel.punctuation">
696 <xsl:with-param name="object" select="."/>
697 </xsl:apply-templates>
698 <xsl:number format="1" from="chapter|appendix" level="any"/>
701 <xsl:number format="1" from="book|article" level="any"/>
708 <xsl:template match="procedure" mode="label.markup">
709 <xsl:variable name="pchap"
710 select="ancestor::chapter
712 |ancestor::article[ancestor::book]"/>
714 <xsl:variable name="prefix">
715 <xsl:if test="count($pchap) > 0">
716 <xsl:apply-templates select="$pchap" mode="label.markup"/>
721 <xsl:when test="@label">
722 <xsl:value-of select="@label"/>
724 <xsl:when test="$formal.procedures = 0">
729 <xsl:when test="count($pchap)>0">
730 <xsl:if test="$prefix != ''">
731 <xsl:apply-templates select="$pchap" mode="label.markup"/>
732 <xsl:apply-templates select="$pchap" mode="intralabel.punctuation">
733 <xsl:with-param name="object" select="."/>
734 </xsl:apply-templates>
736 <xsl:number count="procedure[title|blockinfo/title|info/title]" format="1"
737 from="chapter|appendix" level="any"/>
740 <xsl:number count="procedure[title|blockinfo/title|info/title]" format="1"
741 from="book|article" level="any"/>
748 <xsl:template match="equation" mode="label.markup">
749 <xsl:variable name="pchap"
750 select="ancestor::chapter
752 |ancestor::article[ancestor::book]"/>
754 <xsl:variable name="prefix">
755 <xsl:if test="count($pchap) > 0">
756 <xsl:apply-templates select="$pchap" mode="label.markup"/>
761 <xsl:when test="@label">
762 <xsl:value-of select="@label"/>
766 <xsl:when test="count($pchap)>0">
767 <xsl:if test="$prefix != ''">
768 <xsl:apply-templates select="$pchap" mode="label.markup"/>
769 <xsl:apply-templates select="$pchap" mode="intralabel.punctuation">
770 <xsl:with-param name="object" select="."/>
771 </xsl:apply-templates>
773 <xsl:number format="1" count="equation"
774 from="chapter|appendix" level="any"/>
777 <xsl:number format="1" count="equation"
778 from="book|article" level="any"/>
785 <xsl:template match="orderedlist/listitem" mode="label.markup">
786 <xsl:variable name="numeration">
787 <xsl:call-template name="list.numeration">
788 <xsl:with-param name="node" select="parent::orderedlist"/>
792 <xsl:variable name="type">
794 <xsl:when test="$numeration='arabic'">1</xsl:when>
795 <xsl:when test="$numeration='loweralpha'">a</xsl:when>
796 <xsl:when test="$numeration='lowerroman'">i</xsl:when>
797 <xsl:when test="$numeration='upperalpha'">A</xsl:when>
798 <xsl:when test="$numeration='upperroman'">I</xsl:when>
799 <!-- What!? This should never happen -->
802 <xsl:text>Unexpected numeration: </xsl:text>
803 <xsl:value-of select="$numeration"/>
805 <xsl:value-of select="1."/>
810 <xsl:variable name="item-number">
811 <xsl:call-template name="orderedlist-item-number"/>
814 <xsl:number value="$item-number" format="{$type}"/>
817 <xsl:template match="production" mode="label.markup">
818 <xsl:number count="production" level="any"/>
821 <xsl:template match="abstract" mode="label.markup">
825 <xsl:template match="sidebar" mode="label.markup">
829 <xsl:template match="glossdiv|glosslist" mode="label.markup">
833 <xsl:template match="glossentry" mode="label.markup">
837 <!-- ============================================================ -->
839 <xsl:template name="label.this.section">
840 <xsl:param name="section" select="."/>
842 <xsl:variable name="level">
843 <xsl:call-template name="section.level"/>
847 <!-- bridgeheads are not numbered -->
848 <xsl:when test="$section/self::bridgehead">0</xsl:when>
849 <xsl:when test="$level <= $section.autolabel.max.depth">
850 <xsl:value-of select="$section.autolabel"/>
852 <xsl:otherwise>0</xsl:otherwise>
856 <doc:template name="label.this.section" xmlns="">
857 <refpurpose>Returns true if $section should be labelled</refpurpose>
858 <refdescription id="label.this.section-desc">
859 <para>Returns true if the specified section should be labelled.
860 By default, this template returns zero unless
861 the section level is less than or equal to the value of the
862 <literal>$section.autolabel.max.depth</literal> parameter, in
863 which case it returns
864 <literal>$section.autolabel</literal>.
865 Custom stylesheets may override it to get more selective behavior.</para>
869 <!-- ============================================================ -->
871 <xsl:template name="default.autolabel.format">
872 <xsl:param name="context" select="."/>
874 <xsl:when test="local-name($context) = 'appendix'">
875 <xsl:value-of select="'A'"/>
877 <xsl:when test="local-name($context) = 'part'">
878 <xsl:value-of select="'I'"/>
880 <xsl:otherwise>1</xsl:otherwise>
884 <xsl:template name="autolabel.format">
885 <xsl:param name="context" select="."/>
886 <xsl:param name="format"/>
889 <xsl:when test="string($format) != 0">
891 <xsl:when test="string($format)='arabic' or $format='1'">1</xsl:when>
892 <xsl:when test="$format='loweralpha' or $format='a'">
893 <xsl:value-of select="'a'"/>
895 <xsl:when test="$format='lowerroman' or $format='i'">
896 <xsl:value-of select="'i'"/>
898 <xsl:when test="$format='upperalpha' or $format='A'">
899 <xsl:value-of select="'A'"/>
901 <xsl:when test="$format='upperroman' or $format='I'">
902 <xsl:value-of select="'I'"/>
904 <xsl:when test="$format='arabicindic' or $format='١'">
905 <xsl:value-of select="'١'"/>
909 <xsl:text>Unexpected </xsl:text><xsl:value-of select="local-name(.)"/><xsl:text>.autolabel value: </xsl:text>
910 <xsl:value-of select="$format"/><xsl:text>; using default.</xsl:text>
912 <xsl:call-template name="default.autolabel.format"/>
919 <doc:template name="autolabel.format" xmlns="">
920 <refpurpose>Returns format for autolabel parameters</refpurpose>
921 <refdescription id="autolabel.format-desc">
922 <para>Returns format passed as parameter if non zero. Supported
923 format are 'arabic' or '1', 'loweralpha' or 'a', 'lowerroman' or 'i',
924 'upperlapha' or 'A', 'upperroman' or 'I', 'arabicindic' or '١'.
925 If its not one of these then
926 returns the default format.</para>
930 <!-- ============================================================ -->