2 <!DOCTYPE xsl:stylesheet [
3 <!ENTITY % common.entities SYSTEM "../common/entities.ent">
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:exslt="http://exslt.org/common"
8 extension-element-prefixes="exslt"
9 exclude-result-prefixes="exslt"
12 <!-- ********************************************************************
13 $Id: autoidx.xsl 8399 2009-04-08 07:37:42Z bobstayton $
14 ********************************************************************
16 This file is part of the XSL DocBook Stylesheet distribution.
17 See ../README or http://docbook.sf.net/release/xsl/current/ for
18 copyright and other information.
20 ******************************************************************** -->
22 <!-- ==================================================================== -->
23 <!-- The "basic" method derived from Jeni Tennison's work. -->
24 <!-- The "kosek" method contributed by Jirka Kosek. -->
25 <!-- The "kimber" method contributed by Eliot Kimber of Innodata Isogen. -->
27 <xsl:variable name="kimber.imported" select="0"/>
28 <xsl:variable name="kosek.imported" select="0"/>
30 <xsl:key name="letter"
32 use="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
34 <xsl:key name="primary"
38 <xsl:key name="secondary"
40 use="concat(&primary;, &sep;, &secondary;)"/>
42 <xsl:key name="tertiary"
44 use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
46 <xsl:key name="endofrange"
47 match="indexterm[@class='endofrange']"
50 <xsl:key name="primary-section"
51 match="indexterm[not(secondary) and not(see)]"
52 use="concat(&primary;, &sep;, §ion.id;)"/>
54 <xsl:key name="secondary-section"
55 match="indexterm[not(tertiary) and not(see)]"
56 use="concat(&primary;, &sep;, &secondary;, &sep;, §ion.id;)"/>
58 <xsl:key name="tertiary-section"
59 match="indexterm[not(see)]"
60 use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, §ion.id;)"/>
62 <xsl:key name="see-also"
63 match="indexterm[seealso]"
64 use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso)"/>
67 match="indexterm[see]"
68 use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see)"/>
70 <xsl:key name="sections" match="*[@id or @xml:id]" use="@id|@xml:id"/>
73 <xsl:template name="generate-index">
74 <xsl:param name="scope" select="(ancestor::book|/)[last()]"/>
77 <xsl:when test="$index.method = 'kosek'">
78 <xsl:call-template name="generate-kosek-index">
79 <xsl:with-param name="scope" select="$scope"/>
82 <xsl:when test="$index.method = 'kimber'">
83 <xsl:call-template name="generate-kimber-index">
84 <xsl:with-param name="scope" select="$scope"/>
89 <xsl:call-template name="generate-basic-index">
90 <xsl:with-param name="scope" select="$scope"/>
96 <xsl:template name="generate-basic-index">
97 <xsl:param name="scope" select="NOTANODE"/>
99 <xsl:variable name="role">
100 <xsl:if test="$index.on.role != 0">
101 <xsl:value-of select="@role"/>
105 <xsl:variable name="type">
106 <xsl:if test="$index.on.type != 0">
107 <xsl:value-of select="@type"/>
111 <xsl:variable name="terms"
113 [count(.|key('letter',
114 translate(substring(&primary;, 1, 1),
118 and not(@class = 'endofrange')]"/>
120 <xsl:variable name="alphabetical"
121 select="$terms[contains(concat(&lowercase;, &uppercase;),
122 substring(&primary;, 1, 1))]"/>
124 <xsl:variable name="others" select="$terms[not(contains(concat(&lowercase;,
126 substring(&primary;, 1, 1)))]"/>
128 <xsl:if test="$others">
129 <div class="indexdiv">
131 <xsl:call-template name="gentext">
132 <xsl:with-param name="key" select="'index symbols'"/>
136 <xsl:apply-templates select="$others[count(.|key('primary',
137 &primary;)[&scope;][1]) = 1]"
138 mode="index-symbol-div">
139 <xsl:with-param name="position" select="position()"/>
140 <xsl:with-param name="scope" select="$scope"/>
141 <xsl:with-param name="role" select="$role"/>
142 <xsl:with-param name="type" select="$type"/>
143 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
144 </xsl:apply-templates>
149 <xsl:apply-templates select="$alphabetical[count(.|key('letter',
150 translate(substring(&primary;, 1, 1),
151 &lowercase;,&uppercase;))[&scope;][1]) = 1]"
152 mode="index-div-basic">
153 <xsl:with-param name="position" select="position()"/>
154 <xsl:with-param name="scope" select="$scope"/>
155 <xsl:with-param name="role" select="$role"/>
156 <xsl:with-param name="type" select="$type"/>
157 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
158 </xsl:apply-templates>
162 <!-- This template not used if html/autoidx-kosek.xsl is imported -->
163 <xsl:template name="generate-kosek-index">
164 <xsl:param name="scope" select="NOTANODE"/>
166 <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
167 <xsl:if test="contains($vendor, 'libxslt')">
168 <xsl:message terminate="yes">
169 <xsl:text>ERROR: the 'kosek' index method does not </xsl:text>
170 <xsl:text>work with the xsltproc XSLT processor.</xsl:text>
175 <xsl:if test="$exsl.node.set.available = 0">
176 <xsl:message terminate="yes">
177 <xsl:text>ERROR: the 'kosek' index method requires the </xsl:text>
178 <xsl:text>exslt:node-set() function. Use a processor that </xsl:text>
179 <xsl:text>has it, or use a different index method.</xsl:text>
183 <xsl:if test="$kosek.imported = 0">
184 <xsl:message terminate="yes">
185 <xsl:text>ERROR: the 'kosek' index method requires the
</xsl:text>
186 <xsl:text>kosek index extensions be imported:
</xsl:text>
187 <xsl:text> xsl:import href="html/autoidx-kosek.xsl"</xsl:text>
193 <!-- This template not used if html/autoidx-kimber.xsl is imported -->
194 <xsl:template name="generate-kimber-index">
195 <xsl:param name="scope" select="NOTANODE"/>
197 <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
198 <xsl:if test="not(contains($vendor, 'SAXON '))">
199 <xsl:message terminate="yes">
200 <xsl:text>ERROR: the 'kimber' index method requires the </xsl:text>
201 <xsl:text>Saxon version 6 or 8 XSLT processor.</xsl:text>
205 <xsl:if test="$kimber.imported = 0">
206 <xsl:message terminate="yes">
207 <xsl:text>ERROR: the 'kimber' index method requires the
</xsl:text>
208 <xsl:text>kimber index extensions be imported:
</xsl:text>
209 <xsl:text> xsl:import href="html/autoidx-kimber.xsl"</xsl:text>
215 <xsl:template match="indexterm" mode="index-div-basic">
216 <xsl:param name="scope" select="."/>
217 <xsl:param name="role" select="''"/>
218 <xsl:param name="type" select="''"/>
220 <xsl:variable name="key"
221 select="translate(substring(&primary;, 1, 1),
222 &lowercase;,&uppercase;)"/>
224 <xsl:if test="key('letter', $key)[&scope;]
225 [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
226 <div class="indexdiv">
227 <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
229 <xsl:value-of select="translate($key, &lowercase;, &uppercase;)"/>
233 <xsl:apply-templates select="key('letter', $key)[&scope;]
234 [count(.|key('primary', &primary;)
236 mode="index-primary">
237 <xsl:with-param name="position" select="position()"/>
238 <xsl:with-param name="scope" select="$scope"/>
239 <xsl:with-param name="role" select="$role"/>
240 <xsl:with-param name="type" select="$type"/>
241 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
242 </xsl:apply-templates>
248 <xsl:template match="indexterm" mode="index-symbol-div">
249 <xsl:param name="scope" select="/"/>
250 <xsl:param name="role" select="''"/>
251 <xsl:param name="type" select="''"/>
253 <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),
254 &lowercase;,&uppercase;)"/>
256 <xsl:apply-templates select="key('letter', $key)
257 [&scope;][count(.|key('primary', &primary;)[1]) = 1]"
258 mode="index-primary">
259 <xsl:with-param name="position" select="position()"/>
260 <xsl:with-param name="scope" select="$scope"/>
261 <xsl:with-param name="role" select="$role"/>
262 <xsl:with-param name="type" select="$type"/>
263 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
264 </xsl:apply-templates>
267 <xsl:template match="indexterm" mode="index-primary">
268 <xsl:param name="scope" select="."/>
269 <xsl:param name="role" select="''"/>
270 <xsl:param name="type" select="''"/>
272 <xsl:variable name="key" select="&primary;"/>
273 <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
275 <xsl:for-each select="$refs/primary">
276 <xsl:if test="@id or @xml:id">
277 <a name="{(@id|@xml:id)[1]}"/>
280 <xsl:value-of select="primary"/>
282 <xsl:when test="$index.links.to.section = 1">
283 <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section', concat($key, &sep;, §ion.id;))[&scope;][1])]">
284 <xsl:apply-templates select="." mode="reference">
285 <xsl:with-param name="position" select="position()"/>
286 <xsl:with-param name="scope" select="$scope"/>
287 <xsl:with-param name="role" select="$role"/>
288 <xsl:with-param name="type" select="$type"/>
289 </xsl:apply-templates>
293 <xsl:for-each select="$refs[&scope;]">
294 <xsl:apply-templates select="." mode="reference">
295 <xsl:with-param name="position" select="position()"/>
296 <xsl:with-param name="scope" select="$scope"/>
297 <xsl:with-param name="role" select="$role"/>
298 <xsl:with-param name="type" select="$type"/>
299 </xsl:apply-templates>
304 <xsl:if test="$refs[not(secondary)]/*[self::see]">
305 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &sep;, &sep;, see))[&scope;][1])]"
307 <xsl:with-param name="position" select="position()"/>
308 <xsl:with-param name="scope" select="$scope"/>
309 <xsl:with-param name="role" select="$role"/>
310 <xsl:with-param name="type" select="$type"/>
311 <xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
312 </xsl:apply-templates>
315 <xsl:if test="$refs/secondary or $refs[not(secondary)]/*[self::seealso]">
318 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &sep;, &sep;, seealso))[&scope;][1])]"
319 mode="index-seealso">
320 <xsl:with-param name="position" select="position()"/>
321 <xsl:with-param name="scope" select="$scope"/>
322 <xsl:with-param name="role" select="$role"/>
323 <xsl:with-param name="type" select="$type"/>
324 <xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
325 </xsl:apply-templates>
326 <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]"
327 mode="index-secondary">
328 <xsl:with-param name="position" select="position()"/>
329 <xsl:with-param name="scope" select="$scope"/>
330 <xsl:with-param name="role" select="$role"/>
331 <xsl:with-param name="type" select="$type"/>
332 <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
333 </xsl:apply-templates>
339 <xsl:template match="indexterm" mode="index-secondary">
340 <xsl:param name="scope" select="."/>
341 <xsl:param name="role" select="''"/>
342 <xsl:param name="type" select="''"/>
344 <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
345 <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
347 <xsl:for-each select="$refs/secondary">
348 <xsl:if test="@id or @xml:id">
349 <a name="{(@id|@xml:id)[1]}"/>
352 <xsl:value-of select="secondary"/>
354 <xsl:when test="$index.links.to.section = 1">
355 <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section', concat($key, &sep;, §ion.id;))[&scope;][1])]">
356 <xsl:apply-templates select="." mode="reference">
357 <xsl:with-param name="position" select="position()"/>
358 <xsl:with-param name="scope" select="$scope"/>
359 <xsl:with-param name="role" select="$role"/>
360 <xsl:with-param name="type" select="$type"/>
361 </xsl:apply-templates>
365 <xsl:for-each select="$refs[&scope;]">
366 <xsl:apply-templates select="." mode="reference">
367 <xsl:with-param name="position" select="position()"/>
368 <xsl:with-param name="scope" select="$scope"/>
369 <xsl:with-param name="role" select="$role"/>
370 <xsl:with-param name="type" select="$type"/>
371 </xsl:apply-templates>
376 <xsl:if test="$refs[not(tertiary)]/*[self::see]">
377 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, see))[&scope;][1])]"
379 <xsl:with-param name="position" select="position()"/>
380 <xsl:with-param name="scope" select="$scope"/>
381 <xsl:with-param name="role" select="$role"/>
382 <xsl:with-param name="type" select="$type"/>
383 <xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
384 </xsl:apply-templates>
387 <xsl:if test="$refs/tertiary or $refs[not(tertiary)]/*[self::seealso]">
390 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, seealso))[&scope;][1])]"
391 mode="index-seealso">
392 <xsl:with-param name="position" select="position()"/>
393 <xsl:with-param name="scope" select="$scope"/>
394 <xsl:with-param name="role" select="$role"/>
395 <xsl:with-param name="type" select="$type"/>
396 <xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
397 </xsl:apply-templates>
398 <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]"
399 mode="index-tertiary">
400 <xsl:with-param name="position" select="position()"/>
401 <xsl:with-param name="scope" select="$scope"/>
402 <xsl:with-param name="role" select="$role"/>
403 <xsl:with-param name="type" select="$type"/>
404 <xsl:sort select="translate(&tertiary;, &lowercase;, &uppercase;)"/>
405 </xsl:apply-templates>
411 <xsl:template match="indexterm" mode="index-tertiary">
412 <xsl:param name="scope" select="."/>
413 <xsl:param name="role" select="''"/>
414 <xsl:param name="type" select="''"/>
416 <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
417 <xsl:variable name="refs" select="key('tertiary', $key)[&scope;]"/>
419 <xsl:for-each select="$refs/tertiary">
420 <xsl:if test="@id or @xml:id">
421 <a name="{(@id|@xml:id)[1]}"/>
424 <xsl:value-of select="tertiary"/>
426 <xsl:when test="$index.links.to.section = 1">
427 <xsl:for-each select="$refs[generate-id() = generate-id(key('tertiary-section', concat($key, &sep;, §ion.id;))[&scope;][1])]">
428 <xsl:apply-templates select="." mode="reference">
429 <xsl:with-param name="position" select="position()"/>
430 <xsl:with-param name="scope" select="$scope"/>
431 <xsl:with-param name="role" select="$role"/>
432 <xsl:with-param name="type" select="$type"/>
433 </xsl:apply-templates>
437 <xsl:for-each select="$refs[&scope;]">
438 <xsl:apply-templates select="." mode="reference">
439 <xsl:with-param name="position" select="position()"/>
440 <xsl:with-param name="scope" select="$scope"/>
441 <xsl:with-param name="role" select="$role"/>
442 <xsl:with-param name="type" select="$type"/>
443 </xsl:apply-templates>
448 <xsl:if test="$refs/see">
449 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see))[&scope;][1])]"
451 <xsl:with-param name="position" select="position()"/>
452 <xsl:with-param name="scope" select="$scope"/>
453 <xsl:with-param name="role" select="$role"/>
454 <xsl:with-param name="type" select="$type"/>
455 <xsl:sort select="translate(see, &lowercase;, &uppercase;)"/>
456 </xsl:apply-templates>
459 <xsl:if test="$refs/seealso">
462 <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, seealso))[&scope;][1])]"
463 mode="index-seealso">
464 <xsl:with-param name="position" select="position()"/>
465 <xsl:with-param name="scope" select="$scope"/>
466 <xsl:with-param name="role" select="$role"/>
467 <xsl:with-param name="type" select="$type"/>
468 <xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/>
469 </xsl:apply-templates>
475 <xsl:template match="indexterm" mode="reference">
476 <xsl:param name="scope" select="."/>
477 <xsl:param name="role" select="''"/>
478 <xsl:param name="type" select="''"/>
479 <xsl:param name="position"/>
481 <xsl:variable name="term.separator">
482 <xsl:call-template name="index.separator">
483 <xsl:with-param name="key" select="'index.term.separator'"/>
487 <xsl:variable name="number.separator">
488 <xsl:call-template name="index.separator">
489 <xsl:with-param name="key" select="'index.number.separator'"/>
493 <xsl:variable name="range.separator">
494 <xsl:call-template name="index.separator">
495 <xsl:with-param name="key" select="'index.range.separator'"/>
500 <xsl:when test="$position = 1">
501 <xsl:value-of select="$term.separator"/>
504 <xsl:value-of select="$number.separator"/>
509 <xsl:when test="@zone and string(@zone)">
510 <xsl:call-template name="reference">
511 <xsl:with-param name="zones" select="normalize-space(@zone)"/>
512 <xsl:with-param name="position" select="position()"/>
513 <xsl:with-param name="scope" select="$scope"/>
514 <xsl:with-param name="role" select="$role"/>
515 <xsl:with-param name="type" select="$type"/>
520 <xsl:apply-templates select="." mode="class.attribute"/>
521 <xsl:variable name="title">
523 <xsl:when test="§ion;/titleabbrev and $index.prefer.titleabbrev != 0">
524 <xsl:apply-templates select="§ion;" mode="titleabbrev.markup"/>
527 <xsl:apply-templates select="§ion;" mode="title.markup"/>
532 <xsl:attribute name="href">
534 <xsl:when test="$index.links.to.section = 1">
535 <xsl:call-template name="href.target">
536 <xsl:with-param name="object" select="§ion;"/>
537 <xsl:with-param name="context" select="//index[&scope;][1]"/>
541 <xsl:call-template name="href.target">
542 <xsl:with-param name="object" select="."/>
543 <xsl:with-param name="context" select="//index[&scope;][1]"/>
550 <xsl:value-of select="$title"/> <!-- text only -->
553 <xsl:variable name="id" select="(@id|@xml:id)[1]"/>
554 <xsl:if test="key('endofrange', $id)[&scope;]">
555 <xsl:apply-templates select="key('endofrange', $id)[&scope;][last()]"
557 <xsl:with-param name="position" select="position()"/>
558 <xsl:with-param name="scope" select="$scope"/>
559 <xsl:with-param name="role" select="$role"/>
560 <xsl:with-param name="type" select="$type"/>
561 <xsl:with-param name="separator" select="$range.separator"/>
562 </xsl:apply-templates>
568 <xsl:template name="reference">
569 <xsl:param name="scope" select="."/>
570 <xsl:param name="role" select="''"/>
571 <xsl:param name="type" select="''"/>
572 <xsl:param name="zones"/>
575 <xsl:when test="contains($zones, ' ')">
576 <xsl:variable name="zone" select="substring-before($zones, ' ')"/>
577 <xsl:variable name="target" select="key('sections', $zone)"/>
580 <xsl:apply-templates select="." mode="class.attribute"/>
581 <xsl:attribute name="href">
582 <xsl:call-template name="href.target">
583 <xsl:with-param name="object" select="$target[1]"/>
584 <xsl:with-param name="context" select="//index[&scope;][1]"/>
587 <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
589 <xsl:text>, </xsl:text>
590 <xsl:call-template name="reference">
591 <xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
592 <xsl:with-param name="position" select="position()"/>
593 <xsl:with-param name="scope" select="$scope"/>
594 <xsl:with-param name="role" select="$role"/>
595 <xsl:with-param name="type" select="$type"/>
599 <xsl:variable name="zone" select="$zones"/>
600 <xsl:variable name="target" select="key('sections', $zone)"/>
603 <xsl:apply-templates select="." mode="class.attribute"/>
604 <xsl:attribute name="href">
605 <xsl:call-template name="href.target">
606 <xsl:with-param name="object" select="$target[1]"/>
607 <xsl:with-param name="context" select="//index[&scope;][1]"/>
610 <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
616 <xsl:template match="indexterm" mode="index-see">
617 <xsl:param name="scope" select="."/>
618 <xsl:param name="role" select="''"/>
619 <xsl:param name="type" select="''"/>
621 <xsl:text> (</xsl:text>
622 <xsl:call-template name="gentext">
623 <xsl:with-param name="key" select="'see'"/>
625 <xsl:text> </xsl:text>
626 <xsl:value-of select="see"/>
627 <xsl:text>)</xsl:text>
630 <xsl:template match="indexterm" mode="index-seealso">
631 <xsl:param name="scope" select="."/>
632 <xsl:param name="role" select="''"/>
633 <xsl:param name="type" select="''"/>
635 <xsl:for-each select="seealso">
636 <xsl:sort select="translate(., &lowercase;, &uppercase;)"/>
638 <xsl:text>(</xsl:text>
639 <xsl:call-template name="gentext">
640 <xsl:with-param name="key" select="'seealso'"/>
642 <xsl:text> </xsl:text>
643 <xsl:value-of select="."/>
644 <xsl:text>)</xsl:text>
649 <xsl:template match="*" mode="index-title-content">
650 <xsl:variable name="title">
651 <xsl:apply-templates select="§ion;" mode="title.markup"/>
654 <xsl:value-of select="$title"/>
657 <xsl:template name="index.separator">
658 <xsl:param name="key" select="''"/>
659 <xsl:param name="lang">
660 <xsl:call-template name="l10n.language"/>
664 <xsl:when test="$key = 'index.term.separator'">
666 <!-- Use the override if not blank -->
667 <xsl:when test="$index.term.separator != ''">
668 <xsl:copy-of select="$index.term.separator"/>
671 <xsl:call-template name="gentext.template">
672 <xsl:with-param name="lang" select="$lang"/>
673 <xsl:with-param name="context">index</xsl:with-param>
674 <xsl:with-param name="name">term-separator</xsl:with-param>
679 <xsl:when test="$key = 'index.number.separator'">
681 <!-- Use the override if not blank -->
682 <xsl:when test="$index.number.separator != ''">
683 <xsl:copy-of select="$index.number.separator"/>
686 <xsl:call-template name="gentext.template">
687 <xsl:with-param name="lang" select="$lang"/>
688 <xsl:with-param name="context">index</xsl:with-param>
689 <xsl:with-param name="name">number-separator</xsl:with-param>
694 <xsl:when test="$key = 'index.range.separator'">
696 <!-- Use the override if not blank -->
697 <xsl:when test="$index.range.separator != ''">
698 <xsl:copy-of select="$index.range.separator"/>
701 <xsl:call-template name="gentext.template">
702 <xsl:with-param name="lang" select="$lang"/>
703 <xsl:with-param name="context">index</xsl:with-param>
704 <xsl:with-param name="name">range-separator</xsl:with-param>