autoidx-kimber.xsl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <!ENTITY lang 'concat(/*/@lang, /*/@xml:lang)'>
  8. ]>
  9. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. version="1.0"
  11. xmlns:k="java:com.isogen.saxoni18n.Saxoni18nService"
  12. exclude-result-prefixes="k">
  13. <!-- ********************************************************************
  14. $Id: autoidx-kimber.xsl 8729 2010-07-15 16:43:56Z bobstayton $
  15. ********************************************************************
  16. This file is part of the DocBook XSL Stylesheet distribution.
  17. See ../README or http://docbook.sf.net/ for copyright
  18. copyright and other information.
  19. ******************************************************************** -->
  20. <xsl:param name="kimber.imported">
  21. <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  22. <xsl:choose>
  23. <xsl:when test="not(contains($vendor, 'SAXON '))">
  24. <xsl:message terminate="yes">
  25. <xsl:text>ERROR: the 'kimber' index method requires the </xsl:text>
  26. <xsl:text>Saxon version 6 or 8 XSLT processor.</xsl:text>
  27. </xsl:message>
  28. </xsl:when>
  29. <xsl:otherwise>1</xsl:otherwise>
  30. </xsl:choose>
  31. </xsl:param>
  32. <!-- The following key used in the kimber indexing method. -->
  33. <xsl:key name="k-group"
  34. match="indexterm"
  35. use="k:getIndexGroupKey(&lang;, &primary;)"/>
  36. </xsl:stylesheet>