2 <!DOCTYPE xsl:stylesheet [
3 <!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
4 <!-- Documents using the kimber index method must have a lang attribute -->
5 <!-- Only one of these should be present in the entity -->
7 <!ENTITY lang 'concat(/*/@lang, /*/@xml:lang)'>
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 xmlns:k="java:com.isogen.saxoni18n.Saxoni18nService"
12 exclude-result-prefixes="k">
14 <!-- ********************************************************************
15 $Id: autoidx-kimber.xsl 6910 2007-06-28 23:23:30Z xmldoc $
16 ********************************************************************
18 This file is part of the DocBook XSL Stylesheet distribution.
19 See ../README or http://docbook.sf.net/ for copyright
20 copyright and other information.
22 ******************************************************************** -->
24 <xsl:param name="kimber.imported">
25 <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
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>
33 <xsl:otherwise>1</xsl:otherwise>
38 <!-- The following key used in the kimber indexing method. -->
39 <xsl:key name="k-group"
41 use="k:getIndexGroupKey(⟨, &primary;)"/>