<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="configuration" page="configuration-file" subpage="config-collations"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: The &lt;collations&gt; element</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: The &lt;collations&gt; element"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>The &lt;collations&gt; element</h1>
      <p>The <code>collations</code> element in the configuration file defines a number of collations that can be
preloaded into the configuration. It contains zero or more child <code>collation</code> elements as detailed below.</p>
      <p>Each <code>collation</code> element may have the following attributes:</p>
      <table>
         <thead>
            <tr>
               <td content="para">
                  <p>
                     <b>Attribute</b>
                  </p>
               </td>
               <td content="para">
                  <p>
                     <b>Values</b>
                  </p>
               </td>
               <td content="para">
                  <p>
                     <b>Effect</b>
                  </p>
               </td>
            </tr>
         </thead>
         <tbody>
            <tr>
               <td content="para">
                  <p>uri</p>
               </td>
               <td content="para">
                  <p>The collation URI (mandatory)</p>
               </td>
               <td content="para">
                  <p>An absolute URI used to identify the collation in queries and stylesheets</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>class</p>
               </td>
               <td content="para">
                  <p>Java class implementing Collator, StringCollator, or Comparator</p>
               </td>
               <td content="para">
                  <p>Class used to perform string comparisons</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>lang</p>
               </td>
               <td content="para">
                  <p>Language code, eg. en-US</p>
               </td>
               <td content="para">
                  <p>Language supported by the collation</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>rules</p>
               </td>
               <td content="para">
                  <p>Rules in Java RuleBasedCollator format</p>
               </td>
               <td content="para">
                  <p>Detailed rules for ordering of characters</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>strength</p>
               </td>
               <td content="para">
                  <p>primary|secondary|tertiary|identical</p>
               </td>
               <td content="para">
                  <p>The strength of the collation. A stronger collation takes more details of the character into account, e.g. accents and case</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>ignore-case</p>
               </td>
               <td content="para">
                  <p>yes|no</p>
               </td>
               <td content="para">
                  <p>Yes indicates that upper-case and lower-case are equivalent</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>ignore-modifiers</p>
               </td>
               <td content="para">
                  <p>yes|no</p>
               </td>
               <td content="para">
                  <p>Yes indicates that accents and other modifiers are ignored</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>ignore-symbols</p>
               </td>
               <td content="para">
                  <p>yes|no</p>
               </td>
               <td content="para">
                  <p>Yes indicates that punctuation symbols are ignored (.NET only)</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>ignore-width</p>
               </td>
               <td content="para">
                  <p>yes|mp</p>
               </td>
               <td content="para">
                  <p>Yes indicates that width variations between characters are ignored</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>decomposition</p>
               </td>
               <td content="para">
                  <p>none|standard|full</p>
               </td>
               <td content="para">
                  <p>Determines whether Unicode normalization should be applied to strings before comparison (Java platform only)</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>case-order</p>
               </td>
               <td content="para">
                  <p>upper-first|lower-first|#default</p>
               </td>
               <td content="para">
                  <p>Indicates whether upper-case characters should precede or follow their lower-case equivalents</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>alphanumeric</p>
               </td>
               <td content="para">
                  <p>yes|no</p>
               </td>
               <td content="para">
                  <p>Yes indicates that a sequence of digits within a string is read as a number, for example "test8.xml" precedes "test10.xml"</p>
               </td>
            </tr>
         </tbody>
      </table>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="config-localizations.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>