]> git.lyx.org Git - lyx.git/blob - lib/docbook/common/autoidx-kimber.xsl
Release notes
[lyx.git] / lib / docbook / common / autoidx-kimber.xsl
1 <?xml version="1.0"?>
2 <!DOCTYPE xsl:stylesheet [
3 <!ENTITY % common.entities SYSTEM "entities.ent">
4 %common.entities;
5 <!-- Documents using the kimber index method must have a lang attribute -->
6 <!-- Only one of these should be present in the entity -->
7
8 <!ENTITY lang 'concat(/*/@lang, /*/@xml:lang)'>
9 ]>
10 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11                 xmlns:d="http://docbook.org/ns/docbook"
12                 version="1.0"
13                 xmlns:k="java:com.isogen.saxoni18n.Saxoni18nService"
14                 exclude-result-prefixes="k d">
15
16 <!-- ********************************************************************
17
18      This file is part of the DocBook XSL Stylesheet distribution.
19      See ../README or http://cdn.docbook.org/ for copyright
20      copyright and other information.
21
22      ******************************************************************** -->
23
24 <xsl:param name="kimber.imported">
25   <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
26   <xsl:choose>
27     <xsl:when test="not(contains($vendor, 'SAXON '))">
28       <xsl:message terminate="yes">
29         <xsl:text>ERROR: the 'kimber' index method requires the </xsl:text>
30         <xsl:text>Saxon version 6 or 8 XSLT processor.</xsl:text>
31       </xsl:message>
32     </xsl:when>
33     <xsl:otherwise>1</xsl:otherwise>
34   </xsl:choose>
35 </xsl:param>
36
37
38 <!-- The following key used in the kimber indexing method. -->
39 <xsl:key name="k-group"
40          match="d:indexterm"
41          use="k:getIndexGroupKey(&lang;, &primary;)"/>
42
43 </xsl:stylesheet>