Previous topic

Expression definition

Next topic

Message translation

This Page

Lexicon translation

The lexicon translation document defines translation of vocabulary used.

The lexicon translation has the same data levels as lexicon. The lexicon is constructed as a hierarchy of data levels, in which the root level is always simulation. Each data level contains the definitions for its attributes and possibly its sublevel.

An example of the document contents is given below, for a comprehensive description of all the possible content options see the schema document. Data continuation and abbreviated content expressed as …:

The root level tag contains a reference to the schema document which is used to validate the content of the XML document:

<lexicon_translation_table xmlns="http://www.simo-project.org/simo"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.simo-project.org/simo ../schemas/lexicon_translation_table.xsd">

The translation for simulation level. There is not any attributes in simulation level:

<level>
      <name>
         <from>simulation</from>
         <to>
            <lang name="fi">simulointi</lang>
         </to>
      </name>
   </level>

The translation for comp_unit level and attributes on that level:

<level>
      <name>
         <from>comp_unit</from>
         <to>
            <lang name="fi">kuvio</lang>
         </to>
      </name>
      <variables>
         <variable>
            <from>DEVEL_CLASS</from>
            <to>
               <lang name="fi">kehitysluokka</lang>
            </to>
         </variable><variables></level>
</lexicon_translation_table>