r8191 - branches/new-xsl/docbook-xsl-snapshot/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu Jul 5 11:56:40 PDT 2007


Author: manuel
Date: 2007-07-05 12:56:40 -0600 (Thu, 05 Jul 2007)
New Revision: 8191

Removed:
   branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kimber.xsl
   branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kosek.xsl
Modified:
   branches/new-xsl/docbook-xsl-snapshot/common/l10n.xml
Log:
Cleaned common directory.

Deleted: branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kimber.xsl
===================================================================
--- branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kimber.xsl	2007-07-05 18:26:25 UTC (rev 8190)
+++ branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kimber.xsl	2007-07-05 18:56:40 UTC (rev 8191)
@@ -1,43 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE xsl:stylesheet [
-<!ENTITY primary   'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
-<!-- Documents using the kimber index method must have a lang attribute -->
-<!-- Only one of these should be present in the entity -->
-
-<!ENTITY lang 'concat(/*/@lang, /*/@xml:lang)'>
-]>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version="1.0"
-                xmlns:k="java:com.isogen.saxoni18n.Saxoni18nService"
-                exclude-result-prefixes="k">
-
-<!-- ********************************************************************
-     $Id$
-     ********************************************************************
-
-     This file is part of the DocBook XSL Stylesheet distribution.
-     See ../README or http://docbook.sf.net/ for copyright
-     copyright and other information.
-
-     ******************************************************************** -->
-
-<xsl:param name="kimber.imported">
-  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-  <xsl:choose>
-    <xsl:when test="not(contains($vendor, 'SAXON '))">
-      <xsl:message terminate="yes">
-        <xsl:text>ERROR: the 'kimber' index method requires the </xsl:text>
-        <xsl:text>Saxon version 6 or 8 XSLT processor.</xsl:text>
-      </xsl:message>
-    </xsl:when>
-    <xsl:otherwise>1</xsl:otherwise>
-  </xsl:choose>
-</xsl:param>
-
-
-<!-- The following key used in the kimber indexing method. -->
-<xsl:key name="k-group"
-         match="indexterm"
-         use="k:getIndexGroupKey(⟨, &primary;)"/>
-
-</xsl:stylesheet>

Deleted: branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kosek.xsl
===================================================================
--- branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kosek.xsl	2007-07-05 18:26:25 UTC (rev 8190)
+++ branches/new-xsl/docbook-xsl-snapshot/common/autoidx-kosek.xsl	2007-07-05 18:56:40 UTC (rev 8191)
@@ -1,150 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE xsl:stylesheet [
-<!ENTITY primary   'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
-
-]>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version="1.0"
-                xmlns:func="http://exslt.org/functions"
-                xmlns:exslt="http://exslt.org/common"
-                xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
-                xmlns:fo="http://www.w3.org/1999/XSL/Format"
-                extension-element-prefixes="func exslt"
-                exclude-result-prefixes="func exslt i l"
-                xmlns:i="urn:cz-kosek:functions:index">
-
-<!-- ********************************************************************
-     $Id$
-     ********************************************************************
-
-     This file is part of the DocBook XSL Stylesheet distribution.
-     See ../README or http://docbook.sf.net/ for copyright
-     copyright and other information.
-
-     ******************************************************************** -->
-
-<xsl:param name="kosek.imported">
-  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
-  <xsl:choose>
-    <xsl:when test="contains($vendor, 'libxslt')">
-      <xsl:message terminate="yes">
-        <xsl:text>ERROR: the 'kosek' index method does not </xsl:text>
-        <xsl:text>work with the xsltproc XSLT processor.</xsl:text>
-      </xsl:message>
-    </xsl:when>
-    <xsl:otherwise>1</xsl:otherwise>
-  </xsl:choose>
-</xsl:param>
-
-<!-- Returns index group code for given term  -->
-<func:function name="i:group-index">
-  <xsl:param name="term"/>
-  
-  <xsl:variable name="letters-rtf">
-    <xsl:variable name="lang">
-      <xsl:call-template name="l10n.language"/>
-    </xsl:variable>
-    
-    <xsl:variable name="local.l10n.letters"
-      select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/>
-    
-    <xsl:variable name="l10n.letters"
-      select="($l10n.xml/l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/>
-    
-    <xsl:choose>
-      <xsl:when test="count($local.l10n.letters) > 0">
-        <xsl:copy-of select="$local.l10n.letters"/>
-      </xsl:when>
-      <xsl:when test="count($l10n.letters) > 0">
-        <xsl:copy-of select="$l10n.letters"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:message>
-          <xsl:text>No "</xsl:text>
-          <xsl:value-of select="$lang"/>
-          <xsl:text>" localization of index grouping letters exists</xsl:text>
-          <xsl:choose>
-            <xsl:when test="$lang = 'en'">
-              <xsl:text>.</xsl:text>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:text>; using "en".</xsl:text>
-            </xsl:otherwise>
-          </xsl:choose>
-        </xsl:message>
-        
-        <xsl:copy-of select="($l10n.xml/l:i18n/l:l10n[@language='en']/l:letters)[1]"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
-  
-  <xsl:variable name="letters" select="exslt:node-set($letters-rtf)/*"/>
-  
-  <xsl:variable name="long-letter-index" select="$letters/l:l[. = substring($term,1,2)]/@i"/>
-  <xsl:variable name="short-letter-index" select="$letters/l:l[. = substring($term,1,1)]/@i"/>
-  <xsl:variable name="letter-index">
-    <xsl:choose>
-      <xsl:when test="$long-letter-index">
-        <xsl:value-of select="$long-letter-index"/>
-      </xsl:when>
-      <xsl:when test="$short-letter-index">
-        <xsl:value-of select="$short-letter-index"/>
-      </xsl:when>
-      <xsl:otherwise>0</xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
-  <func:result select="number($letter-index)"/>
-</func:function>
-
-<!-- Return index group letter for given group code -->
-<func:function name="i:group-letter">
-  <xsl:param name="index"/>
-
-  <xsl:variable name="letters-rtf">
-    <xsl:variable name="lang">
-      <xsl:call-template name="l10n.language"/>
-    </xsl:variable>
-    
-    <xsl:variable name="local.l10n.letters"
-      select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/>
-    
-    <xsl:variable name="l10n.letters"
-      select="($l10n.xml/l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/>
-    
-    <xsl:choose>
-      <xsl:when test="count($local.l10n.letters) > 0">
-        <xsl:copy-of select="$local.l10n.letters"/>
-      </xsl:when>
-      <xsl:when test="count($l10n.letters) > 0">
-        <xsl:copy-of select="$l10n.letters"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:message>
-          <xsl:text>No "</xsl:text>
-          <xsl:value-of select="$lang"/>
-          <xsl:text>" localization of index grouping letters exists</xsl:text>
-          <xsl:choose>
-            <xsl:when test="$lang = 'en'">
-              <xsl:text>.</xsl:text>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:text>; using "en".</xsl:text>
-            </xsl:otherwise>
-          </xsl:choose>
-        </xsl:message>
-        
-        <xsl:copy-of select="($l10n.xml/l:i18n/l:l10n[@language='en']/l:letters)[1]"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
-  
-  <xsl:variable name="letters" select="exslt:node-set($letters-rtf)/*"/>
-  
-  <func:result select="$letters/l:l[@i=$index][1]"/>
-</func:function>
-
-<xsl:key name="group-code"
-         match="indexterm"
-         use="i:group-index(&primary;)"/>
-
-</xsl:stylesheet>

Modified: branches/new-xsl/docbook-xsl-snapshot/common/l10n.xml
===================================================================
--- branches/new-xsl/docbook-xsl-snapshot/common/l10n.xml	2007-07-05 18:26:25 UTC (rev 8190)
+++ branches/new-xsl/docbook-xsl-snapshot/common/l10n.xml	2007-07-05 18:56:40 UTC (rev 8191)
@@ -1,125 +1,19 @@
 <?xml version='1.0'?>
 <!DOCTYPE l:i18n SYSTEM "l10n.dtd" [
-<!ENTITY af SYSTEM "af.xml">
-<!ENTITY am SYSTEM "am.xml">
-<!ENTITY ar SYSTEM "ar.xml">
-<!ENTITY az SYSTEM "az.xml">
-<!ENTITY bg SYSTEM "bg.xml">
-<!ENTITY bn SYSTEM "bn.xml">
-<!ENTITY bs SYSTEM "bs.xml">
-<!ENTITY ca SYSTEM "ca.xml">
-<!ENTITY cs SYSTEM "cs.xml">
-<!ENTITY cy SYSTEM "cy.xml">
-<!ENTITY da SYSTEM "da.xml">
 <!ENTITY de SYSTEM "de.xml">
-<!ENTITY el SYSTEM "el.xml">
 <!ENTITY en SYSTEM "en.xml">
-<!ENTITY eo SYSTEM "eo.xml">
 <!ENTITY es SYSTEM "es.xml">
-<!ENTITY et SYSTEM "et.xml">
-<!ENTITY eu SYSTEM "eu.xml">
-<!ENTITY fa SYSTEM "fa.xml">
-<!ENTITY fi SYSTEM "fi.xml">
 <!ENTITY fr SYSTEM "fr.xml">
-<!ENTITY ga SYSTEM "ga.xml">
-<!ENTITY gu SYSTEM "gu.xml">
-<!ENTITY he SYSTEM "he.xml">
-<!ENTITY hi SYSTEM "hi.xml">
-<!ENTITY hr SYSTEM "hr.xml">
-<!ENTITY hu SYSTEM "hu.xml">
-<!ENTITY id SYSTEM "id.xml">
 <!ENTITY it SYSTEM "it.xml">
-<!ENTITY ja SYSTEM "ja.xml">
-<!ENTITY kn SYSTEM "kn.xml">
-<!ENTITY ko SYSTEM "ko.xml">
-<!ENTITY la SYSTEM "la.xml">
-<!ENTITY lit SYSTEM "lt.xml">
-<!ENTITY mn SYSTEM "mn.xml">
-<!ENTITY nl SYSTEM "nl.xml">
-<!ENTITY nn SYSTEM "nn.xml">
-<!ENTITY no SYSTEM "no.xml">
-<!ENTITY or SYSTEM "or.xml">
-<!ENTITY pa SYSTEM "pa.xml">
-<!ENTITY pl SYSTEM "pl.xml">
-<!ENTITY pt SYSTEM "pt.xml">
-<!ENTITY pt_br SYSTEM "pt_br.xml">
-<!ENTITY ro SYSTEM "ro.xml">
-<!ENTITY ru SYSTEM "ru.xml">
-<!ENTITY sk SYSTEM "sk.xml">
-<!ENTITY sl SYSTEM "sl.xml">
-<!ENTITY sq SYSTEM "sq.xml">
-<!ENTITY sr SYSTEM "sr.xml">
-<!ENTITY sr_Latn SYSTEM "sr_Latn.xml">
-<!ENTITY sv SYSTEM "sv.xml">
-<!ENTITY ta SYSTEM "ta.xml">
-<!ENTITY th SYSTEM "th.xml">
-<!ENTITY tl SYSTEM "tl.xml">
-<!ENTITY tr SYSTEM "tr.xml">
-<!ENTITY uk SYSTEM "uk.xml">
-<!ENTITY vi SYSTEM "vi.xml">
-<!ENTITY xh SYSTEM "xh.xml">
 <!ENTITY zh_cn SYSTEM "zh_cn.xml">
 <!ENTITY zh_tw SYSTEM "zh_tw.xml">
 ]>
 <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
-⁡
-&am;
-&ar;
-&az;
-&bg;
-&bn;
-&bs;
-&ca;
-&cs;
-&cy;
-&da;
 &de;
-⪙
 &en;
-&eo;
 &es;
-&et;
-&eu;
-&fa;
-&fi;
 &fr;
-&ga;
-&gu;
-&he;
-&hi;
-&hr;
-&hu;
-&id;
 ⁢
-&ja;
-&kn;
-&ko;
-&la;
-&lit;
-&mn;
-&nl;
-&nn;
-&no;
-∨
-&pa;
-&pl;
-&pt;
-&pt_br;
-&ro;
-&ru;
-&sk;
-&sl;
-&sq;
-&sr;
-&sr_Latn;
-&sv;
-&ta;
-&th;
-&tl;
-&tr;
-&uk;
-&vi;
-&xh;
 &zh_cn;
 &zh_tw;
 </l:i18n>




More information about the lfs-book mailing list