Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 133

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<?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-localizations"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: The &lt;localizations&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;localizations&gt; element"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>The &lt;localizations&gt; element</h1>
      <p>The <code>localizations</code> element in the configuration file defines classes used to localize the output
of the <code>xsl:number</code> instruction in XSLT, and the functions <code>format-date()</code>, 
<code>format-time()</code>, and <code>format-dateTime()</code>.</p>
      <p>It has two attributes, <code>defaultLanguage</code> and <code>defaultCountry</code> which provide default values
for the <code>lang</code> attribute/argument and the <code>country</code> argument respectively. If no values are supplied,
the defaults are taken from the default Locale in the Java VM (which in turn will typically depend on operating
system settings).</p>
      <p>The element contains zero or more child <code>localization</code> elements as detailed below.</p>
      <p>Each <code>localization</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>lang</p>
               </td>
               <td content="para">
                  <p>An ISO language code, for example "en" or "fr-CA" (mandatory)</p>
               </td>
               <td content="para">
                  <p>The language to which this localization relates</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>class</p>
               </td>
               <td content="para">
                  <p>The name of a class that implements the interface <code>net.sf.saxon.number.Numberer</code>
                  </p>
               </td>
               <td content="para">
                  <p>The class that performs localization for the specified language</p>
               </td>
            </tr>
            <tr>
               <td content="para">
                  <p>additional attributes</p>
               </td>
               <td content="para">
                  <p>Additional attributes are passed on to a user-specified <code>LocalizationFactory</code>
                  </p>
               </td>
               <td content="para">
                  <p>The meaning of these attributes depends entirely on the <code>LocalizationFactory</code>.</p>
               </td>
            </tr>
         </tbody>
      </table>
      <p>Note that numberers for various European languages (da, de, fr, dr-BE, it, nl, nl-BE, sv) are supplied
in package <code>net.sf.saxon.option.local</code>. In Saxon-PE and Saxon-EE these are compiled into the standard
JAR file, but they are not configured by default. In Saxon-HE they are not built-in to the product, but can be integrated
from the supplied source code in the same way as user-written localizations.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="../config-features.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>