<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "docbook/docbookx.dtd">
<article lang="en-US" status="Committee Specification Draft 03">
  <articleinfo>
    <title>XLIFF Version 2.2. Part 2: Extended</title>

    <releaseinfo role="track">Standards Track Work Product</releaseinfo>

    <productname class="trade">xliff-extended</productname>

    <productnumber>csd03</productnumber>

    <releaseinfo role="OASIS-specification-this-authoritative">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-extended-v2.2-csd03-part2.html</releaseinfo>
    <releaseinfo role="OASIS-specification-this">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-extended-v2.2-csd03-part2.pdf</releaseinfo>
    <releaseinfo role="OASIS-specification-this">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-extended-v2.2-csd03-part2.xml</releaseinfo>

    <releaseinfo role="OASIS-specification-previous-authoritative">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd02/xliff-extended-v2.2-csd02-part2.html</releaseinfo>
    <releaseinfo role="OASIS-specification-previous">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd02/xliff-extended-v2.2-csd02-part2.pdf</releaseinfo>
    <releaseinfo role="OASIS-specification-previous">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd02/xliff-extended-v2.2-csd02-part2.xml</releaseinfo>
    
    <releaseinfo role="OASIS-specification-latest-authoritative">https://docs.oasis-open.org/xliff/xliff-core/v2.2/xliff-extended-v2.2-part2.html</releaseinfo>
    <releaseinfo role="OASIS-specification-latest">https://docs.oasis-open.org/xliff/xliff-core/v2.2/xliff-extended-v2.2-part2.pdf</releaseinfo>
    <releaseinfo role="OASIS-specification-latest">https://docs.oasis-open.org/xliff/xliff-core/v2.2/xliff-extended-v2.2-part2.xml</releaseinfo>

    <releaseinfo role="committee"><ulink url="https://www.oasis-open.org/committees/xliff/">OASIS
        XLIFF TC</ulink></releaseinfo>

    <authorgroup>
      <othercredit role="chair">
        <honorific>Dr</honorific>
        <firstname>Lucía</firstname>
        <surname>Morado Vázquez</surname>
        <affiliation>
          <orgname><ulink url="https://www.unige.ch/en/">University of Geneva</ulink></orgname>
          <address format="linespecific"><email>lucia.morado@unige.ch</email></address>
        </affiliation>
        <email>lucia.morado@unige.ch</email>
      </othercredit>
      <editor>
        <firstname>Rodolfo M.</firstname>
        <surname>Raya</surname>
        <affiliation>
          <orgname><ulink url="https://maxprograms.com">Maxprograms</ulink></orgname>
          <address format="linespecific"><email>rmraya@maxprograms.com</email></address>
        </affiliation>
        <email>rmraya@maxprograms.com</email>
      </editor>
      <editor>
        <honorific>Dr</honorific>
        <firstname>Lucía</firstname>
        <surname>Morado Vázquez</surname>
        <affiliation>
          <orgname><ulink url="https://www.unige.ch/en/">University of Geneva</ulink></orgname>
          <address format="linespecific"><email>lucia.morado@unige.ch</email></address>
        </affiliation>
        <email>lucia.morado@unige.ch</email>
      </editor>
    </authorgroup>

    <pubdate>17 February 2025</pubdate>

    <copyright>
      <year>2025</year>
      <holder>OASIS Open, Inc. All Rights Reserved.</holder>
    </copyright>

    <legalnotice role="additional">
      <title>Additional artifacts</title>

      <para>This prose specification is one component of a Work Product that also includes:</para>

      <itemizedlist spacing="compact">
        <listitem>
          <para>XLIFF Version 2.2. Part 1: Core. <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-core-v2.2-csd03-part1.html">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-core-v2.2-csd03-part1.html</ulink></para>
        </listitem>
        <listitem>
          <para>XLIFF Version 2.2. Part 2: Extended. (this document) <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-extended-v2.2-csd03-part2.html">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-extended-v2.2-csd03-part2.html</ulink></para>
        </listitem>
        <listitem>
          <para>XML schemas: <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/</ulink>
          </para>
        </listitem>
      </itemizedlist>
    </legalnotice>

    <legalnotice role="related">
      <title>Related Work</title>

      <para>This specification replaces or supersedes:</para>

      <itemizedlist spacing="compact">
        <listitem>
          <para><emphasis>XLIFF Version 2.1.</emphasis> 13 February 2018. OASIS Standard. Latest
            Stage: <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html">https://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html</ulink></para>
        </listitem>
      </itemizedlist>

    </legalnotice>

    <legalnotice role="namespaces">
      <title>Declared XML Namespaces</title>

      <itemizedlist spacing="compact">
        <listitem>
          <para>urn:oasis:names:tc:xliff:document:2.2</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:matches:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:glossary:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:fs:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:metadata:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:resourcedata:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:sizerestriction:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:validation:2.0</para>
        </listitem>
        <listitem>
          <para>http://www.w3.org/2005/11/its</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:itsm:2.0</para>
        </listitem>
        <listitem>
          <para>urn:oasis:names:tc:xliff:pgs:1.0</para>
        </listitem>
      </itemizedlist>
    </legalnotice>

    <abstract>
      <para>This document is Part 2 of a multi-part specification which defines Version 2.2 of
        the XML Localisation Interchange File Format (XLIFF). The purpose of this vocabulary is to
        store localizable data and carry it from one step of the localization process to the other,
        while allowing interoperability between and among tools.</para>
    </abstract>

    <legalnotice role="status">
      <title>Status</title>

      <para>This document was last revised or approved by the XLIFF TC on the above date. The level
        of approval is also listed above. Check the "Latest stage" location noted above for possible
        later revisions of this document. Any other numbered Versions and other technical work
        produced by the Technical Committee (TC) are listed at <ulink url="https://groups.oasis-open.org/communities/tc-community-home2?CommunityKey=3d0f1f56-8477-4b53-9b14-018dc7d3eecf">https://groups.oasis-open.org/communities/tc-community-home2?CommunityKey=3d0f1f56-8477-4b53-9b14-018dc7d3eecf</ulink>.</para>

      <para>TC members should send comments on this document to the TC's email list. Others should
        send comments to the TC's public comment list, after subscribing to it by following the
        instructions at <ulink url="https://groups.oasis-open.org/communities/community-home?CommunityKey=f7b70a54-5dd7-4ea9-9d6f-018dce262ff9">https://groups.oasis-open.org/communities/community-home?CommunityKey=f7b70a54-5dd7-4ea9-9d6f-018dce262ff9</ulink></para>

      <para>This document is provided under the <ulink url="https:https://www.oasis-open.org/policies-guidelines/ipr/#RF-Rand">RF on RAND
          Terms</ulink> Mode of the <ulink url="https://www.oasis-open.org/policies-guidelines/ipr/">OASIS IPR Policy</ulink>, the mode chosen when the Technical Committee was established.
        For information on whether any patents have been disclosed that may be essential to
        implementing this document, and any offers of patent licensing terms, please refer to the
        Intellectual Property Rights section of the TC's web page (<ulink url="https://www.oasis-open.org/committees/xliff/ipr.php">https://www.oasis-open.org/committees/xliff/ipr.php</ulink>). </para>

      <para>Note that any machine-readable content (<ulink url="https://www.oasis-open.org/policies-guidelines/tc-process-2017-05-26/#wpComponentsCompLang">Computer Language Definitions</ulink>) declared Normative for this Work Product is
        provided in separate plain text files. In the event of a discrepancy between any such plain
        text file and display content in the Work Product's prose narrative document(s), the content
        in the separate plain text file prevails. Key words: </para>
    </legalnotice>

    <legalnotice role="keywords">
      <title>Key words</title>
      <para>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD
        NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
        interpreted as described in BCP 14 <link linkend="rfc2119">[RFC2119]</link> and <link linkend="rfc8174">[RFC8174]</link> when, and only when, they appear in all capitals, as
        shown here.</para>

    </legalnotice>

    <legalnotice role="citation">
      <title>Citation format</title>
      <para>When referencing this document, the following citation format should be used:</para>
      <para><emphasis role="strong">[XLIFF-2.2-part2]</emphasis></para>
      <para>XLIFF Version 2.2 Part 2: Extended. Edited by Rodolfo M. Raya and Lucía Morado Vázquez
        17 February 2025. OASIS Committee Specification Draft 03. <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-v2.2-part2-extended-csd03.html">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/xliff-v2.2-part2-extended-csd03.html</ulink>.
        Latest stage <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/xliff-v2.2-part2-extended.html">https://docs.oasis-open.org/xliff/xliff-core/v2.2/xliff-v2.2-part2-extended.html</ulink>.
      </para>
    </legalnotice>

    <legalnotice role="notices">
      <title>Notices</title>

      <para>Copyright © OASIS Open 2025. All Rights Reserved.</para>

      <para>Distributed under the terms of the OASIS IPR Policy, [<ulink url="https://www.oasis-open.org/policies-guidelines/ipr/">https://www.oasis-open.org/policies-guidelines/ipr/</ulink>]. For complete copyright
        information please see the full Notices section in an Appendix below.</para>
    </legalnotice>
  </articleinfo>

  <section>
  <title>Introduction</title>

  <para>XLIFF is the <emphasis>XML Localization Interchange File Format</emphasis> designed by a
    group of multilingual content publishers, software providers, localization service providers,
    localization tools providers, and researchers. It is intended to give any multilingual content
    owner a single interchange file format that can be understood by any localization provider,
    using any conformant localization tool. While the primary focus is on being a lossless
    interchange format, usage of XLIFF as a processing format is neither encouraged nor discouraged
    or prohibited.</para>

  <para><emphasis>All text is normative unless otherwise labeled.</emphasis>
  </para>

  <section id="newSinceLast">
    <title>Changes from earlier Versions</title>
    <para>XLIFF 2.2 has two main significant differences from the previous version published (XLIFF
      2.1):</para>

    <orderedlist continuation="restarts" inheritnum="ignore">
      <listitem>
        <para> XLIFF 2.2 is presented in two separate documents:</para>
        <itemizedlist>
          <listitem>
            <para><emphasis>XLIFF Version 2.2. Part 1: Core</emphasis> presents the XLIFF core,
              which is the minimum set of XML elements and attributes required to create a valid
              XLIFF file.</para>
          </listitem>
          <listitem>
            <para><emphasis>XLIFF Version 2.2. Part 2: Extended</emphasis> presents the XLIFF core as
              well as the optional modules that were created to store information about specific
              processes. For example, the <link linkend="candidates">Translation Candidates Module</link> was designed to store
              translation suggestions and their associated metadata.</para>
          </listitem>
        </itemizedlist>

        <para>In previous versions of XLIFF, the specification was always presented in a single
          document. This change in the presentation mode was introduced to produce a simplified
          version (<emphasis>Part 1: Core</emphasis>) of the specification that would be easier to
          use, especially for those agents who are not interested in implementing the optional
          modules.</para>
      </listitem>
      <listitem>
        <para>XLIFF 2.2 includes the new <link linkend="plural_gender_select_module">Plural, Gender, and Select Module</link>, which
          was designed to store information needed to represent and process messages with variants.
          The new module description can be found in the document XLIFF Version 2.2. Part 2:
          Extended.</para>
      </listitem>
    </orderedlist>
    <para>For a detailed list of changes made between version 2.1 and the current version (2.2)
      please see the <link linkend="specChangeTracking">Specification Change Tracking</link> section in Appendix
      D.</para>
    <para>Note that all changes introduced in version 2.2 were designed to maintain compatibility
      with versions 2.0 and 2.1.</para>
  </section>

  <section id="definitions">
    <title>Definition of terms</title>

    <variablelist>

      <varlistentry>
        <term>Agent</term>

        <listitem>
          <para>any application or tool that generates (creates), reads, edits, writes, processes,
            stores, renders or otherwise handles XLIFF documents.</para>
          <para>Agent is the most general application conformance target that subsumes all other
            specialized user agents disregarding whether they are defined in this specification or
            not.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Enrich</term>
        <term>Enriching</term>
        <listitem>
          <para> the process of associating module and extension based metadata and resources with
            the Extracted XLIFF payload </para>
          <itemizedlist>
            <title>Processing Requirements</title>
            <listitem>
              <para>Enriching MAY happen at the time of Extraction. </para>
            </listitem>
          </itemizedlist>
          <note>
            <para>Extractor knowledge of the native format is not assumed while Enriching.</para>
          </note>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Enricher</term>
        <term>Enricher Agent</term>
        <listitem>
          <para>any Agent that performs the Enriching process </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Extract</term>
        <term>Extraction</term>
        <listitem>
          <para>the process of encoding localizable content from a native content or User Interface
            format as XLIFF payload, so that localizable parts of the content in the source language
            are available for translation into the target language along with the necessary context
            information </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Extractor</term>
        <term>Extractor Agent</term>

        <listitem>
          <para>any Agent that performs the Extraction process </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Merge</term>
        <term>Merging</term>

        <listitem>
          <para>the process of importing XLIFF payload back to the originating native format, based
            on the <emphasis>full knowledge</emphasis> of the Extraction mechanism, so that the
            localized content or User Interface strings replace the source language in the native
            format </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Merger</term>
        <term>Merger Agent</term>

        <listitem>
          <para>an Agent that performs the Merge process </para>

          <warning>
            <para> Unless specified otherwise, any Merger is deemed to have the same knowledge of
              the native format as the Extractor throughout the specification. </para>
            <para>Mergers independent of Extractors can succeed, but it is out of scope of this
              specification to specify interoperability for merging back without the full Extractor
              knowledge of the native format. </para>
          </warning>
        </listitem>

      </varlistentry>

      <varlistentry>
        <term>Modify</term>
        <term>Modification</term>
        <listitem>
          <para> the process of changing core and module XLIFF structural and inline elements that
            were previously created by other Writers </para>
          <itemizedlist>
            <title>Processing Requirements</title>
            <listitem>
              <para> XLIFF elements MAY be Modified and Enriched at the same time. </para>
            </listitem>
          </itemizedlist>
          <note>
            <para>Extractor or Enricher knowledge of the native format is not assumed while
              modifying.</para>
          </note>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Modifier</term>
        <term>Modifier Agent</term>

        <listitem>
          <para>an Agent that performs the Modification process </para>

        </listitem>

      </varlistentry>

      <varlistentry>
        <term>Translation</term>
        <term>Translate</term>

        <listitem>
          <para>a rendering of the meaning of the source text, expressed in the target
            language</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Writer</term>
        <term>Writer Agent</term>

        <listitem>
          <para>an Agent that creates, generates, or otherwise writes an XLIFF document for whatever
            purpose, including but not limited to Extractor, Modifier, and Enricher Agents. </para>

          <note>
            <para> Since XLIFF is intended as an exchange format rather than a processing format,
              many applications will need to generate XLIFF documents from their internal processing
              formats, even in cases when they are processing XLIFF documents created by another
              Extractor. </para>
          </note>
        </listitem>


      </varlistentry>
    </variablelist>
  </section>

  <section id="keyconcepts">
    <title>Key concepts</title>

    <variablelist>
      <varlistentry>
        <term>XLIFF Core</term>

        <listitem>
          <para>The core of XLIFF 2.2 consists of the minimum set of XML elements and
            attributes required to (a) prepare a document that contains text extracted from one or
            more files for localization, (b) allow it to be completed with the translation of the
            extracted text, and (c) allow the generation of translated versions of the original
            document.</para>

          <para>The XML namespace that corresponds to the core subset of XLIFF 2.2 is
              <code>"urn:oasis:names:tc:xliff:document:2.2"</code>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>XLIFF-defined (elements and attributes)</term>
        <listitem>
          <para>The following is the list of allowed schema URI prefixes for XLIFF-defined elements
            and attributes:</para>
          <simplelist type="vert">
            <member><code>urn:oasis:names:tc:xliff:</code></member>
            <member><code>http://www.w3.org/2005/11/its</code></member>
          </simplelist>

          <para>However, the following namespaces are NOT considered XLIFF-defined for the purposes
            of the XLIFF 2.2 specification:</para>
          <simplelist type="vert">
            <member><code>urn:oasis:names:tc:xliff:document:1.0</code></member>
            <member><code>urn:oasis:names:tc:xliff:document:1.1</code></member>
            <member><code>urn:oasis:names:tc:xliff:document:1.2</code></member>
          </simplelist>
          <para>Elements and attributes from other namespaces are not XLIFF-defined.</para>
        </listitem>


      </varlistentry>

      <varlistentry>
        <term>XLIFF Document</term>

        <listitem>
          <para>Any XML document that declares the namespace
              <code>"urn:oasis:names:tc:xliff:document:2.2"</code> as its main namespace, has
              <link linkend="xliff"><code>&lt;xliff></code></link> as the root element and complies with the XML
            Schemas and the declared Constraints that are part of this specification.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>XLIFF Module</term>

        <listitem>
          <para>A module is an OPTIONAL set of XML elements and attributes that stores information
            about a process applied to an XLIFF Document and the data incorporated into the document
            as result of that process.</para>

          <para>Each official module defined for XLIFF 2.2 has its grammar defined in an
            independent XML Schema with a separate namespace.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </section>


</section>
  <section id="fragid">
  <title>Fragment Identification</title>
  <para>Because XLIFF documents do not follow the usual behavior of XML documents when it comes to
    element identifiers, this specification defines how Agents MUST interpret the fragment
    identifiers in IRIs pointing to XLIFF documents.</para>
  <note>
    <para>Note that some identifiers may change during the localization process. For example <link linkend="data"><code>&lt;data></code></link>
      elements may be re-grouped or not depending on how tools treat identical original data.</para>
  </note>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>A fragment identifier MUST match the following format:</para>
      <programlisting format="linespecific">
&lt;expression>      ::= "#" ["/"] &lt;selector>
                      {&lt;selectorSeparator> &lt;selector>}
&lt;selector>        ::= [&lt;prefix> &lt;prefixSeparator>] &lt;id>
&lt;prefix>          ::= NMTOKEN
&lt;id>              ::= NMTOKEN
&lt;prefixSeparator> ::= "="
&lt;selectorSeparator>  ::= "/"</programlisting>
    </listitem>
    <listitem>
      <para>There MUST NOT be two identical prefixes in the expression.</para>
    </listitem>
    <listitem>
      <para>When used, the following selectors MUST be declared in this order: file selector, group
        selector and unit selector.</para>
    </listitem>
    <listitem>
      <para>The selectors for modules or extensions, <link linkend="note"><code>&lt;note></code></link>, <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> or source inline elements, target inline
        elements and <link linkend="data"><code>&lt;data></code></link> have the following constraints:</para>
      <itemizedlist>
        <listitem>
          <para>Only one of them MAY be used in the expression.</para>
        </listitem>
        <listitem>
          <para>The one used MUST be the last selector of the expression.</para>
        </listitem>
      </itemizedlist>
    </listitem>
  </itemizedlist>
  <warning>
    <para>Note that due to the above Constraints, referencing fragments using third party namespaces
      within Modules or extensions (including but not limited to XLIFF Core or the Metadata Module)
      is not possible. This is to restrict the complexity of the fragment identification mechanism,
      as it would otherwise have potentially unlimited depth.</para>
  </warning>
  <section>
    <title>Selectors for Core Elements</title>
    <itemizedlist>
      <listitem>
        <para>The prefix <code>f</code> indicates a <link linkend="file"><code>&lt;file></code></link> id and the value of that id is unique among all <link linkend="file"><code>&lt;file></code></link>
          <code>id</code> attribute values within the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
      </listitem>

      <listitem>
        <para>The prefix <code>g</code> indicates a <link linkend="group"><code>&lt;group></code></link> id and the value of that id is unique among all
            <link linkend="group"><code>&lt;group></code></link>
          <code>id</code> attribute values within the enclosing <link linkend="file"><code>&lt;file></code></link> element.</para>
      </listitem>

      <listitem>
        <para>The prefix <code>u</code> indicates a <link linkend="unit"><code>&lt;unit></code></link> id and the value of that id is unique among all
            <link linkend="unit"><code>&lt;unit></code></link>
          <code>id</code> attribute values within the enclosing <link linkend="file"><code>&lt;file></code></link> element.</para>
      </listitem>

      <listitem>
        <para>The prefix <code>n</code> indicates a <link linkend="note"><code>&lt;note></code></link> id and the value of that id is unique among all
            <link linkend="note"><code>&lt;note></code></link>
          <code>id</code> attribute values within the immediate enclosing <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, or <link linkend="unit"><code>&lt;unit></code></link> element.</para>
      </listitem>

      <listitem>
        <para>The prefix <code>d</code> indicates a <link linkend="data"><code>&lt;data></code></link> id and the value of that id is unique among all <link linkend="data"><code>&lt;data></code></link>
          <code>id</code> attribute values within the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
      </listitem>

      <listitem>
        <para>The prefix <code>t</code> indicates an id for an inline element in the <link linkend="target"><code>&lt;target></code></link> element and the value of that id is unique within
          the enclosing <link linkend="unit"><code>&lt;unit></code></link> element (with the exception of the matching inline
          elements in the <link linkend="source"><code>&lt;source></code></link>).</para>
      </listitem>

      <listitem>
        <para>No prefix indicates an id for a <link linkend="segment"><code>&lt;segment></code></link> or an <link linkend="ignorable"><code>&lt;ignorable></code></link> or an inline element in the <link linkend="source"><code>&lt;source></code></link> element and the value of that id is unique within
          the enclosing <link linkend="unit"><code>&lt;unit></code></link> element (with the exception of the matching inline
          elements in the <link linkend="target"><code>&lt;target></code></link>).</para>
      </listitem>
    </itemizedlist>
  </section>
  <section id="fragid-modandext">
    <title>Selectors for Modules and Extensions</title>
    <para>A selector for a module or an extension uses a registered prefix and the value of that id
      is unique within the immediate enclosing <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    <itemizedlist>
      <title>Constraints</title>
      <listitem>
        <para>The prefix of a module or an extension MUST be an NMTOKEN longer than 1 character and
          MUST be defined in the module or extension specification.</para>
      </listitem>
      <listitem>
        <para>The prefix of a module or an extension MUST be registered with the XLIFF TC.</para>
      </listitem>
      <listitem>
        <para>A given module or extension namespace URI MUST be associated with a single
          prefix.</para>
      </listitem>
      <listitem>
        <para>A prefix MAY be associated with more than one namespace URI (to allow for example
          different versions of a given module or extension to use the same prefix).</para>
      </listitem>
    </itemizedlist>
    <para>See also the <link linkend="ext-constraints">constraints related to how IDs need to be specified in extensions</link> (which applies
      for modules as well).</para>
  </section>
  <section>
    <title>Relative References</title>
    <para>Fragment identifiers that do not start with a character <code>/</code> (U+002F) are
      relative to their location in the document, or to the document being processed.</para>
    <para>Any unit, group or file selector missing to resolve the relative reference is obtained
      from the immediate enclosing unit, group or file elements.</para>
  </section>
  <section id="fragid-example">
    <title>Examples</title>
    <para>Given the following XLIFF document:</para>
    <programlisting format="linespecific">
&lt;xliff xmlns="urn:oasis:names:tc:xliff:document:2.2" version="2.2"
    srcLang="en" trgLang="fr">
  &lt;file id="f1">
    &lt;notes>
      &lt;note id="n1">note for file.&lt;/note>
    &lt;/notes>
    &lt;unit id="u1">
      &lt;my:elem xmlns:my="myNamespaceURI" id="x1">data&lt;/my:elem>
      &lt;notes>
        &lt;note id="n1">note for unit&lt;/note>
      &lt;/notes>
      &lt;segment id="s1">
        &lt;source>&lt;pc id="1">Hello &lt;mrk id="m1" type="term">World&lt;/mrk>!&lt;/pc>
            &lt;/source>
        &lt;target>&lt;pc id="1">Bonjour le &lt;mrk id="m1" type="term">Monde&lt;/mrk>
            ! &lt;/pc>&lt;/target>
      &lt;/segment>
    &lt;/unit>
  &lt;/file>
&lt;/xliff>
</programlisting>
    <para>You can have the following fragment identifiers:</para>
    <itemizedlist>
      <listitem>
        <para><code>#f=f1/u=u1/1</code> refers to the element <code>&lt;pc id="1"></code> of the
          source content of the element <code>&lt;unit id="u1"></code>.</para>
      </listitem>
      <listitem>
        <para><code>#f=f1/u=u1/t=1</code> refers to the element <code>&lt;pc id="1"></code> of the
          target content of the element <code>&lt;unit id="u1"></code>.</para>
      </listitem>
      <listitem>
        <para><code>#f=f1/n=n1</code> refers to the element <code>&lt;note id="n1"></code> of the
          element <code>&lt;file id="f1"></code>.</para>
      </listitem>
      <listitem>
        <para><code>#f=f1/u=u1/n=n1</code> refers to the element <code>&lt;note id="n1"></code> of
          the element <code>&lt;unit id="u1"></code>.</para>
      </listitem>
      <listitem>
        <para><code>#f=f1/u=u1/s1</code> refers to the element <code>&lt;segment id="s1"></code> of
          the element <code>&lt;unit id="u1"></code>.</para>
      </listitem>
      <listitem>
        <para>Assuming the extension defined by the namespace URI <code>myNamespaceURI</code> has
          registered the prefix <code>myprefix</code>, the expression
            <code>#f=f1/u=u1/myprefix=x1</code> refers to the element <code>&lt;my:element
            id="x1"></code> of the element <code>&lt;unit id="u1"></code>.</para>
      </listitem>
    </itemizedlist>
  </section>

</section>

  <section id="core">
    <title>The Core Specification</title>

    <para>XLIFF is a bilingual document format designed for containing text that needs translation,
        its corresponding translations and auxiliary data that makes the translation process
        possible.</para>

    <para>At creation time, an XLIFF document MAY contain only text in the source language.
        Translations expressed in the target language MAY be added at a later time.</para>

    <para>The root element of an XLIFF document is <link linkend="xliff"><code>&lt;xliff></code></link>. It contains a collection of <link linkend="file"><code>&lt;file></code></link> elements. Typically, each <link linkend="file"><code>&lt;file></code></link> element contains a set of <link linkend="unit"><code>&lt;unit></code></link> elements that contain the text to be translated in
        the <link linkend="source"><code>&lt;source></code></link> child of one or more <link linkend="segment"><code>&lt;segment></code></link> elements. Translations are stored in the
            <link linkend="target"><code>&lt;target></code></link> child of each <link linkend="segment"><code>&lt;segment></code></link> element.</para>

    <section>
        <title>General Processing Requirements</title>


        <itemizedlist>
            <title/>

            <listitem>
                <para>An Agent processing a valid XLIFF Document that contains XLIFF-defined
                    elements and attributes that it cannot handle MUST preserve those elements and
                    attributes.</para>
            </listitem>
            <listitem>
                <para>An Agent processing a valid XLIFF Document that contains custom elements and
                    attributes that it cannot handle SHOULD preserve those elements and
                    attributes.</para>
            </listitem>

        </itemizedlist>
    </section>

    <section>
    <title>Elements</title>
    <para>This section contains a description of all elements used in XLIFF Core.</para>
    <section>
  <title>Tree Structure</title>
  <para>Legend:</para>
  <simplelist type="vert">
    <member>1 = one</member>
    <member>+ = one or more</member>
    <member>? = zero or one</member>
    <member>* = zero or more</member>
  </simplelist>
  <programlisting format="linespecific">
<link linkend="xliff"><code>&lt;xliff></code></link>
|
+---<link linkend="notes"><code>&lt;notes></code></link> ?
| |
| +---<link linkend="note"><code>&lt;note></code></link> +
|
+---<link linkend="metadata"><code>&lt;mda:metadata></code></link> ?
| |
| +---<link linkend="metagroup"><code>&lt;mda:metagroup></code></link> +
|   |
|   +---At least one of (<link linkend="metagroup"><code>&lt;mda:metagroup></code></link> OR <link linkend="meta"><code>&lt;mda:meta></code></link>) 
|
+---<link linkend="file"><code>&lt;file></code></link> +
  |
  +---<link linkend="skeleton"><code>&lt;skeleton></code></link> ?
  | |
  | +---&lt;other> *
  |
  +---&lt;other> *
  |
  +---<link linkend="notes"><code>&lt;notes></code></link> ?
  | |
  | +---<link linkend="note"><code>&lt;note></code></link> +
  |
  +---At least one of (<link linkend="unit"><code>&lt;unit></code></link> OR <link linkend="group"><code>&lt;group></code></link>)
      | |
      | +---<link linkend="unit"><code>&lt;unit></code></link>
      |   |
      |   +---&lt;other> *
      |   |
      |   +---<link linkend="notes"><code>&lt;notes></code></link> ?
      |   | |
      |   | +---<link linkend="note"><code>&lt;note></code></link> +
      |   |
      |   +---<link linkend="originaldata"><code>&lt;originalData></code></link> ?
      |   | |
      |   | +---<link linkend="data"><code>&lt;data></code></link> +
      |   |
      |   +---At least one of (<link linkend="segment"><code>&lt;segment></code></link> OR <link linkend="ignorable"><code>&lt;ignorable></code></link>)
      |       | |
      |       | +---<link linkend="segment"><code>&lt;segment></code></link>
      |       |   |
      |       |   +---<link linkend="source"><code>&lt;source></code></link> 1
      |       |   |
      |       |   +---<link linkend="target"><code>&lt;target></code></link> ?
      |       |
      |       +---<link linkend="ignorable"><code>&lt;ignorable></code></link>
      |           |
      |           +---<link linkend="source"><code>&lt;source></code></link> 1
      |           |
      |           +---<link linkend="target"><code>&lt;target></code></link> ?
      |
      +---<link linkend="group"><code>&lt;group></code></link>
          |
          +---&lt;other> *
          |
          +---<link linkend="notes"><code>&lt;notes></code></link> ?
          | |
          | +---<link linkend="note"><code>&lt;note></code></link> +
          |
          +---At least one of (<link linkend="unit"><code>&lt;unit></code></link> OR <link linkend="group"><code>&lt;group></code></link>)


  </programlisting>
</section>
    <section id="structural">
    <title>Structural Elements</title>
    <para>The structural elements used in XLIFF Core are: <link linkend="xliff"><code>&lt;xliff></code></link>, <link linkend="file"><code>&lt;file></code></link>, <link linkend="skeleton"><code>&lt;skeleton></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="segment"><code>&lt;segment></code></link>, <link linkend="ignorable"><code>&lt;ignorable></code></link>, <link linkend="notes"><code>&lt;notes></code></link>,
            <link linkend="note"><code>&lt;note></code></link>,
            <link linkend="originaldata"><code>&lt;originalData></code></link>, <link linkend="data"><code>&lt;data></code></link>, <link linkend="source"><code>&lt;source></code></link>
        and <link linkend="target"><code>&lt;target></code></link>. </para>

    <section id="xliff">
    <title>xliff</title>
    <para>Root element for XLIFF documents.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Zero or one <link linkend="notes"><code>&lt;notes></code></link> element followed by</member>
        <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link> element followed by</member>
        <member>- One or more <link linkend="file"><code>&lt;file></code></link> elements</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="version"><code>version</code></link>, REQUIRED</member>
        <member>- <link linkend="srcLang"><code>srcLang</code></link>, REQUIRED</member>
        <member>- <link linkend="trgLang"><code>trgLang</code></link>, OPTIONAL</member>
        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>The <link linkend="trgLang"><code>trgLang</code></link> attribute is REQUIRED if and only if the XLIFF
                document contains <link linkend="target"><code>&lt;target></code></link> elements that are children of <link linkend="segment"><code>&lt;segment></code></link> or
                    <link linkend="ignorable"><code>&lt;ignorable></code></link>. </para>
        </listitem>
    </itemizedlist>
    <note>
        <para>The use of attributes from XLIFF modules MUST be in accordance with the constraints
            specified in the corresponding modules.</para>
    </note>
</section>

    <section id="file">
    <title>file</title>
    <para>Container for localization material extracted from an entire single document, or another
        high level self contained logical node in a content structure that cannot be described in
        the terms of documents.</para>
    <note>
        <para>Sub-document artifacts such as particular sheets, pages, chapters and similar are
            better mapped onto the <link linkend="group"><code>&lt;group></code></link> element. The <code>&lt;file></code> element is
            intended for the highest logical level. For instance a collection of papers would map to
            a single XLIFF Document, each paper will be represented with one <code>&lt;file></code>
            element, whereas chapters and subsections will map onto nested <link linkend="group"><code>&lt;group></code></link>
            elements.</para>
    </note>



    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Zero or one <link linkend="skeleton"><code>&lt;skeleton></code></link> element followed by</member>
        <member>- elements from other namespaces, OPTIONAL</member>

        <member>- Zero or one <link linkend="notes"><code>&lt;notes></code></link> element followed by</member>


        <member>- One or more <link linkend="unit"><code>&lt;unit></code></link> or <link linkend="group"><code>&lt;group></code></link> elements in any order.</member>

    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            REQUIRED</member>
        <member>- <link linkend="canResegment"><code>canResegment</code></link>, OPTIONAL</member>
        <member>- <link linkend="original"><code>original</code></link>, OPTIONAL</member>
        <member>- <link linkend="translate"><code>translate</code></link>, OPTIONAL</member>
        <member>- <link linkend="srcdir"><code>srcDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="trgdir"><code>trgDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>The following XLIFF Module elements are explicitly allowed by the wildcard
                    <code>other</code>:</para>
            <simplelist type="vert">
                <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link>
                    elements</member>
                <member>- Zero or one <link linkend="res_resourceData"><code>&lt;res:resourceData></code></link>
                    element</member>
                <member>- Zero or one <link linkend="slr_profiles"><code>&lt;slr:profiles></code></link>
                    elements</member>
                <member>- Zero or one <link linkend="slr_data"><code>&lt;slr:data></code></link> elements</member>
                <member>- Zero or one <link linkend="validation"><code>&lt;val:validation></code></link>
                    elements</member>
                <member>- Zero, one, or more <link linkend="itsm_provenanceRecords"><code>&lt;its:provenanceRecords></code></link> elements</member>

            </simplelist>
        </listitem>
        <listitem>
            <para>Module and Extension elements MAY be used in any order.</para>
        </listitem>
    </itemizedlist>
    <note>
        <para>The use of attributes from XLIFF modules MUST be in accordance with the constraints
            specified in the corresponding modules.</para>
    </note>
</section>

    <section id="skeleton">
    <title>skeleton</title>
    <para>Container for non-translatable material pertaining to the parent <link linkend="file"><code>&lt;file></code></link> element.</para>
    <para><emphasis>Contains:</emphasis></para>
    <para>Either</para>
    <simplelist type="vert">
        <member>- Non-translatable text</member>
        <member>- elements from other namespaces</member>
    </simplelist>
    <para>or</para>
    <simplelist type="vert">
        <member>- is empty.</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="href"><code>href</code></link>, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para> The attribute <link linkend="href"><code>href</code></link> is REQUIRED if and only if the <link linkend="skeleton"><code>&lt;skeleton></code></link> element is empty. </para>
        </listitem>
    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Modifiers and Enrichers processing an XLIFF document that contains a <link linkend="skeleton"><code>&lt;skeleton></code></link> element MUST NOT change
                that element, its attributes, or its content. </para>
        </listitem>
        <listitem>
            <para>Extractors creating an XLIFF document with a <link linkend="skeleton"><code>&lt;skeleton></code></link> element MUST leave the <link linkend="skeleton"><code>&lt;skeleton></code></link> element empty if and only
                if they specify the attribute <link linkend="href"><code>href</code></link>.</para>
        </listitem>
    </itemizedlist>
</section>

    <section id="group">
    <title>group</title>
    <para>Provides a way to organize units into a structured hierarchy.</para>
    <para>Note that this is especially useful for mirroring a source format's hierarchical
        structure.</para>

    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- elements from other namespaces, OPTIONAL</member>
        <member>- Zero or one <link linkend="notes"><code>&lt;notes></code></link> element followed by</member>
        <member>- Zero, one or more <link linkend="unit"><code>&lt;unit></code></link> or <link linkend="group"><code>&lt;group></code></link> elements in any order.</member>





    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            REQUIRED</member>
        <member>- <link linkend="name"><code>name</code></link>, OPTIONAL</member>
        <member>- <link linkend="canResegment"><code>canResegment</code></link>, OPTIONAL</member>
        <member>- <link linkend="translate"><code>translate</code></link>, OPTIONAL</member>
        <member>- <link linkend="srcdir"><code>srcDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="trgdir"><code>trgDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>
        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>

        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>The following XLIFF Module elements are explicitly allowed by the wildcard
                    <code>other</code>:</para>
            <simplelist type="vert">
                <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link>
                    elements</member>
                <member>- Zero or one <link linkend="slr_data"><code>&lt;slr:data></code></link> elements</member>
                <member>- Zero or one <link linkend="validation"><code>&lt;val:validation></code></link>
                    elements</member>
                <member>- Zero, one, or more <link linkend="itsm_provenanceRecords"><code>&lt;its:provenanceRecords></code></link> elements</member>

            </simplelist>
        </listitem>
        <listitem>
            <para>Module and Extension elements MAY be used in any order.</para>
        </listitem>
    </itemizedlist>
    <note>
        <para>The use of attributes from XLIFF modules MUST be in accordance with the constraints
            specified in the corresponding modules.</para>
    </note>
</section>

    <section id="unit">
    <title>unit</title>
    <para>Static container for a dynamic structure of elements holding the extracted translatable
        source text, aligned with the translated text.</para>

    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- elements from other namespaces, OPTIONAL</member>
        <member>- Zero or one <link linkend="notes"><code>&lt;notes></code></link> elements followed by</member>
        <member>- Zero or one <link linkend="originaldata"><code>&lt;originalData></code></link> element followed by</member>
        <member>- One or more <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements in any
            order.</member>






    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            REQUIRED</member>
        <member>- <link linkend="name"><code>name</code></link>, OPTIONAL</member>
        <member>- <link linkend="canResegment"><code>canResegment</code></link>, OPTIONAL</member>
        <member>- <link linkend="translate"><code>translate</code></link>, OPTIONAL</member>
        <member>- <link linkend="srcdir"><code>srcDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="trgdir"><code>trgDir</code></link>, OPTIONAL</member>
        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>

        <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>



        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>A <link linkend="unit"><code>&lt;unit></code></link> MUST contain at least one
                    <link linkend="segment"><code>&lt;segment></code></link> element. </para>
        </listitem>
        <listitem>
            <para>The following XLIFF Module elements are explicitly allowed by the wildcard
                    <code>other</code>:</para>
            <simplelist type="vert">
                <member>- Zero or one <link linkend="matches"><code>&lt;mtc:matches></code></link> elements</member>
                <member>- Zero or one <link linkend="glossary"><code>&lt;gls:glossary></code></link>
                    elements</member>
                <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link>
                    elements</member>
                <member>- Zero or one <link linkend="res_resourceData"><code>&lt;res:resourceData></code></link>
                    elements </member>
                <member>- Zero or one <link linkend="slr_data"><code>&lt;slr:data></code></link> elements </member>
                <member>- Zero or one <link linkend="validation"><code>&lt;val:validation></code></link> elements </member>
                <member>- Zero, one, or more <link linkend="itsm_locQualityIssues"><code>&lt;its:locQualityIssues></code></link> elements</member>
                <member>- Zero, one, or more <link linkend="itsm_provenanceRecords"><code>&lt;its:provenanceRecords></code></link> elements</member>

            </simplelist>
        </listitem>
        <listitem>
            <para>Module and Extension elements MAY be used in any order.</para>
        </listitem>
    </itemizedlist>
    <note>
        <para>The use of attributes from XLIFF modules MUST be in accordance with the constraints
            specified in the corresponding modules.</para>
    </note>
</section>

    <section id="segment">
  <title>segment</title>

  <para>This element is a container to hold in its aligned pair of children elements the minimum
    portion of translatable source text and its translation in the given <link linkend="segmentation">Segmentation</link>.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>- One <link linkend="source"><code>&lt;source></code></link> element followed by</member>

    <member>- Zero or one <link linkend="target"><code>&lt;target></code></link> element</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="id"><code>id</code></link>,
      OPTIONAL</member>

    <member>- <link linkend="canResegment"><code>canResegment</code></link>, OPTIONAL</member>
    <member>- <link linkend="state"><code>state</code></link>, OPTIONAL</member>
    <member>- <link linkend="substate"><code>subState</code></link>, OPTIONAL</member>

    <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:pgs:1.0</code>, OPTIONAL,
      provided that the Constraints specified in the <link linkend="plural_gender_select_module">Plural, Gender, and Select Module</link> are
      met.</member>

  </simplelist>

</section>

    <section id="ignorable">
    <title>ignorable</title>
    <para>Part of the extracted content that is not included in a segment (and therefore not
        translatable). For example tools can use <code>&lt;ignorable></code> to store the white
        space and/or codes that are between two segments.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One <link linkend="source"><code>&lt;source></code></link> element followed by</member>
        <member>- Zero or one <link linkend="target"><code>&lt;target></code></link> element</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            OPTIONAL</member>
    </simplelist>

</section>

    <section id="notes">
    <title>notes</title>
    <para>Collection of comments.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One or more <link linkend="note"><code>&lt;note></code></link>
            elements</member>
    </simplelist>

</section>

    <section id="note">
    <title>note</title>
    <para>This is an XLIFF specific way how to present end user readable comments and annotations. A
        note can contain information about <link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="file"><code>&lt;file></code></link> or <link linkend="xliff"><code>&lt;xliff></code></link> elements.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Text</member>
    </simplelist>
    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            OPTIONAL</member>
        <member>- <link linkend="appliesto"><code>appliesTo</code></link>, OPTIONAL</member>
        <member>- <link linkend="category"><code>category</code></link>, OPTIONAL</member>
        <member>- <link linkend="priority"><code>priority</code></link>, OPTIONAL</member>
        <member>- <link linkend="ref"><code>ref</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <para><emphasis>Example:</emphasis></para>

    <programlisting format="linespecific">
&lt;unit id="18">
  &lt;notes>
    &lt;note id="1" ref="#18-0">Change text to lower case&lt;/note>
  &lt;/notes>
  &lt;segment state="initial" id="18-0">
    &lt;source>Create Memories from Existing Translations&lt;/source>
  &lt;/segment>
&lt;/unit>        
    </programlisting>
    <note>
        <para>When the <link linkend="ref"><code>ref</code></link> attribute points to a <link linkend="segment"><code>&lt;segment></code></link> element, by default the <link linkend="note"><code>&lt;note></code></link> content applies to its <link linkend="source"><code>&lt;source></code></link> child, unless the optional <link linkend="appliesto">appliesTo</link> attribute is set
            to <code>target</code>.</para>
    </note>
    <note>
        <para>The use of attributes from XLIFF modules MUST be in accordance with the constraints
            specified in the corresponding modules.</para>
    </note>
</section>

    <section id="originaldata">
  <title>originalData</title>

  <para>Unit-level collection of original data for the inline codes.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>- One or more <link linkend="data"><code>&lt;data></code></link> elements</member>
  </simplelist>


</section>

    <section id="data">
    <title>data</title>

    <para>Storage for the original data of an inline code.</para>

    <para><emphasis>Contains:</emphasis></para>

    <simplelist type="vert">
        <member>- Non-translatable text</member>

        <member>- Zero, one or more <link linkend="cp"><code>&lt;cp></code></link> elements.</member>
    </simplelist>

    <para>Non-translatable text and <link linkend="cp"><code>&lt;cp></code></link> elements MAY appear in any order.</para>

    <para><emphasis>Attributes:</emphasis></para>

    <simplelist type="vert">
        <member>- <link linkend="id"><code>id</code></link>,
            REQUIRED</member>

        <member>- <link linkend="dir"><code>dir</code></link>, OPTIONAL</member>

        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL, the value is restricted to
                <code>preserve</code> on this element</member>



    </simplelist>

</section>

    <section id="source">
    <title>source</title>
    <para>Portion of text to be translated.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Text</member>
        <member>- Zero, one or more <link linkend="cp"><code>&lt;cp></code></link> elements</member>
        <member>- Zero, one or more <link linkend="ph"><code>&lt;ph></code></link> elements</member>
        <member>- Zero, one or more <link linkend="pc"><code>&lt;pc></code></link> elements</member>
        <member>- Zero, one or more <link linkend="sc"><code>&lt;sc></code></link> elements</member>
        <member>- Zero, one or more <link linkend="ec"><code>&lt;ec></code></link> elements</member>
        <member>- Zero, one or more <link linkend="mrk"><code>&lt;mrk></code></link> elements</member>
        <member>- Zero, one or more <link linkend="sm"><code>&lt;sm></code></link> elements</member>
        <member>- Zero, one or more <link linkend="em"><code>&lt;em></code></link> elements</member>
    </simplelist>
    <para>Text and inline elements may appear in any order.</para>
    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="xml_lang"><code>xml:lang</code></link>, OPTIONAL</member>
        <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>
    </simplelist>

    <itemizedlist>

        <title>Constraints</title>
        <listitem>
            <para>When a <link linkend="source"><code>&lt;source></code></link> element is a child
                of <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link>, the explicit or
                inherited value of the OPTIONAL <link linkend="xml_lang"><code>xml:lang</code></link> attribute MUST be equal to
                the value of the <link linkend="srcLang"><code>srcLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link>
                element.</para>
        </listitem>

    </itemizedlist>
</section>

    <section id="target">
  <title>target</title>
  <para>The translation of the sibling <link linkend="source"><code>&lt;source></code></link> element.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- Text</member>
    <member>- Zero, one or more <link linkend="cp"><code>&lt;cp></code></link> elements</member>
    <member>- Zero, one or more <link linkend="ph"><code>&lt;ph></code></link> elements</member>
    <member>- Zero, one or more <link linkend="pc"><code>&lt;pc></code></link> elements</member>
    <member>- Zero, one or more <link linkend="sc"><code>&lt;sc></code></link> elements</member>
    <member>- Zero, one or more <link linkend="ec"><code>&lt;ec></code></link> elements</member>
    <member>- Zero, one or more <link linkend="mrk"><code>&lt;mrk></code></link> elements</member>
    <member>- Zero, one or more <link linkend="sm"><code>&lt;sm></code></link> elements</member>
    <member>- Zero, one or more <link linkend="em"><code>&lt;em></code></link> elements</member>
  </simplelist>
  <para>Text and inline elements may appear in any order.</para>
  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="xml_lang"><code>xml:lang</code></link>, OPTIONAL</member>
    <member>- <link linkend="xml_space"><code>xml:space</code></link>, OPTIONAL</member>
    <member>- <link linkend="order"><code>order</code></link>, OPTIONAL</member>
  </simplelist>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>When a <link linkend="target"><code>&lt;target></code></link> element is a child of
          <link linkend="segment"><code>&lt;segment></code></link> or
          <link linkend="ignorable"><code>&lt;ignorable></code></link>, the explicit or inherited value of the OPTIONAL <link linkend="xml_lang"><code>xml:lang</code></link> MUST be equal to the value of the <link linkend="trgLang"><code>trgLang</code></link>
        attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
    </listitem>
  </itemizedlist>

</section>

</section>
    <section id="inlineelements">
  <title>Inline Elements</title>

    <para>The XLIFF Core inline elements at the <link linkend="source"><code>&lt;source></code></link> or <link linkend="target"><code>&lt;target></code></link> level are: <link linkend="cp"><code>&lt;cp></code></link>, <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link> and <link linkend="em"><code>&lt;em></code></link>.</para>

    <para>The elements at the <link linkend="unit"><code>&lt;unit></code></link> level directly related
    to inline elements are: <link linkend="originaldata"><code>&lt;originalData></code></link> and
    <link linkend="data"><code>&lt;data></code></link>.</para>

    <section id="cp">
  <title>cp</title>

  <para>Represents a Unicode character that is invalid in XML.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="data"><code>&lt;data></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link> and
        <link linkend="pc"><code>&lt;pc></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="hex"><code>hex</code></link>,
      REQUIRED</member>


  </simplelist>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Ctrl+C=&lt;cp hex="0003"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>The example above shows a character U+0003 (Control C) as it has to be represented in
    XLIFF.</para>

  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>Writers MUST encode all invalid XML characters of the content using <link linkend="cp"><code>&lt;cp></code></link>.</para>
    </listitem>

    <listitem>
      <para>Writers MUST NOT encode valid XML characters of the content using <link linkend="cp"><code>&lt;cp></code></link>.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="ph">
  <title>ph</title>

  <para>Represents a standalone code of the original format.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="cancopy"><code>canCopy</code></link>, OPTIONAL</member>

    <member>- <link linkend="cancopy"><code>canDelete</code></link>, OPTIONAL</member>

    <member>- <link linkend="canreorder"><code>canReorder</code></link>, OPTIONAL</member>

    <member>- <link linkend="copyof"><code>copyOf</code></link>, OPTIONAL</member>

    <member>- <link linkend="disp"><code>disp</code></link>, OPTIONAL</member>

    <member>- <link linkend="equiv"><code>equiv</code></link>, OPTIONAL</member>

    <member>- <link linkend="id"><code>id</code></link>,
      REQUIRED.</member>

    <member>- <link linkend="dataref"><code>dataRef</code></link>, OPTIONAL</member>

    <member>- <link linkend="subflows"><code>subFlows</code></link>, OPTIONAL</member>

    <member>- <link linkend="subtype"><code>subType</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>


  </simplelist>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">%d&lt;/data>
    &lt;data id="d2">&amp;lt;br/>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Number of entries: &lt;ph id="1" dataRef="d1" />&lt;ph id="2"
        dataRef="d2"/>(These entries are only the ones matching the
        current filter settings)&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>
      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
        
      </simplelist>
    </listitem>
    <listitem>
      <para>No other attributes MUST be used.</para>
    </listitem>

  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Extractors MUST NOT use the <link linkend="ph"><code>&lt;ph></code></link> element to
        represent spanning codes.</para>
      <para><emphasis>Rationale:</emphasis> Using a standalone placeholder code for a spanning code
        does not allow for controlling the span (for instance tag order and data integrity) when
        modifying inline content and is in <emphasis>direct contradiction</emphasis> to the business
        logic described in <link linkend="representingcodes">Representation of the codes</link> and normative statements included in <link linkend="spanningcodeusage">Usage of &lt;pc> and          &lt;sc>/&lt;ec></link>
      </para>
    </listitem>
  </itemizedlist>
  <note>
    <para>It is possible although not advised to use <link linkend="ph">&lt;ph></link> to mask non
      translatable inline content. The preferred way of protecting portions of inline content from
      translation is the Core <link linkend="translateAnnotation">Translate Annotation</link>.
      See also discussion in the <link linkend="Translate_Inline">ITS Module section on        representing translatability inline</link>. </para>
  </note>
</section>

    <section id="pc">
  <title>pc</title>

  <para>Represents a well-formed spanning original code.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>- Text</member>

    <member>- Zero, one or more <link linkend="cp"><code>&lt;cp></code></link> elements</member>

    <member>- Zero, one or more <link linkend="ph"><code>&lt;ph></code></link> elements</member>

    <member>- Zero, one or more <link linkend="pc"><code>&lt;pc></code></link> elements</member>

    <member>- Zero, one or more <link linkend="sc"><code>&lt;sc></code></link> elements</member>

    <member>- Zero, one or more <link linkend="ec"><code>&lt;ec></code></link> elements</member>

    <member>- Zero, one or more <link linkend="mrk"><code>&lt;mrk></code></link> elements</member>

    <member>- Zero, one or more <link linkend="sm"><code>&lt;sm></code></link> elements</member>

    <member>- Zero, one or more <link linkend="em"><code>&lt;em></code></link> elements</member>
  </simplelist>

  <para>Text and inline elements may appear in any order.</para>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="source"><code>&lt;source></code></link></member>
    <member>- <link linkend="target"><code>&lt;target></code></link></member>
    <member>- <link linkend="pc"><code>&lt;pc></code></link></member>
    <member>-<link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="cancopy"><code>canCopy</code></link>, OPTIONAL</member>

    <member>- <link linkend="cancopy"><code>canDelete</code></link>, OPTIONAL</member>

    <member>- <link linkend="canoverlap"><code>canOverlap</code></link>, OPTIONAL</member>

    <member>- <link linkend="canreorder"><code>canReorder</code></link>, OPTIONAL</member>

    <member>- <link linkend="copyof"><code>copyOf</code></link>, OPTIONAL</member>

    <member>- <link linkend="dispend"><code>dispEnd</code></link>, OPTIONAL</member>

    <member>- <link linkend="dispstart"><code>dispStart</code></link>, OPTIONAL</member>

    <member>- <link linkend="equivend"><code>equivEnd</code></link>, OPTIONAL</member>

    <member>- <link linkend="equivstart"><code>equivStart</code></link>, OPTIONAL</member>

    <member>- <link linkend="id"><code>id</code></link>,
      REQUIRED</member>

    <member>- <link linkend="datarefend"><code>dataRefEnd</code></link>, OPTIONAL</member>

    <member>- <link linkend="datarefstart"><code>dataRefStart</code></link>, OPTIONAL</member>

    <member>- <link linkend="subflowsend"><code>subFlowsEnd</code></link>, OPTIONAL</member>

    <member>- <link linkend="subflowsstart"><code>subFlowsStart</code></link>, OPTIONAL</member>

    <member>- <link linkend="subtype"><code>subType</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>

    <member>- <link linkend="dir"><code>dir</code></link>,
      OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>




  </simplelist>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="1">&amp;lt;B&amp;gt;&lt;/data>
    &lt;data id="2">&amp;lt;/B&amp;gt;&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>&lt;pc id="1" dataRefStart="1" dataRefEnd="2">Important&lt;/pc>
      text&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>
      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
        
      </simplelist>
    </listitem>
    <listitem>
      <para>No other attributes MUST be used.</para>
    </listitem>

  </itemizedlist>

  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>Extractors MUST NOT use the <link linkend="pc"><code>&lt;pc></code></link> element to represent standalone codes.</para>
      <para>Rationale: Using a spanning code for a standalone code can easily result in having text
        inside a span where the original format does not allow it.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="sc">
  <title>sc</title>

  <para>Start of a spanning original code.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="cancopy"><code>canCopy</code></link>, OPTIONAL</member>

    <member>- <link linkend="cancopy"><code>canDelete</code></link>, OPTIONAL</member>

    <member>- <link linkend="canoverlap"><code>canOverlap</code></link>, OPTIONAL</member>

    <member>- <link linkend="canreorder"><code>canReorder</code></link>, OPTIONAL</member>

    <member>- <link linkend="copyof"><code>copyOf</code></link>, OPTIONAL</member>

    <member>- <link linkend="dataref"><code>dataRef</code></link>, OPTIONAL</member>

    <member>- <link linkend="dir"><code>dir</code></link>,
      OPTIONAL</member>

    <member>- <link linkend="disp"><code>disp</code></link>, OPTIONAL</member>

    <member>- <link linkend="equiv"><code>equiv</code></link>, OPTIONAL</member>

    <member>- <link linkend="id"><code>id</code></link>,
      REQUIRED</member>

    <member>- <link linkend="isolated"><code>isolated</code></link>, OPTIONAL</member>


    <member>- <link linkend="subflows"><code>subFlows</code></link>, OPTIONAL</member>

    <member>- <link linkend="subtype"><code>subType</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>



    <member>- attributes from other namespaces, OPTIONAL</member>




  </simplelist>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>&lt;sc id="1" type="fmt" subType="xlf:b"/>
        First sentence. &lt;/source>
  &lt;/segment>
  &lt;segment>
    &lt;source>Second sentence.&lt;ec startRef="1" type="fmt"
        subType="xlf:b"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>

      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
      </simplelist>

    </listitem>
    <listitem>
      <para>No other attributes MUST be used.</para>
    </listitem>

    <listitem>
      <para>The values of the attributes <link linkend="cancopy"><code>canCopy</code></link>, <link linkend="candelete"><code>canDelete</code></link>, <link linkend="canreorder"><code>canReorder</code></link> and <link linkend="canoverlap"><code>canOverlap</code></link> MUST be the same as the values the ones in the <link linkend="ec"><code>&lt;ec></code></link> element
        corresponding to this start code.</para>
    </listitem>

    <listitem>

      <para>If the OPTIONAL attribute <link linkend="isolated"><code>isolated</code></link> is present, its value MUST be set to
          <code>yes</code> when the <link linkend="ec"><code>&lt;ec></code></link> element corresponding to this start marker is not in
        the same <link linkend="unit"><code>&lt;unit></code></link>. When the corresponding <link linkend="ec"><code>&lt;ec></code></link> element is
        present in the same <link linkend="unit"><code>&lt;unit></code></link>, the attribute value MUST be set to
        <code>no</code>.</para>
    </listitem>
  </itemizedlist>
  <itemizedlist>

    <title>Processing Requirements</title>

    <listitem>
      <para>Extractors MUST NOT use the <link linkend="sc"><code>&lt;sc></code></link> / <link linkend="ec"><code>&lt;ec></code></link> pair to represent standalone codes.</para>
      <para>Rationale: Using a spanning code for a standalone code can easily result in having text
        inside a span where the original format does not allow it.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="ec">
  <title>ec</title>

  <para>End of a spanning original code.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="cancopy"><code>canCopy</code></link>, OPTIONAL</member>

    <member>- <link linkend="cancopy"><code>canDelete</code></link>, OPTIONAL</member>

    <member>- <link linkend="canoverlap"><code>canOverlap</code></link>, OPTIONAL</member>

    <member>- <link linkend="canreorder"><code>canReorder</code></link>, OPTIONAL</member>

    <member>- <link linkend="copyof"><code>copyOf</code></link>, OPTIONAL</member>

    <member>- <link linkend="dataref"><code>dataRef</code></link>, OPTIONAL</member>
    <member>- <link linkend="dir"><code>dir</code></link>, OPTIONAL</member>

    <member>- <link linkend="disp"><code>disp</code></link>, OPTIONAL</member>

    <member>- <link linkend="equiv"><code>equiv</code></link>, OPTIONAL</member>

    <member>- <link linkend="id"><code>id</code></link>,
      OPTIONAL</member>

    <member>- <link linkend="isolated"><code>isolated</code></link>, OPTIONAL</member>


    <member>- <link linkend="startref"><code>startRef</code></link>, OPTIONAL</member>

    <member>- <link linkend="subflows"><code>subFlows</code></link>, OPTIONAL</member>

    <member>- <link linkend="subtype"><code>subType</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>

    <member>- attributes from other namespaces, OPTIONAL</member>


  </simplelist>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">\b &lt;/data>
    &lt;data id="d2">\i &lt;/data>
    &lt;data id="d3">\b0 &lt;/data>
    &lt;data id="d4">\i0 &lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Text in &lt;sc id="1" dataRef="d1"/>bold &lt;sc id="2"
        dataRef="d2"/> and&lt;ec startRef="1" dataRef="d3"/>
         italics&lt;ec startRef="2" dataRef="d4"/>. &lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>
      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
        
      </simplelist>
    </listitem>
    <listitem>
      <para>No other attributes MUST be used.</para>
    </listitem>



    <listitem>
      <para>The values of the attributes <link linkend="cancopy"><code>canCopy</code></link>, <link linkend="candelete"><code>canDelete</code></link> and <link linkend="canoverlap"><code>canOverlap</code></link> MUST be the same as the values the
        ones in the <link linkend="sc"><code>&lt;sc></code></link> element corresponding to this end code.</para>
    </listitem>

    <listitem>
      <para>The value of the attribute <link linkend="canreorder"><code>canReorder</code></link> MUST be <code>no</code> if the
        value of <link linkend="canreorder"><code>canReorder</code></link> is <code>firstNo</code> in the <link linkend="sc"><code>&lt;sc></code></link> element
        corresponding to this end code.</para>
    </listitem>

    <listitem>
      <para>The attribute <link linkend="isolated"><code>isolated</code></link> MUST be set to <code>yes</code> if and only if the <link linkend="sc"><code>&lt;sc></code></link> element
        corresponding to this end code is not in the same <link linkend="unit"><code>&lt;unit></code></link> and set to <code>no</code> otherwise.</para>
    </listitem>

    <listitem id="ecIFF">
      <para>If and only if the attribute <link linkend="isolated"><code>isolated</code></link> is set to <code>yes</code>, the
        attribute <link linkend="id"><code>id</code></link>
        MUST be used instead of the attribute <link linkend="startref"><code>startRef</code></link> that MUST be used otherwise.</para>
    </listitem>
    <listitem>
      <para> If and only if the attribute <link linkend="isolated"><code>isolated</code></link> is set to <code>yes</code>, the attribute <link linkend="dir"><code>dir</code></link> MAY be used,
        otherwise the attribute <link linkend="dir"><code>dir</code></link> MUST NOT be used on the <link linkend="ec"><code>&lt;ec></code></link> element. </para>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>Extractors MUST NOT use the <link linkend="sc"><code>&lt;sc></code></link> / <link linkend="ec"><code>&lt;ec></code></link> pair to represent standalone codes.</para>
      <para>Rationale: Using a spanning code for a standalone code can easily result in having text
        inside a span where the original format does not allow it.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="mrk">
  <title>mrk</title>

  <para>Represents an annotation pertaining to the marked span.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>- Text</member>

    <member>- Zero, one or more <link linkend="cp"><code>&lt;cp></code></link> elements</member>

    <member>- Zero, one or more <link linkend="ph"><code>&lt;ph></code></link> elements</member>

    <member>- Zero, one or more <link linkend="pc"><code>&lt;pc></code></link> elements</member>

    <member>- Zero, one or more <link linkend="sc"><code>&lt;sc></code></link> elements</member>

    <member>- Zero, one or more <link linkend="ec"><code>&lt;ec></code></link> elements</member>

    <member>- Zero, one or more <link linkend="mrk"><code>&lt;mrk></code></link> elements</member>
    <member>- Zero, one or more <link linkend="sm"><code>&lt;sm></code></link> elements</member>
    <member>- Zero, one or more <link linkend="em"><code>&lt;em></code></link> elements</member>
  </simplelist>

  <para>Text and inline elements may appear in any order.</para>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="id"><code>id</code></link>,
      REQUIRED</member>

    <member>- <link linkend="translate"><code>translate</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>

    <member>- <link linkend="ref"><code>ref</code></link>,
      OPTIONAL</member>

    <member>- <link linkend="value"><code>value</code></link>, OPTIONAL</member>


    <member>- attributes from other namespaces, OPTIONAL</member>

  </simplelist>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The <link linkend="xml_namespace">[XML          namespace]</link> MUST NOT be used at this extension point.</para>
    </listitem>
    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>
      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
        <member>- attributes from the namespace <code>http://www.w3.org/2005/11/its</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="ITS-module">ITS Module</link> are
          met.</member>
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:itsm:2.1</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="ITS-module">ITS            Module</link> are met.</member>
      </simplelist>
    </listitem>


  </itemizedlist>

  <para>See the <link linkend="annotations">Annotations      section</link> for more details and examples on how to use the <link linkend="mrk"><code>&lt;mrk></code></link> element.</para>
</section>
    <section id="sm">
  <title>sm</title>

  <para>Start marker of an annotation where the spanning marker cannot be used for well-formedness
    reasons.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="id"><code>id</code></link>,
      REQUIRED</member>

    <member>- <link linkend="translate"><code>translate</code></link>, OPTIONAL</member>

    <member>- <link linkend="type"><code>type</code></link>, OPTIONAL</member>

    <member>- <link linkend="ref"><code>ref</code></link>,
      OPTIONAL</member>

    <member>- <link linkend="value"><code>value</code></link>, OPTIONAL</member>


    <member>- attributes from other namespaces, OPTIONAL</member>

  </simplelist>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The <link linkend="xml_namespace">[XML          namespace]</link> MUST NOT be used at this extension point.</para>
    </listitem>
    <listitem>
      <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
          <code>other</code>:</para>
      <simplelist type="vert">
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:fs:2.0</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="fs-mod">Format Style Module</link> are
          met.</member>
        <member>- attributes from the namespace
            <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code>, OPTIONAL, provided that the
          Constraints specified in the <link linkend="size_restriction_module">Size and Length Restriction Module</link> are
          met.</member>
        <member>- attributes from the namespace <code>http://www.w3.org/2005/11/its</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="ITS-module">ITS Module</link> are
          met.</member>
        <member>- attributes from the namespace <code>urn:oasis:names:tc:xliff:itsm:2.1</code>,
          OPTIONAL, provided that the Constraints specified in the <link linkend="ITS-module">ITS            Module</link> are met.</member>
      </simplelist>
    </listitem>


  </itemizedlist>

  <para>See the <link linkend="annotations">Annotations      section</link> for more details and examples on how to use the <link linkend="sm"><code>&lt;sm></code></link> element.</para>
</section>
    <section id="em">
  <title>em</title>

  <para>End marker of an annotation where the spanning marker cannot be used for well-formedness
    reasons.</para>

  <para><emphasis>Contains:</emphasis></para>

  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member><link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="mrk"><code>&lt;mrk></code></link></member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="startref"><code>startRef</code></link>, REQUIRED</member>
  </simplelist>

  <para>See the <link linkend="annotations">Annotations      section</link> for more details and examples on how to use the <link linkend="em"><code>&lt;em></code></link> element.</para>
</section>
 </section>
</section>
    <section>
  <title>Attributes</title>

  <para>This section lists all the various attributes used in XLIFF core elements.</para>

  <section>
    <title>XLIFF Attributes</title>

    <para>The attributes defined in XLIFF 2.2 are: 
      <link linkend="appliesto"><code>appliesTo</code></link>,
      
      <link linkend="cancopy"><code>canCopy</code></link>,
      <link linkend="candelete"><code>canDelete</code></link>,
      <link linkend="canoverlap"><code>canOverlap</code></link>,
      <link linkend="canreorder"><code>canReorder</code></link>,
      <link linkend="canResegment"><code>canResegment</code></link>,
      <link linkend="category"><code>category</code></link>,
      <link linkend="copyof"><code>copyOf</code></link>,

      <link linkend="dataref"><code>dataRef</code></link>,
      <link linkend="datarefend"><code>dataRefEnd</code></link>,
      <link linkend="datarefstart"><code>dataRefStart</code></link>,
      <link linkend="dir"><code>dir</code></link>,
      <link linkend="disp"><code>disp</code></link>,
      <link linkend="dispend"><code>dispEnd</code></link>,
      <link linkend="dispstart"><code>dispStart</code></link>,
      <link linkend="equiv"><code>equiv</code></link>,
      <link linkend="equivend"><code>equivEnd</code></link>,
      <link linkend="equivstart"><code>equivStart</code></link>,
      <link linkend="hex"><code>hex</code></link>,
      <link linkend="href"><code>href</code></link>,
      <link linkend="id"><code>id</code></link>,
      <link linkend="isolated"><code>isolated</code></link>,
      <link linkend="name"><code>name</code></link>,
      <link linkend="order"><code>order</code></link>,
      <link linkend="original"><code>original</code></link>,
      <link linkend="priority"><code>priority</code></link>,
      <link linkend="ref"><code>ref</code></link>,


      <link linkend="srcdir"><code>srcDir</code></link>,
      <link linkend="srcLang"><code>srcLang</code></link>,

      <link linkend="startref"><code>startRef</code></link>,

      <link linkend="state"><code>state</code></link>,

      <link linkend="subflows"><code>subFlows</code></link>,
      <link linkend="subflowsend"><code>subFlowsEnd</code></link>,
      <link linkend="subflowsstart"><code>subFlowsStart</code></link>,

      <link linkend="substate"><code>subState</code></link>,

      <link linkend="subtype"><code>subType</code></link>,


      <link linkend="trgLang"><code>trgLang</code></link>,
      <link linkend="translate"><code>translate</code></link>,
      <link linkend="trgdir"><code>trgDir</code></link>,
      <link linkend="type"><code>type</code></link>,
      <link linkend="value"><code>value</code></link>
      and <link linkend="version"><code>version</code></link>.</para>

    

    <section id="appliesto">
    <title>appliesTo</title>
    
    <para>Comment target - indicates the element to what the content of the note applies.</para>
    
    <para><emphasis>Value description:</emphasis> <code>source</code> or <code>target</code>.</para>
    
    <para><emphasis>Default value:</emphasis> undefined.</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="note"><code>&lt;note></code></link>.</para>
    
</section>

    <section id="cancopy">
    <title>canCopy</title>
    
    <para>Replication editing hint - indicates whether or not the inline code can be copied.</para>
    
    <para><emphasis>Value description:</emphasis>
        <code>yes</code> if the code can be copied, <code>no</code> if the code is not intended to
        be copied.</para>
    
    <para><emphasis>Default value:</emphasis> <code>yes</code>.</para>
    
    <para><emphasis>Used in:</emphasis>
     <link linkend="pc"><code>&lt;pc></code></link>,
     <link linkend="sc"><code>&lt;sc></code></link>,
     <link linkend="ec"><code>&lt;ec></code></link>,
     <link linkend="ph"><code>&lt;ph></code></link>.</para>
    
</section>

    <section id="candelete">
    <title>canDelete</title>
    
    <para>Deletion editing hint - indicates whether or not the inline code can be deleted.</para>
    
    <para><emphasis>Value description:</emphasis>
        <code>yes</code> if the code can be deleted, <code>no</code> if the code is not allowed to
        be deleted.</para>
    
    <para><emphasis>Default value:</emphasis> <code>yes</code>.</para>
    
    <para><emphasis>Used in:</emphasis>
     <link linkend="pc"><code>&lt;pc></code></link>,
     <link linkend="sc"><code>&lt;sc></code></link>,
     <link linkend="ec"><code>&lt;ec></code></link>,
     <link linkend="ph"><code>&lt;ph></code></link>.</para>
    
</section>

    <section id="canoverlap">
  <title>canOverlap</title>

  <para>Code can overlap - indicates whether or not the spanning code where this attribute is used
    can enclose partial spanning codes (i.e. a start code without its corresponding end code, or an
    end code without its corresponding start code).</para>

  <para><emphasis>Value description:</emphasis> <code>yes</code> or
  <code>no</code>.</para>

  <para><emphasis>Default value:</emphasis> default values for this
  attribute depend on the element in which it is used:</para>

  <itemizedlist>
    <listitem>
      <para>When used in <link linkend="pc"><code>&lt;pc></code></link>: <code>no</code>.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="sc"><code>&lt;sc></code></link> or <link linkend="ec"><code>&lt;ec></code></link>: <code>yes</code>.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link></para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="1">\i1 &lt;/data>
    &lt;data id="2">\i0 &lt;/data>
    &lt;data id="3">{\b &lt;/data>
    &lt;data id="4">}&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>&lt;pc id="1" dataRefStart="3" dataRefEnd="4" canOverlap="no">
        Bold, &lt;sc id="2" dataRef="1" canOverlap="yes"/>both&lt;/pc>,
         italics&lt;ec startRef="2" dataRef="2"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>
</section>

    <section id="canreorder">
  <title>canReorder</title>

  <para>Re-ordering editing hint - indicates whether or not the inline code can be re-ordered. See
      <link linkend="editinghints">Editing Hints section</link>
    for more details.</para>

  <para><emphasis>Value description:</emphasis>
    <code>yes</code> in case the code can be re-ordered, <code>firstNo</code> when the code is the
    first element of a sequence that cannot be re-ordered, <code>no</code> when it is another
    element of such a sequence.</para>

  <para><emphasis>Default value:</emphasis> <code>yes</code>.</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, <link linkend="ph"><code>&lt;ph></code></link>.</para>
  
  <para>For the normative Usage Description see Constraints and Processing Requirements in the <link linkend="editinghints">Editing Hints</link> section.</para>
</section>

    <section id="canResegment">
    <title>canResegment</title>
    
    <para>Can resegment - indicates whether or not the source text in the scope of the given
            <code>canResegment</code> flag can be reorganized into a different structure of <link linkend="segment"><code>&lt;segment></code></link> elements within the same parent <link linkend="unit"><code>&lt;unit></code></link>.</para>
    
    <para><emphasis>Value description:</emphasis> <code>yes</code> or <code>no</code>.</para>
        
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>
            
            <para>The value <code>yes</code>.</para>
        </listitem>
        <listitem>
            <para>When used in any other element:</para>
            <para>The value of the <link linkend="canResegment"><code>canResegment</code></link> attribute of its parent element.
            </para>   
                
        </listitem>
        
        
        
    </itemizedlist>
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>, and
        <link linkend="segment"><code>&lt;segment></code></link>.    
    </para>
    
</section>

    <section id="category">
    <title>category</title>
    
    <para>Category - provides a way to categorize notes.</para>
    
    <para><emphasis>Value description:</emphasis> Text.</para>
    
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="note"><code>&lt;note></code></link>.</para>
    
</section>

    <section id="copyof">
  <title>copyOf</title>

  <para>Reference to base code - holds the <link linkend="id"><code>id</code></link> of the base code of a copied code.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN. The <link linkend="id"><code>id</code></link> value of the base
  code of which this code is a copy.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Äter &lt;pc id="1">katter möss&lt;/pc>?&lt;/source>
    &lt;target>Do &lt;pc id="1">cats&lt;/pc> eat &lt;pc id="2" copyOf="1">
        mice&lt;/pc>? &lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
</section>


    <section id="dataref">
  <title>dataRef</title>

  <para>Original data reference - holds the identifier of the <link linkend="data"><code>&lt;data></code></link>
    element that contains the original data for a given inline code.</para>

  <para><emphasis>Value description:</emphasis> An <link linkend="XMLSchema2">[XML Schema Datatypes]</link> NMTOKEN that MUST be the value of the
      <link linkend="id"><code>id</code></link> attribute of one of the
      <link linkend="data"><code>&lt;data></code></link> element listed in the same <link linkend="unit"><code>&lt;unit></code></link>
    element.</para>

  <para><emphasis>Default value:</emphasis> undefined.</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="ph"><code>&lt;ph></code></link>,
      <link linkend="sc"><code>&lt;sc></code></link>,
      <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">{0}&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Error in '&lt;ph id="1" dataRef="d1"/>'.&lt;/source>
    &lt;target>Erreur dans '&lt;ph id="1" dataRef="d1"/>'.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>The example above shows a <link linkend="ph"><code>&lt;ph></code></link> element that has its original data stored outside the
    content, in a <link linkend="data"><code>&lt;data></code></link> element.</para>

</section>

    <section id="datarefend">
  <title>dataRefEnd</title>

  <para>Original data reference - holds the identifier of the <link linkend="data"><code>&lt;data></code></link>
    element that contains the original data for the end marker of a given inline code.</para>

  <para><emphasis>Value description:</emphasis> An <link linkend="XMLSchema2">[XML Schema Datatypes]</link> NMTOKEN that MUST be the value of the
      <link linkend="id"><code>id</code></link> attribute of one of the
      <link linkend="data"><code>&lt;data></code></link> element listed in the same <link linkend="unit"><code>&lt;unit></code></link>
    element.</para>

  <para><emphasis>Default value:</emphasis> undefined.</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;EM>&lt;/data>
    &lt;data id="d2">&amp;lt;/EM>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>&lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Efficiency&lt;/pc> is the operative word here.&lt;/source>
    &lt;target>&lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Efficacité&lt;/pc> est le mot clé ici.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>The example above shows two <link linkend="pc"><code>&lt;pc></code></link> elements with their original data stored outside the
    content, in two <link linkend="data"><code>&lt;data></code></link> elements.</para>
</section>

    <section id="datarefstart">
  <title>dataRefStart</title>

  <para>Original data reference - holds the identifier of the <link linkend="data"><code>&lt;data></code></link>
    element that contains the original data for the start marker of a given inline code.</para>

  <para><emphasis>Value description:</emphasis> An <link linkend="XMLSchema2">[XML Schema Datatypes]</link> NMTOKEN that MUST be the value of the
      <link linkend="id"><code>id</code></link> attribute of one of the
      <link linkend="data"><code>&lt;data></code></link> element listed in the same <link linkend="unit"><code>&lt;unit></code></link>
    element.</para>

  <para><emphasis>Default value:</emphasis> undefined.</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;EM>&lt;/data>
    &lt;data id="d2">&amp;lt;/EM>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>&lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Efficiency&lt;/pc> is the operative word here.&lt;/source>
    &lt;target>&lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Efficacité&lt;/pc> est le mot clé ici.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>The example above shows two <link linkend="pc"><code>&lt;pc></code></link> elements with their original data stored outside the
    content, in two <link linkend="data"><code>&lt;data></code></link> elements.</para>
</section>


    <section id="dir">
  <title>dir</title>

  <para>Directionality - indicates the directionality of content.</para>

  <para><emphasis>Value description:</emphasis>
    <code>ltr</code> (Left-To-Right), <code>rtl</code> (Right-To-Left), or <code>auto</code>
    (determined heuristically, based on the first strong directional character in scope, see <link linkend="uax9">[UAX #9]</link>).</para>

  <para><emphasis>Default value:</emphasis> default values for this attribute
  depend on the element in which it is used:</para>

  <itemizedlist>
    <listitem>
      <para>When used in a <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, or <link linkend="ec"><code>&lt;ec></code></link>
        element that has a <link linkend="source"><code>&lt;source></code></link> element as its parent:</para>

      <para>The value of the <link linkend="srcdir"><code>srcDir</code></link> attribute of the <link linkend="unit"><code>&lt;unit></code></link> element, in which the elements are located.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, or <link linkend="ec"><code>&lt;ec></code></link>
        element that has a <link linkend="target"><code>&lt;target></code></link> element as its parent: </para>

      <para>The value of the <link linkend="trgdir"><code>trgDir</code></link> attribute of the <link linkend="unit"><code>&lt;unit></code></link> element, in which the elements are located.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, or <link linkend="ec"><code>&lt;ec></code></link>
        element that has a <link linkend="pc"><code>&lt;pc></code></link> element as its parent:</para>

      <para>The value of the <link linkend="dir"><code>dir</code></link>
        attribute of the parent <link linkend="pc"><code>&lt;pc></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="data"><code>&lt;data></code></link>:</para>

      <para>The value <code>auto</code>.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Used in:</emphasis> 
     <link linkend="data"><code>&lt;data></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, and <link linkend="ec"><code>&lt;ec></code></link>.</para>
</section>

    <section id="disp">
  <title>disp</title>

  <para>Display text - holds an alternative user-friendly display representation of the original
    data of the inline code.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">{1}&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Welcome back &lt;ph id="1" disp="[UserName]" dataRef="d1"/>!
        &lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <note>
    <para>To provide a plain text equivalent of the code, use the <link linkend="equiv"><code>equiv</code></link>
    attribute.</para>
  </note>
</section>

    <section id="dispend">
  <title>dispEnd</title>

  <para>Display text - holds an alternative user-friendly display representation of the original
    data of the end marker of an inline code.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">\cf1\ul\b\f1\fs24 &lt;/data>
    &lt;data id="d2">\cf0\ulnone\b0\f0\fs22 &lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Example of &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2"
        dispStart="&amp;lt;span>" dispEnd="&amp;lt;/span>">
        formatted text&lt;/pc>.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>In the example above, the <link linkend="dispstart"><code>dispStart</code></link> and <link linkend="dispend"><code>dispEnd</code></link>
  attributes provide a more user-friendly representation of the original
  formatting codes.</para>

  <note>
    <para>To provide a plain text equivalent of the code, use the <link linkend="equivend"><code>equivEnd</code></link> attribute.</para>
  </note>
</section>

    <section id="dispstart">
  <title>dispStart</title>

  <para>Display text - holds an alternative user-friendly display representation of the original
    data of the start marker of an inline code.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">\cf1\ul\b\f1\fs24 &lt;/data>
    &lt;data id="d2">\cf0\ulnone\b0\f0\fs22 &lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Example of &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2"
        dispStart="&amp;lt;span>" dispEnd="&amp;lt;/span>">
        formatted text&lt;/pc>.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>In the example above, the <link linkend="dispstart"><code>dispStart</code></link> and <link linkend="dispend"><code>dispEnd</code></link>
  attributes provide a more user-friendly representation of the original
  formatting codes.</para>

  <note>
    <para>To provide a plain text equivalent of the code, use the <link linkend="equivstart"><code>equivStart</code></link> attribute.</para>
  </note>
</section>

    <section id="equiv">
  <title>equiv</title>

  <para>Equivalent text - holds a plain text representation of the original data of the inline code
    that can be used when generating a plain text representation of the content.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> an empty string.</para>

  <para><emphasis>Used in:</emphasis> <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;amp;&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Open &lt;ph id="1" equiv="" dataRef="d1"/>File&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <para>In this example the <link linkend="equiv"><code>equiv</code></link> attribute of the <link linkend="ph"><code>&lt;ph></code></link> element is used to indicate
  that the original data of the code can be ignored in the text representation
  of the string. This could, for instance, help a spell-checker tool to
  process the content as "Open File".</para>

  <note>
    <para>To provide a user-friendly representation, use the <link linkend="disp"><code>disp</code></link>
    attribute.</para>
  </note>
</section>

    <section id="equivend">
  <title>equivEnd</title>

  <para>Equivalent text - holds a plain text representation of the original data of the end marker
    of an inline code that can be used when generating a plain text representation of the
    content.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> an empty string</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;span class="link" onclick="linkTo('dbId5345')">
        &lt;/data>
    &lt;data id="d2">&amp;lt;/span>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>The jam made of &lt;pc id="1" dataRefStart="d1" equivStart=""
        dataRefEnd="d2" equivEnd="">lingonberries&lt;/pc> is quite
        tasty.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <note>
    <para>To provide a user-friendly representation, use the <link linkend="dispend"><code>dispEnd</code></link>
    attribute.</para>
  </note>
</section>

    <section id="equivstart">
  <title>equivStart</title>

  <para>Equivalent text - holds a plain text representation of the original data of the start marker
    of an inline code that can be used when generating a plain text representation of the
    content.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> an empty string</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;span class="link" onclick="linkTo('dbId5345')">
        &lt;/data>
    &lt;data id="d2">&amp;lt;/span>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>The jam made of &lt;pc id="1" dataRefStart="d1" equivStart=""
        dataRefEnd="d2" equivEnd="">lingonberries&lt;/pc> is quite
        tasty.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

  <note>
    <para>To provide a user-friendly representation, use the <link linkend="dispstart"><code>dispStart</code></link> attribute.</para>
  </note>
</section>

    <section id="hex">
  <title>hex</title>

  <para>Hexadecimal code point - holds the value of a Unicode code point that is invalid in
    XML.</para>

  <para><emphasis>Value description:</emphasis> A canonical representation of
    the hexBinary <link linkend="XMLSchema2">[XML Schema Datatypes]</link> data type: Two hexadecimal digits to represent each octet
  of the Unicode code point. The allowed values are any of the values
  representing code points invalid in XML, between hexadecimal 0000 and 10FFFF
  (both included).</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="cp"><code>&lt;cp></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;cp hex="001A"/>&lt;cp hex="0003"/></programlisting>

  <para>The example above shows a character U+001A and a character U+0003 as they have to be
    represented in XLIFF.</para>
</section>

    <section id="href">
    <title>href</title>
    
    <para>Hyperlink reference - a pointer to the location of an external skeleton file pertaining to
        the enclosing <link linkend="file"><code>&lt;file></code></link> element.</para>
    
    <para><emphasis>Value description:</emphasis> IRI.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="skeleton"><code>&lt;skeleton></code></link>.</para>
    
</section>

    <section id="id">
  <title>id</title>

  <para>Identifier - a character string used to identify an element.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN. The scope of the values for this attribute
    depends on the element, in which it is used.</para>

  <itemizedlist>
    <listitem>
      <para>When used in a <link linkend="file"><code>&lt;file></code></link> element:</para>
      <para>The value MUST be unique among all <link linkend="file"><code>&lt;file></code></link>
        <code>id</code> attribute values within the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="group"><code>&lt;group></code></link> elements:</para>
      <para>The value MUST be unique among all <link linkend="group"><code>&lt;group></code></link>
        <code>id</code> attribute values within the enclosing <link linkend="file"><code>&lt;file></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="unit"><code>&lt;unit></code></link> elements:</para>
      <para>The value MUST be unique among all <link linkend="unit"><code>&lt;unit></code></link>
        <code>id</code> attribute values within the enclosing <link linkend="file"><code>&lt;file></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="note"><code>&lt;note></code></link> elements:</para>
      <para>The value MUST be unique among all <link linkend="note"><code>&lt;note></code></link>
        <code>id</code> attribute values within the immediate enclosing <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, or <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="data"><code>&lt;data></code></link> elements:</para>
      <para>The value MUST be unique among all <link linkend="data"><code>&lt;data></code></link>
        <code>id</code> attribute values within the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    </listitem>

    <listitem>
      <para>When used in <link linkend="segment"><code>&lt;segment></code></link>, <link linkend="ignorable"><code>&lt;ignorable></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
          <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, or
          <link linkend="ph"><code>&lt;ph></code></link> elements:</para>
      <itemizedlist>
        <listitem>
          <para>The inline elements enclosed by a <link linkend="target"><code>&lt;target></code></link> element MUST use the duplicate <code>id</code>
            values of their corresponding inline elements enclosed within the sibling <link linkend="source"><code>&lt;source></code></link> element if and only if those corresponding
            elements exist.</para>
        </listitem>
        <listitem>
          <para>Except for the above exception, the value MUST be unique among all of the above
            within the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
        </listitem>
      </itemizedlist>
    </listitem>
  </itemizedlist>
  <note>
    <para>All of the above defined uniqueness scopes ignore Module and Extension data. It would be
      impossible to impose those uniqueness requirements onto Module or Extension data. As Core only
      Modifiers could inadvertently cause conflicts with Modules or Extensions based data they
      cannot access. Modules and Extensions reusing Core need to specify their own uniqueness scopes
      for the <link linkend="id">xlf:id</link>. In general, Modules and Extensions are advised to
      mimic the Core uniqueness requirement within their specific wrapper
      elements enclosing the reused Core elements or attributes, yet Module
      or Extensions are free to set wider uniqueness scopes if it makes
      business sense.</para>
  </note>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="note"><code>&lt;note></code></link>, <link linkend="segment"><code>&lt;segment></code></link>, <link linkend="ignorable"><code>&lt;ignorable></code></link>, <link linkend="data"><code>&lt;data></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link> and
      <link linkend="sm"><code>&lt;sm></code></link>.</para>
</section>

    <section id="isolated">
  <title>isolated</title>

  <para>Orphan code flag - indicates if the start or end marker of a spanning inline code is not in
    the same <link linkend="unit"><code>&lt;unit></code></link> as its corresponding end or start code.</para>

  <para><emphasis>Value description:</emphasis>
    <code>yes</code> if this start or end code is not in the same <link linkend="unit"><code>&lt;unit></code></link>
    as its corresponding end or start code, <code>no</code> if both codes are in the same <link linkend="unit"><code>&lt;unit></code></link>.</para>

  <para><emphasis>Default value:</emphasis> <code>no</code>.</para>

  <para><emphasis>Used in:</emphasis> <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">

&lt;file id="f2" xmlns:abc="urn:abc">
  &lt;unit id="1">
    &lt;mtc:matches>
      &lt;mtc:match id="tc01" ref="seg2">
        &lt;source>&lt;sc id="1" isolated="yes"/>Warning:&lt;/source>
        &lt;target>&lt;sc id="1" isolated="yes"/>Attention :&lt;/target>
      &lt;/mtc:match>
    &lt;/mtc:matches>
    &lt;segment id="seg2">
      &lt;source>&lt;pc id="1">Warning: File not found.&lt;/pc>&lt;/source>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
</programlisting>

  <para>In the example above the <link linkend="sc"><code>&lt;sc></code></link> elements have their <link linkend="isolated"><code>isolated</code></link>
  attribute set to <code>yes</code> because they do not have their
  corresponding <link linkend="ec"><code>&lt;ec></code></link> elements.</para>
</section>

    <section id="name">
    <title>name</title>

    <para>Resource name - the original identifier of the resource corresponding to the
            extracted
        <link linkend="unit"><code>&lt;unit></code></link> or <link linkend="unit"><code>&lt;group></code></link>.</para>
    <para>For example: the key in the key/value
        pair in a Java properties file, the ID of a string in a Windows string table, the index
        value of an entry in a database table, etc.</para>

    <para><emphasis>Value description:</emphasis> Text.</para>

    <para><emphasis>Default value:</emphasis> undefined.</para>

    <para><emphasis>Used in:</emphasis> <link linkend="unit"><code>&lt;unit></code></link> and <link linkend="unit"><code>&lt;group></code></link>.</para>

</section>


    <section id="order">
    <title>order</title>

    <para>target order - indicates the order, in which to compose the target content parts.</para>

    <para><emphasis>Value description:</emphasis> A positive integer.</para>

    <para><emphasis>Default value:</emphasis> implicit, see below</para>
    <para>When order is not explicitly set, the <link linkend="target"><code>&lt;target></code></link>
        <link linkend="order"><code>order</code></link> corresponds to its sibling <link linkend="source"><code>&lt;source></code></link>, i.e. it is not being moved anywhere when
        composing target content of the enclosing <link linkend="unit"><code>&lt;unit></code></link> and the implicit <link linkend="order"><code>order</code></link> value is of that position within the <link linkend="unit"><code>&lt;unit></code></link>. </para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="target"><code>&lt;target></code></link>.</para>
    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>The value of the <link linkend="order"><code>order</code></link> attribute MUST be
                unique within the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
        </listitem>
        <listitem>
            <para>The value of each of the <link linkend="order"><code>order</code></link>
                attributes used within a <link linkend="unit"><code>&lt;unit></code></link> element MUST NOT be higher than
                N, where N is the number of all current <link linkend="segment"><code>&lt;segment></code></link> and <link linkend="ignorable"><code>&lt;ignorable></code></link> children of the said <link linkend="unit"><code>&lt;unit></code></link> element.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="segorder">Segments            Order</link> section for the normative usage description.</para>
</section>

    <section id="original">
    <title>original</title>
    
    <para>Original file - a pointer to the location of the original document from which the content
        of the enclosing <link linkend="file"><code>&lt;file></code></link> element is extracted.</para>
    
    <para><emphasis>Value description:</emphasis> IRI.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="file"><code>&lt;file></code></link>.</para>
    
</section>

    <section id="priority">
    <title>priority</title>

    <para>Priority - provides a way to prioritize notes.</para>

    <para><emphasis>Value description:</emphasis> Integer 1-10.</para>

    <para><emphasis>Default value:</emphasis> <code>1</code></para>

    <para><emphasis>Used in:</emphasis> <link linkend="note"><code>&lt;note></code></link>.</para>

    <note><para>Note that 1 is the highest priority that can be interpreted as an alert, e.g. an <link linkend="ITS20">[ITS]</link>
            <ulink url="http://www.w3.org/TR/its20/#locNote-datacat">Localization Note</ulink> of
            the type alert. The best practice is to use only one alert per an annotated element, and
            the full scale of 2-10 can be used for prioritizing notes of lesser importance than the
            alert.</para></note>
</section>

    <section id="ref">
  <title>ref</title>

  <para>Reference - holds a reference for the associated element.</para>

  <para><emphasis>Value description:</emphasis> A value of the <link linkend="XMLSchema2">[XML Schema Datatypes]</link> type anyURI. The semantics of the value
    depends on where the attribute is used:</para>

  <itemizedlist>
    <listitem>
      <para>When used in a <link linkend="note">&lt;note></link> element, the URI value is referring to a <link linkend="segment"><code>&lt;segment></code></link>, <link linkend="source"><code>&lt;source></code></link> or <link linkend="target"><code>&lt;target></code></link> element within the same enclosing <link linkend="unit"><code>&lt;unit></code></link>.</para>
      <para>When used in a <link linkend="termAnnotation">term          annotation</link>, the URI value is referring to a resource providing information about
        the term.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="matchAnnotation">translation candidates annotation</link>, the URI value is referring to an external
        resource providing information about the translation candidate.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="commentAnnotation">comment annotation</link>, the value is referring to a <link linkend="note"><code>&lt;note></code></link> element within the same enclosing <link linkend="unit"><code>&lt;unit></code></link>.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="customAnnotation">custom annotation</link>, the value is defined by each custom annotation.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="note"><code>&lt;note></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>The &lt;pc id="1">ref&lt;/pc> attribute of a term
        annotation holds a &lt;mrk id="m1" type="term"
        ref="http://dbpedia.org/page/Uniform_Resource_Identifier">
        URI&lt;/mrk> pointing to more information about the given
        term.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>


</section>



    

    <section id="srcdir">
  <title>srcDir</title>

  <para>Source directionality - indicates the directionality of the source content.</para>

  <para><emphasis>Value description:</emphasis>
    <code>ltr</code> (Left-To-Right), <code>rtl</code> (Right-To-Left), , or <code>auto</code>
    (determined heuristically, based on the first strong directional character in scope, see <link linkend="uax9">[UAX #9]</link>).</para>

  <para><emphasis>Default value:</emphasis> default values for this attribute depend on the element
    in which it is used:</para>

  <itemizedlist>
    <listitem>
      <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

      <para>The value <code>auto</code>.</para>
    </listitem>

    <listitem>
      <para>When used in any other element:</para>

      <para>The value of the <link linkend="srcdir"><code>srcDir</code></link> attribute of its parent element.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>. </para>
</section>

    <section id="srcLang">
    <title>srcLang</title>

    <para>Source language - the code of the language, in which the text to be translated is
        expressed.</para>

    <para><emphasis>Value description:</emphasis> A language code as described in <link linkend="bcp47">[BCP 47]</link>.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="xliff"><code>&lt;xliff></code></link>.</para>
</section>

    <section id="startref">
  <title>startRef</title>

  <para>Start code or marker reference - The <link linkend="id"><code>id</code></link> of the <link linkend="sc"><code>&lt;sc></code></link> element or the <link linkend="sm"><code>&lt;sm></code></link> element a given <link linkend="ec"><code>&lt;ec></code></link> element
    or <link linkend="em"><code>&lt;em></code></link>
    element corresponds.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="ec"><code>&lt;ec></code></link>, <link linkend="em"><code>&lt;em></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>&lt;sc id="1"/>Bold, &lt;sc id="2"/>both
        &lt;ec startRef="1"/>, italics&lt;ec startRef="2"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>
</section>
    <section id="state">
    <title>state</title>

    <para>State - indicates the state of the translation of a segment.</para>

    <para><emphasis>Value description:</emphasis> The value MUST be set to one of the following
        values:</para>

    <simplelist type="vert">
        <member><code>initial</code> - indicates the segment is in its initial state.</member>
        <member><code>translated</code> - indicates the segment has been translated.</member>
        <member><code>reviewed</code> - indicates the segment has been reviewed.</member>
        <member><code>final</code> - indicates the segment is finalized and ready to be
            used.</member>
    </simplelist>
    <para>The 4 defined states constitute a simple linear state machine that advances in the above
        given order. No particular workflow or process is prescribed, except that the three states
        more advanced than the default <code>initial</code> assume the existence of a translation
        within the segment. One can further specify the state of the translation using the <link linkend="substate"><code>subState</code></link>
        attribute.</para>

    <para><emphasis>Default value:</emphasis>
        <code>initial</code></para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="segment"><code>&lt;segment></code></link></para>

    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>When the optional <link linkend="state"><code>state</code></link> attribute is
                added to a <link linkend="segment"><code>&lt;segment></code></link> element, its value MUST be set to
                    <code>initial</code> if the element doesn't have a <link linkend="target"><code>&lt;target></code></link> child. All valid values MAY be used when a
                    <link linkend="target"><code>&lt;target></code></link> child is present. </para>
        </listitem>
        <listitem>
            <para>Writers updating the attribute <link linkend="state"><code>state</code></link>
                MUST also update or delete <link linkend="substate"><code>subState</code></link>.</para>
        </listitem>
    </itemizedlist>

    <note>
        <para><link linkend="state"><code>state</code></link> is an OPTIONAL attribute of segments
            with a default value and segmentation can change as the XLIFF roundtrip progresses,
            hence implementers don't have to make explicit use of the attribute. However setting of
            the attribute is advantageous if a workflow needs to make use of Advanced Validation
            methods.</para>
    </note>
</section>


    <section id="subflows">
  <title>subFlows</title>

  <para>Sub-flows list - holds a list of <link linkend="id"><code>id</code></link> attributes corresponding to the <link linkend="unit"><code>&lt;unit></code></link>
    elements that contain the sub-flows for a given inline code.</para>

  <para><emphasis>Value description:</emphasis> A list of NMTOKEN values
  separated by spaces. Each value corresponds to the <link linkend="id"><code>id</code></link> attribute of a <link linkend="unit"><code>&lt;unit></code></link> element.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <para>See the example in the <link linkend="subflowsdesc">Sub-Flows section</link>.</para>
</section>

    <section id="subflowsend">
  <title>subFlowsEnd</title>

  <para>Sub-flows list - holds a list of <link linkend="id"><code>id</code></link> attributes corresponding to the <link linkend="unit"><code>&lt;unit></code></link>
    elements that contain the sub-flows for the end marker of a given inline code.</para>

  <para><emphasis>Value description:</emphasis> A list of NMTOKEN values
  separated by spaces. Each value corresponds to the <link linkend="id"><code>id</code></link> attribute of a <link linkend="unit"><code>&lt;unit></code></link> element.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <para>See the example in the <link linkend="subflowsdesc">Sub-Flows section</link>.</para>
</section>

    <section id="subflowsstart">
  <title>subFlowsStart</title>

  <para>Sub-flows list - holds a list of <link linkend="id"><code>id</code></link> attributes corresponding to the <link linkend="unit"><code>&lt;unit></code></link>
    elements that contain the sub-flows for the start marker of a given inline code.</para>

  <para><emphasis>Value description:</emphasis> A list of NMTOKEN values
  separated by spaces. Each value corresponds to the <link linkend="id"><code>id</code></link> attribute of a <link linkend="unit"><code>&lt;unit></code></link> element.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="pc"><code>&lt;pc></code></link>.</para>

  <para><emphasis>Example:</emphasis></para>

  <para>See the example in the <link linkend="subflowsdesc">Sub-Flows section</link>.</para>
</section>

    <section id="substate">
  <title>subState</title>

  <para>subState - indicates a user-defined status for the <link linkend="segment"><code>&lt;segment></code></link> element.</para>

  <para><emphasis>Value description:</emphasis></para>

  <para>The value is composed of a prefix and a sub-value separated by a character <code>:</code>
    (U+003A).</para>

  <para>The prefix is a string uniquely identifying a collection of values for a specific authority.
    The sub-value is any string value defined by an authority.</para>

  <para>The prefix <code>xlf</code> is reserved for this specification.</para>

  <para>Other prefixes and sub-values MAY be defined by the users.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="segment"><code>&lt;segment></code></link></para>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>If the attribute <link linkend="substate"><code>subState</code></link> is used, the attribute <link linkend="state"><code>state</code></link> MUST be explicitly set.</para>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>


    <listitem>
      <para>Writers updating the attribute <link linkend="state"><code>state</code></link> MUST also update or delete <link linkend="substate"><code>subState</code></link>.</para>
    </listitem>
  </itemizedlist>
</section>
    <section id="subtype">
  <title>subType</title>

  <para>subType - indicates the secondary level type of an inline code.</para>

  <para><emphasis>Value description:</emphasis></para>

  <para>The value is composed of a prefix and a sub-value separated by a character <code>:</code>
    (U+003A).</para>

  <para>The prefix is a string uniquely identifying a collection of sub-values for a specific
    authority. The sub-value is any string value defined by the authority.</para>

  <para>The prefix <code>xlf</code> is reserved for this specification, and the following sub-values
    are defined:</para>

  <simplelist type="vert">
    <member><code>xlf:lb</code> - Line break</member>

    <member><code>xlf:pb</code> - Page break</member>

    <member><code>xlf:b</code> - Bold</member>

    <member><code>xlf:i</code> - Italics</member>

    <member><code>xlf:u</code> - Underlined</member>

    <member><code>xlf:var</code> - Variable</member>
  </simplelist>

  <para>Other prefixes and sub-values MAY be defined by the users.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="pc"><code>&lt;pc></code></link>,
      <link linkend="sc"><code>&lt;sc></code></link>,
      <link linkend="ec"><code>&lt;ec></code></link>
    and <link linkend="ph"><code>&lt;ph></code></link></para>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>If the attribute <link linkend="subtype"><code>subType</code></link> is used, the attribute <link linkend="type"><code>type</code></link> MUST be specified as well.</para>
    </listitem>
    <listitem>
      <para>The reserved <code>xlf:</code> prefixed values map onto the <link linkend="type"><code>type</code></link> attribute values as follows:</para>
      <simplelist type="vert">
        <member> For <code>xlf:b</code>, <code>xlf:i</code>, <code>xlf:u</code>,
          <code>xlf:lb</code>, and <code>xlf:pb</code>, the REQUIRED value of the <link linkend="type"><code>type</code></link> attribute is
            <code>fmt</code>.</member>
        <member> For <code>xlf:var</code>, the REQUIRED value of the <link linkend="type"><code>type</code></link> attribute is <code>ui</code>.</member>
      </simplelist>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>


    <listitem>
      <para>Modifiers updating the attribute <link linkend="type"><code>type</code></link> MUST also update or delete <link linkend="subtype"><code>subType</code></link>.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="trgLang">
    <title>trgLang</title>

    <para>Target language - the code of the language, in which the translated text is
        expressed.</para>

    <para><emphasis>Value description:</emphasis> A language code as described in <link linkend="bcp47">[BCP 47]</link>.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="xliff"><code>&lt;xliff></code></link>.</para>
</section>

    <section id="translate">
    <title>translate</title>

    <para>Translate - indicates whether or not the source text in the scope of the given <code>translate</code> flag is intended
        for translation.</para>

    <para><emphasis>Value description:</emphasis> <code>yes</code> or <code>no</code>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value <code>yes</code>.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="translate"><code>translate</code></link> attribute of its parent element.
            </para>

        </listitem>
        <listitem>
            <para>When used in annotations markers
                <link linkend="mrk"><code>&lt;mrk></code></link> or
                <link linkend="sm"><code>&lt;sm></code></link>:</para>


            <para>The value of the <link linkend="translate"><code>translate</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="unit"><code>&lt;unit></code></link> element, in which the marker in question is located.
            </para>

        </listitem>

        
    </itemizedlist>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>,
        <link linkend="mrk"><code>&lt;mrk></code></link> and
        <link linkend="sm"><code>&lt;sm></code></link>.
    </para>

</section>

    <section id="trgdir">
  <title>trgDir</title>

  <para>Target directionality - indicates the directionality of the target content.</para>

  <para><emphasis>Value description:</emphasis>
    <code>ltr</code> (Left-To-Right), <code>rtl</code> (Right-To-Left), or <code>auto</code>
    (determined heuristically, based on the first strong directional character in scope, see <link linkend="uax9">[UAX #9]</link>).</para>

  <para><emphasis>Default value:</emphasis> default values for this attribute
  depend on the element in which it is used:</para>

  <itemizedlist>
    <listitem>
      <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

      <para>The value <code>auto</code>.</para>
    </listitem>

    <listitem>
      <para>When used in any other element:</para>

      <para>The value of the <link linkend="trgdir"><code>trgDir</code></link> attribute of its parent element.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>. </para>
</section>

    <section id="type">
  <title>type</title>
  <para>Type - indicates the type of an element.</para>
  <para><emphasis>Value description:</emphasis> Allowed values for this attribute depend on the
    element in which it is used.</para>
  <itemizedlist>
    <listitem>
      <para>When used in <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link> or
          <link linkend="ph"><code>&lt;ph></code></link>:</para>
      <para>The value MUST be set to one of the following values:</para>
      <simplelist type="vert">
        <member><code>fmt</code> - Formatting (e.g. a &lt;b> element in HTML)</member>
        <member><code>ui</code> - User interface element</member>
        <member><code>quote</code> - Inline quotation (as opposed to a block citation)</member>
        <member><code>link</code> - Link (e.g. an &lt;a> element in HTML)</member>
        <member><code>image</code> - Image or graphic</member>
        <member><code>other</code> - Type of element not covered by any of the other top-level
          types.</member>
      </simplelist>
      <para><emphasis>Example:</emphasis>
        <programlisting format="linespecific">
&lt;segment>
  &lt;source>&lt;pc id="q1" type="quote"><foreignphrase lang="cs">Blázen,
      chce dobýt točnu v takovém počasí&lt;/pc>, dodal slovy svého
      oblíbeného imaginárního autora.</foreignphrase>&lt;/source>
  &lt;target>&lt;pc id="q1" type="quote">Madman, he wants to conquer the
      pole in this weather&lt;/pc>, offered he the words of his
      favourite imaginary playwright.&lt;/target>
&lt;/segment>
</programlisting>
      </para>
      <para>One can further specify the type of a code using the <link linkend="subtype"><code>subType</code></link> attribute.</para>
      <para><emphasis>Default value:</emphasis> undefined</para>
    </listitem>
    <listitem>
      <para>When used in <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
      <para>One of the following values: <code>generic</code>, <code>comment</code>,
          <code>term</code>, or a user-defined value that is composed of a prefix and a sub-value
        separated by a character <code>:</code> (U+003A).</para>
      <para>The prefix is a string uniquely identifying a collection of sub-values for a specific
        authority. The sub-value is any string value defined by the authority.</para>
      <para><emphasis>Default value:</emphasis>
        <code>generic</code></para>
    </listitem>
    <listitem>
      <para>When used in <link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>:</para>
      <para>A value that is composed of a prefix and a sub-value separated by a character
          <code>:</code> (U+003A).</para>
      <para>The prefix is a string uniquely identifying a collection of sub-values for a specific
        authority. The sub-value is any string value defined by the authority. The prefix
          <code>xlf</code> is reserved.</para>
      <para><emphasis>Default value:</emphasis> undefined</para>
    </listitem>
  </itemizedlist>
  <para><emphasis>Used in:</emphasis>
    <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
      <link linkend="ph"><code>&lt;ph></code></link>
    and <link linkend="sm"><code>&lt;sm></code></link>.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Modifiers updating the attribute <link linkend="type"><code>type</code></link> on <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, or
          <link linkend="ph"><code>&lt;ph></code></link> MUST also update or delete <link linkend="subtype"><code>subType</code></link>.</para>
    </listitem>
  </itemizedlist>
</section>

    <section id="value">
  <title>value</title>

  <para>Value - holds a value for the associated annotation.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <itemizedlist>
    <listitem>
      <para>When used in a <link linkend="termAnnotation">term annotation</link>, the value is a
      definition of the term.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="commentAnnotation">comment annotation</link>, the value is
      the text of the comment.</para>
    </listitem>

    <listitem>
      <para>When used in a <link linkend="customAnnotation">custom annotation</link>, the value is
      defined by each custom annotation.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>
</section>

    <section id="version">
    <title>version</title>

    <para>XLIFF Version - is used to specify the version of the XLIFF Document. This corresponds to
        the version number of the XLIFF specification that the XLIFF document adheres to. For this
        specification, the version is <emphasis>2.2</emphasis>.</para>

    <para><emphasis>Value description:</emphasis> 2.0, 2.1 or 2.2</para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="xliff"><code>&lt;xliff></code></link>.</para>

</section>
  </section>

  <section>
    <title>XML namespace</title>

    <para>The attributes from XML namespace used in XLIFF 2.2 are: <link linkend="xml_lang">xml:lang</link> and <link linkend="xml_space">xml:space</link>.</para>

    <section id="xml_lang">
    <title>xml:lang</title>

    <para>Language - the xml:lang attribute specifies the language variant of the text of a given
        element. For example: <code>xml:lang="fr-FR"</code> indicates the French language as spoken
        in France.</para>

    <para><emphasis>Value description:</emphasis> A language code as described in <link linkend="bcp47">[BCP 47]</link>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in a <link linkend="source"><code>&lt;source></code></link> element:</para>

            <para>The value set in the <link linkend="srcLang"><code>srcLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
        </listitem>
        <listitem>
            <para>When used in a <link linkend="target"><code>&lt;target></code></link> element:</para>

            <para>The value set in the <link linkend="trgLang"><code>trgLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
        </listitem>
        <listitem>
            <para>When used in any other element:</para>
            <para>The value of the <code>xml:lang</code> attribute of its parent element. </para>
        </listitem>

    </itemizedlist>

    <para><emphasis>Used in:</emphasis>
        <link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link> and where extension attributes are allowed.</para>

</section>

    <section id="xml_space">
    <title>xml:space</title>
    
    <para>White spaces - the xml:space attribute specifies how white spaces (ASCII spaces, tabs and
        line-breaks) are to be treated.</para>
    
    
    <para><emphasis>Value description:</emphasis>
        <code>default</code> or <code>preserve</code>. The value <code>default</code> signals that
        an application's default white-space processing modes are acceptable for this element; the
        value <code>preserve</code> indicates the intent that applications preserve all the white
        space. This declared intent is considered to apply to all elements within the content of the
        element where it is specified, unless overridden with another instance of the xml:space
        attribute. For more information see <ulink url="http://www.w3.org/TR/REC-xml/#sec-white-space">the section on xml:space</ulink> in the <link linkend="bib_XML">[XML]</link> specification. </para>
    
    <para><emphasis>Default value:</emphasis>  default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="data"><code>&lt;data></code></link>:</para>
            
            <para>The value <code>preserve</code>.</para>
        </listitem>
        <listitem>
            <para>When used in <link linkend="xliff"><code>&lt;xliff></code></link>:</para>
            
            <para>The value <code>default</code>.</para>
        </listitem>
        <listitem>
            <para>When used in any other element:</para>
            <para>The value of the <code>xml:space</code> attribute of its parent element.
            </para>   
        </listitem>
    </itemizedlist>
    
    <para><emphasis>Used in:</emphasis> <link linkend="xliff"><code>&lt;xliff></code></link>, 
        <link linkend="file"><code>&lt;file></code></link>,
        <link linkend="group"><code>&lt;group></code></link>,
        <link linkend="unit"><code>&lt;unit></code></link>,
        <link linkend="source"><code>&lt;source></code></link>,
        <link linkend="target"><code>&lt;target></code></link>,
        and <link linkend="data"><code>&lt;data></code></link>.
    </para>
</section>
  </section>
</section>

    <section>
        <title>CDATA sections</title>

        <para>CDATA sections (<code>&lt;![CDATA[...]]&gt;</code>) are allowed in XLIFF content, but
            on output they MAY be changed into normal escaped content.</para>

        <para>Note that avoiding CDATA sections is considered a best practice from the
            internationalization viewpoint <link linkend="biblio_xmli18nbp">[XML I18N BP]</link> .</para>

        <itemizedlist>
            <title>Processing Requirements</title>

            <listitem>
                <para>Agents MUST process CDATA sections.</para>
            </listitem>

            <listitem>
                <para>Writers MAY preserve the original CDATA sections.</para>
            </listitem>
        </itemizedlist>
    </section>

    <section>
        <title>XML Comments</title>

        <para>XML comments (<code>&lt;!--...--!></code>) are allowed in XLIFF content, but they
            are ignored in the parsed content.</para>

        <para>For example:</para>

        <programlisting format="linespecific">
&lt;source>Text content &lt;!--IMPORTANT-->that is important&lt;/source>
</programlisting>

        <para>and</para>

        <programlisting format="linespecific">
&lt;source>Text content that is important&lt;/source>
</programlisting>

        <para>are identical after parsing and correspond to the same following parsed
            content:</para>

        <programlisting format="linespecific">
Text content that is important</programlisting>

        <para>To annotate a section of the content with a comment that is recognized and preserved
            by XLIFF user agents, use the <link linkend="note"><code>&lt;note></code></link> element, or the <link linkend="commentAnnotation"><code>&lt;mrk></code></link> element.</para>

        <itemizedlist>
            <title>Processing Requirements</title>

            <listitem>
                <para>Agents MUST ignore XML comments. That is the XLIFF
                    parsed content is the same whether or not there is an XML comment in the
                    document.</para>
            </listitem>

            <listitem>
                <para>Writers MAY preserve XML comments on output.</para>
            </listitem>
        </itemizedlist>
    </section>
    <section>
        <title>XML Processing Instructions</title>

        <para>XML Processing Instructions <link linkend="bib_XML">[XML]</link> (see specifically <ulink url="http://www.w3.org/TR/REC-xml/#sec-pi">http://www.w3.org/TR/REC-xml/#sec-pi</ulink>) are an XML mechanism to "allow
            documents to contain instructions for applications." XML Processing Instructions are
            allowed in XLIFF content but they are ignored in the parsed content in the same sense as
            XML Comments.</para>
        <itemizedlist>
            <title>Processing Requirements</title>
            <listitem>
                <para>Agents MUST NOT use Processing Instructions as a means
                    to implement a feature already specified in XLIFF Core or
                        Modules.</para>
            </listitem>
            <listitem>
                <para>Writers SHOULD preserve XML Processing Instructions in
                    an XLIFF document.</para>
            </listitem>
        </itemizedlist>

        <warning>
            <para>Note that Agents using Processing Instructions to implement
                    XLIFF Core or Module features are
                not compliant XLIFF applications disregarding whether they are otherwise conformant.
            </para>
        </warning>
        <warning>
            <para>Although this specification encourages XLIFF Agents to
                preserve XML Processing Instructions, it is not and cannot be, for valid processing
                reasons, an absolute protection and it is for instance highly unlikely that
                Processing Instructions could survive an XLIFF roundtrip at the <link linkend="segment"><code>&lt;segment></code></link> level or lower. Hence implementers are
                discouraged from using XML Processing Instructions at the <link linkend="segment"><code>&lt;segment></code></link> and lower levels.</para>
        </warning>

    </section>

    <section id="inline">
  <title>Inline Content</title>

  <para>The XLIFF inline content defines how to encode the content extracted from the original
    source. The content includes the following types of data:</para>

  <itemizedlist>
    <listitem>
      <para><link linkend="text">Text</link> -- Textual content.</para>
    </listitem>

    <listitem>
      <para><link linkend="inlineCodes">Inline codes</link> -- Sequences of content that are not
        linguistic text, such as formatting codes, variable placeholders, etc.</para>

      <para>For example: the element <code>&lt;b></code> in HTML, or the placeholder
          <code>{0}</code> in a Java string.</para>
    </listitem>

    <listitem>
      <para><link linkend="annotations">Annotations</link> -- Markers that delimit a span of the
        content and carry or point to information about the specified content.</para>

      <para>For example: a flag indicating that a given section of text is not intended for
        translation, or an element indicating that a given expression in the text is a term
        associated with a definition.</para>
    </listitem>
  </itemizedlist>

  <para>There are two elements that contain inline markup in XLIFF: <link linkend="source"><code>&lt;source></code></link> and <link linkend="target"><code>&lt;target></code></link>.</para>

  <para>In some cases, data directly associated with inline elements MAY also be stored at the
      <link linkend="unit"><code>&lt;unit></code></link> level in an <link linkend="originaldata"><code>&lt;originalData></code></link> element.</para>

  <section id="text">
    <title>Text</title>

    <para>The XLIFF inline markup does not prescribe how to represent normal text, besides that it
      MUST be valid XML.</para>

    <section>
      <title>Characters invalid in XML</title>

      <para>Because the content represented in XLIFF can be extracted from anywhere, including
        software resources and other material that can contain control characters, XLIFF needs to be
        able to represent all Unicode code points <link linkend="Unicode">[Unicode]</link>.</para>

      <para>However, XML does not have the capability to represent all Unicode code points <link linkend="Unicode">[Unicode]</link>, and does not provide any
        official mechanism to escape the forbidden code points.</para>

      <para>To remedy this, the inline markup provides the <link linkend="cp"><code>&lt;cp></code></link>
        element.</para>

      <para>The syntax and semantic of <link linkend="cp"><code>&lt;cp></code></link> in XLIFF are similar to the ones of
          <code>&lt;cp></code> in the Unicode Locale Data Markup Language <link linkend="biblio_ldml">[LDML]</link>.</para>
    </section>
  </section>

  <section id="inlineCodes">
    <title>Inline Codes</title>

    <para>The specification takes into account two types of codes:</para>

    <variablelist>
      <varlistentry id="originalCode">
        <term>Original code</term>

        <listitem>
          <para>An <emphasis>original code</emphasis> is a code that exists in the original document
            being extracted into XLIFF.</para>
        </listitem>
      </varlistentry>

      <varlistentry id="addedCode">
        <term>Added code</term>

        <listitem>
          <para>An <emphasis>added code</emphasis> is a code that does not exist in the original
            document, but has been added to the content at some point after extraction.</para>
        </listitem>
      </varlistentry>
    </variablelist>

    <para>Any code (original or added) belongs to one of the two following categories:</para>

    <variablelist>
      <varlistentry id="standalone">
        <term>Standalone</term>

        <listitem>
          <para>A <emphasis>standalone</emphasis> code is a code that corresponds to a single
            position in the content. An example of such code is the <code>&lt;br/></code> element
            in HTML.</para>
        </listitem>
      </varlistentry>

      <varlistentry id="spanLike">
        <term>Spanning</term>

        <listitem>
          <para>A <emphasis>spanning</emphasis> code is a code that encloses a section of the
            content using a start and an end marker. There are two kinds of spanning codes:</para>

          <itemizedlist>
            <listitem>
              <para>Codes that can overlap, that is: they can enclose a non-closing or a non-opening
                spanning code. Such codes do not have an XML-like behavior. For example the RTF code
                  <code>\b1...\b0</code> is a spanning code that is allowed to overlap.</para>
            </listitem>

            <listitem>
              <para>Codes that cannot overlap, that is: they cannot enclose a partial spanning code
                and have an XML-like behavior at the same time. An example of such code is the
                  <code>&lt;emphasis>...&lt;/emphasis></code> element in DocBook.</para>
            </listitem>
          </itemizedlist>

          <para>When the opening or closing marker of a spanning code does not have its
            corresponding closing or opening marker in the same unit, it is an <emphasis>orphan
              code</emphasis>.</para>
        </listitem>
      </varlistentry>
    </variablelist>

    <section id="representingcodes">
      <title>Representation of the codes</title>

      <para>Spanning codes present a set of challenges in XLIFF:</para>

      <para>First, because the code format of the original data extracted to XLIFF does not need to
        be XML, spanning codes can overlap.</para>

      <para>For example, in the following RTF content, the format markers are in a sequence: start
        bold, start italics, end bold, end italics. This does not translate into a well-formed
        mapping.</para>

      <programlisting format="linespecific">
Text in \b bold \i and\b0  italics\i0</programlisting>

      <para>Another challenge is the possible effect of segmentation: A spanning code can start in
        one segment and end in another.</para>

      <para>For example, in the following HTML content, the segmentation splits the text
        independently of the codes so the starting and ending tags of the
          <code>&lt;B>...&lt;/B></code> element end up in different parts of the <link linkend="unit"><code>&lt;unit></code></link> element:</para>

      <programlisting format="linespecific">
[Sentence &lt;B>one. ][Sentence two.][ ][Sentence&lt;/B> three.]</programlisting>

      <para>Finally, a third potential cause of complication is that the start or the end markers of
        a spanning code can become orphans if their segment is used outside of its original <link linkend="unit"><code>&lt;unit></code></link>.</para>

      <para>For example, an entry with bold text can be broken down into two segments:</para>

      <programlisting format="linespecific">
Segment 1 = "&lt;b>Warning found: "
Segment 2 = "The file is read-only&lt;/b>"</programlisting>

      <para>And later, one of the segments can be re-used outside its original <link linkend="unit"><code>&lt;unit></code></link>, for instance as a translation candidate:</para>

      <programlisting format="linespecific">
New segment = "&lt;b>Warning found - see log&lt;/b>"
Fuzzy match = "&lt;b>Warning found: "</programlisting>

      <para>Because of these use cases, the representation of a spanning code cannot always be
        mapped to a similar spanning element in XLIFF.</para>

      <para>When taking into account these issues, the possible use cases and their corresponding
        XLIFF representations are as follow:</para>

      <table>
        <title>Inline code use cases</title>

        <tgroup cols="2">
          <thead>
            <row>
              <entry>Use Case</entry>

              <entry>Example of Representation</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Standalone code</entry>

              <entry><link linkend="ph"><code>&lt;ph
                    id='1'/></code></link></entry>
            </row>

            <row>
              <entry>Well-formed spanning code</entry>

              <entry><link linkend="pc"><code>&lt;pc
                    id='1'>text&lt;/pc></code></link></entry>
            </row>

            <row>
              <entry>Start marker of spanning code</entry>

              <entry><link linkend="sc"><code>&lt;sc
                    id='1'/></code></link></entry>
            </row>

            <row>
              <entry>End marker of spanning code</entry>

              <entry><link linkend="ec"><code>&lt;ec
                    startRef='1'/></code></link></entry>
            </row>

            <row>
              <entry>Orphan start marker of spanning code</entry>

              <entry><link linkend="sc"><code>&lt;sc id='1'
                    isolated='yes'/></code></link></entry>
            </row>

            <row>
              <entry>Orphan end marker of spanning code</entry>

              <entry><link linkend="ec"><code>&lt;ec id='1'
                    isolated='yes'/></code></link></entry>
            </row>
          </tbody>
        </tgroup>
      </table>
    </section>

    <section id="spanningcodeusage">
      <title>Usage of &lt;pc> and &lt;sc>/&lt;ec></title>

      <para>A spanning code MUST be represented using a <link linkend="sc"><code>&lt;sc></code></link> element and a <link linkend="ec"><code>&lt;ec></code></link>
        element if the code is not well-formed or orphan.</para>

      <para>For example, the following RTF content has two spans of formatting:</para>

      <programlisting format="linespecific">
Text in \b bold \i and\b0  italics\i0</programlisting>

      <para>They can only be represented using two pairs of <link linkend="sc"><code>&lt;sc></code></link> and
          <link linkend="ec"><code>&lt;ec></code></link> elements:</para>

      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">\b &lt;/data>
    &lt;data id="d2">\i &lt;/data>
    &lt;data id="d3">\b0 &lt;/data>
    &lt;data id="d4">\i0 &lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Text in &lt;sc id="1" dataRef="d1"/>bold &lt;sc id="2"
      dataRef="d2"/> and&lt;ec startRef="1" dataRef="d3"/>
       italics&lt;ec startRef="2" dataRef="d4"/>. &lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

      <para>If the spanning code is well-formed it MAY be represented using either a single <link linkend="pc"><code>&lt;pc></code></link>
        element or using a pair of <link linkend="sc"><code>&lt;sc></code></link> and a <link linkend="ec"><code>&lt;ec></code></link> elements.</para>

      <para>For example, the following RTF content has a single span of formatting:</para>

      <programlisting format="linespecific">
Text in \b bold\b0 .</programlisting>

      <para>It can be represented using either notations:</para>

      <programlisting format="linespecific">
Text in &lt;pc id="1" canOverlap="yes" dataRefStart="c1" dataRefEnd="c2">
bold&lt;/pc>.</programlisting>

      <programlisting format="linespecific">
Text in &lt;sc id="1" dataRef="c1"/>bold&lt;ec startRef="1" dataRef="c2"/>.</programlisting>

      <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
          <para>When both the <link linkend="pc"><code>&lt;pc></code></link> and the <link linkend="sc"><code>&lt;sc></code></link>/<link linkend="ec"><code>&lt;ec></code></link> representations are possible,
            Extractors and Modifiers MAY use either one as long as all the information of the inline
            code (e.g. original data, sub-flow indicators, etc.) are preserved.</para>
        </listitem>

        <listitem>
          <para>When converting representation between a pair of <link linkend="sc"><code>&lt;sc></code></link>
            and <link linkend="ec"><code>&lt;ec></code></link> elements and a <link linkend="pc"><code>&lt;pc></code></link>
            element or vice-versa, Modifiers MUST map their attributes as shown in the following
            table:</para>

          <table>
            <title>Mapping between attributes</title>

            <tgroup cols="3">
              <tbody>
                <row>
                  <entry><link linkend="pc"><code>&lt;pc></code></link> attributes</entry>

                  <entry><link linkend="sc"><code>&lt;sc></code></link> attributes</entry>

                  <entry><link linkend="ec"><code>&lt;ec></code></link> attributes</entry>
                </row>

                <row>
                  <entry>id</entry>

                  <entry>id</entry>

                  <entry>startRef / id (see <link linkend="ecIFF"><code>&lt;ec></code></link>)</entry>
                </row>

                <row>
                  <entry>type</entry>

                  <entry>type</entry>

                  <entry>type</entry>
                </row>

                <row>
                  <entry>subType</entry>

                  <entry>subType</entry>

                  <entry>subType</entry>
                </row>

                <row>
                  <entry>dispStart</entry>

                  <entry>disp</entry>

                  <entry/>
                </row>

                <row>
                  <entry>dispEnd</entry>

                  <entry/>

                  <entry>disp</entry>
                </row>

                <row>
                  <entry>equivStart</entry>

                  <entry>equiv</entry>

                  <entry/>
                </row>

                <row>
                  <entry>equivEnd</entry>

                  <entry/>

                  <entry>equiv</entry>
                </row>

                <row>
                  <entry>subFlowsStart</entry>

                  <entry>subFlows</entry>

                  <entry/>
                </row>

                <row>
                  <entry>subFlowsEnd</entry>

                  <entry/>

                  <entry>subFlows</entry>
                </row>

                <row>
                  <entry>dataRefStart</entry>

                  <entry>dataRef</entry>

                  <entry/>
                </row>

                <row>
                  <entry>dataRefEnd</entry>

                  <entry/>

                  <entry>dataRef</entry>
                </row>

                <row>
                  <entry/>

                  <entry>isolated</entry>

                  <entry>isolated</entry>
                </row>

                <row>
                  <entry>canCopy</entry>

                  <entry>canCopy</entry>

                  <entry>canCopy</entry>
                </row>

                <row>
                  <entry>canDelete</entry>

                  <entry>canDelete</entry>

                  <entry>canDelete</entry>
                </row>

                <row>
                  <entry>canReorder</entry>

                  <entry>canReorder</entry>

                  <entry>canReorder</entry>
                </row>

                <row>
                  <entry>copyOf</entry>

                  <entry>copyOf</entry>

                  <entry>copyOf</entry>
                </row>

                <row>
                  <entry>canOverlap</entry>

                  <entry>canOverlap</entry>

                  <entry>canOverlap</entry>
                </row>

                <row>
                  <entry>dir</entry>

                  <entry>dir</entry>

                  <entry>dir</entry>
                </row>
              </tbody>
            </tgroup>
          </table>
        </listitem>

        <listitem>
          <para>Agents MUST be able to handle any of the above two types of inline code
            representation.</para>
        </listitem>
      </itemizedlist>
    </section>

    <section>
      <title>Storage of the original data</title>

      <para>Most of the time, inline codes correspond to an original construct in the format from
        which the content was extracted. This is the <emphasis>original data</emphasis>.</para>

      <para>XLIFF tries to abstract and normalize as much as possible the extracted content because
        this allows a better re-use of the material across projects. Some tools require access to
        the original data in order to create the translated document back into its original format.
        Others do not.</para>

      <section>
        <title>No storage of the original data</title>

        <para>In this option, the original data of the inline code is not preserved inside the XLIFF
          document.</para>

        <para>The tool that created the initial XLIFF document is responsible for providing a way to
          re-create the original format properly when merging back the content.</para>

        <para>For example, for the following HTML content:</para>

        <programlisting format="linespecific">
This &lt;B>naked mole rat&lt;/B> is &lt;B>pretty ugly&lt;/B>.</programlisting>

        <para>one possible XLIFF representation is the following:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>This &lt;pc id="1">naked mole rat&lt;/pc> is 
        &lt;pc id="2">pretty ugly&lt;/pc>.&lt;/source>
    &lt;target>Cet &lt;pc id="1">hétérocéphale&lt;/pc> est 
        &lt;pc id="2">plutôt laid&lt;/pc>.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>
      </section>

      <section>
        <title>Storage of the original data</title>

        <para>In this option, the original data of the inline code is stored in a structure that
          resides outside the content (i.e. outside <link linkend="source"><code>&lt;source></code></link> or <link linkend="target"><code>&lt;target></code></link>) but still inside the <link linkend="unit"><code>&lt;unit></code></link> element.</para>

        <para>The structure is an element <link linkend="originaldata"><code>&lt;originalData></code></link> that contains a list
          of <link linkend="data"><code>&lt;data></code></link> entries uniquely identified within the <link linkend="unit"><code>&lt;unit></code></link> by an <link linkend="id"><code>id</code></link> attribute. In the content, each inline code using
          this mechanism includes a <link linkend="dataref"><code>dataRef</code></link> attribute that points to a <code><link linkend="data"><code>&lt;data></code></link></code> element where its corresponding original
          data is stored.</para>

        <para>For example, for the following HTML content:</para>

        <programlisting format="linespecific">
This &lt;B>naked mole rat&lt;/B> is &lt;B>pretty ugly&lt;/B>.</programlisting>

        <para>The following XLIFF representation stores the original data:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;B>&lt;/data>
    &lt;data id="d2">&amp;lt;/B>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>This &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2"> naked
        mole rat&lt;/pc> is &lt;pc id="2" dataRefStart="d1"
        dataRefEnd="d2"> pretty ugly&lt;/pc>.&lt;/source>
    &lt;target>Cet &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        hétérocéphale&lt;/pc> est &lt;pc id="2" dataRefStart="d1"
        dataRefEnd="d2"> plutôt laid&lt;/pc>.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <note>
          <para>This mechanism allows to re-use identical original data by pointing to the same
              <link linkend="data"><code>&lt;data></code></link> element.</para>
        </note>
      </section>
    </section>

    <section id="addingcodes">
      <title>Adding Codes</title>

      <para>When processing content, there are possible cases when new inline codes need to be
        added.</para>

      <para>For example, in the following HTML help content, the text has the name of a button in
        bold:</para>

      <programlisting format="linespecific">
Press the &lt;b>Emergency Stop&lt;/b> button
to interrupt the count-down sequence.</programlisting>

      <para>In the translated version, the original label needs to remain in English because the
        user interface, unlike the help, is not translated. However, for convenience, a translation
        is also provided and emphasized using another style. That new formatting needs to be
        added:</para>

      <programlisting format="linespecific">
Appuyez sur le bouton &lt;b>Emergency Stop&lt;/b> (&lt;i>Arrêt d'urgence&lt;/i>)
pour interrompre le compte à rebours.</programlisting>

      <para>Having to split a single formatted span of text into several separate parts during
        translation, can serve as another example. For instance, the following sentence in Swedish
        uses bold on the names of two animals:</para>

      <programlisting format="linespecific">
Äter &lt;b>katter möss&lt;/b>?</programlisting>

      <para>But the English translation separates the two names and therefore needs to duplicate the
        bold codes.</para>

      <programlisting format="linespecific">
Do &lt;b>cats&lt;/b> eat &lt;b>mice&lt;/b>?</programlisting>

      <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
          <para>Modifiers MAY add inline codes.</para>
        </listitem>

        <listitem>
          <para>The <link linkend="id"><code>id</code></link>
            value of the added code MUST be different from all <link linkend="id"><code>id</code></link> values in both
            source and target content of the unit where the new code is added.</para>
        </listitem>

        <listitem>
          <para>Mergers MAY ignore added inline codes when merging the translated content back into
            the original format.</para>
        </listitem>
      </itemizedlist>

      <para>There are several ways to add codes:</para>

      <section id="duplicatingexistingcode">
        <title>Duplicating an existing code</title>

        <para>One way to create a new code is to duplicate an existing one (called the
            <emphasis>base code</emphasis>).</para>

        <para>If the base code is associated with some original data: the new code simply uses the
          same data.</para>

        <para>For example, the translation in the following unit, the second inline code is a
          duplicate of the first one:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;b>&lt;/data>
    &lt;data id="d2">&amp;lt;/b>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Äter &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">katter
        möss&lt;/pc>?&lt;/source>
    &lt;target>Do &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        cats&lt;/pc> eat &lt;pc id="2" dataRefStart="d1"
        dataRefEnd="d2">mice&lt;/pc>?&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <para>If the base code has no associated data, the new code MUST use the <link linkend="copyof"><code>copyOf</code></link>
          attribute to indicate the <code>id</code> of the base code. This allows the merging tool
          to know what original data to re-use.</para>

        <para>For example, the translation in the following unit, the second inline code is a
          duplicate of the first one:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Esznek &lt;pc id="1">a magyarok svéd húsgombócot
        &lt;/pc>?&lt;/source>
    &lt;target>Do &lt;pc id="1">Hungarians&lt;/pc> eat &lt;pc id="2"
        copyOf="1">Swedish meatballs&lt;/pc>?&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <itemizedlist>
          <title>Processing Requirements</title>

          <listitem>
            <para>Modifiers MUST NOT clone a code that has its <link linkend="cancopy"><code>canCopy</code></link> attribute is set to <code>no</code>.</para>
          </listitem>

          <listitem>
            <para>The <link linkend="copyof"><code>copyOf</code></link> attribute MUST be used when, and only when, the base
              code has no associated original data.</para>
          </listitem>
        </itemizedlist>
      </section>

      <section>
        <title>Creating a brand-new code</title>

        <para>Another way to add a code is to create it from scratch. For example, this can happen
          when the translated text requires additional formatting.</para>

        <para>For example, in the following unit, the UI text needs to stay in English, and is also
          translated into French as a hint for the French user. The French translation for the UI
          text is formatted in italics:</para>

        <para><programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;b>&lt;/data>
    &lt;data id="d2">&amp;lt;/b>&lt;/data>
    &lt;data id="n1">&amp;lt;i>&lt;/data>
    &lt;data id="n2">&amp;lt;/i>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Press the &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Emergency Stop&lt;/pc> button to interrupt the count-down
        sequence. &lt;/source>
    &lt;target>Appuyez sur le bouton &lt;pc id="1" dataRefStart="d1"
        dataRefEnd="d2">Emergency Stop&lt;/pc> (&lt;pc id="2"
        dataRefStart="n1" dataRefEnd="n2">Arrêt d'urgence
        &lt;/pc>) pour interrompre le compte à rebours. &lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting></para>
      </section>

      <section>
        <title>Converting text into a code</title>

        <para>Another way to add a code is to convert part of the extracted text into code. In some
          cases the inline code can be created after extraction, using part of the text content.
          This can be done, for instance, to get better matches from an existing Translation Memory,
          or better candidates from a Machine Translation system.</para>

        <para>For example, it can happen that a tool extracting a Java properties file to XLIFF is
          not sophisticated enough to treat HTML or XML snippets inside the extracted text as inline
          code:</para>

        <programlisting format="linespecific">
# text property for the widget 'next'
nextText: Click &lt;ui>Next&lt;/ui></programlisting>

        <para>Resulting XLIFF content:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Click &amp;lt;ui>Next&amp;lt;/ui>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <para>But another tool, later in the process, can be used to process the initial XLIFF
          document and detect additional inline codes. For instance here the XML elements such as
            <code>&lt;ui></code>.</para>

        <para>The original data of the new code is the part of the text content that is converted as
          inline code.</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;ui>&lt;/data>
    &lt;data id="d2">&amp;lt;/ui>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Click &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        Next&lt;/pc>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <warning>
          <para>Converting XLIFF text content into original data for inline code might need a
            tool-specific process as the tool which did the initial extraction could have applied
            some conversion to the original content to create the XLIFF content (e.g. un-escape
            special characters).</para>
        </warning>
      </section>
    </section>

    <section id="removingcodes">
      <title>Removing Codes</title>

      <para>When processing content, there are some possible cases when existing inline codes need
        to be removed.</para>

      <para>For an example the translation of a sentence can result in grouping of several formatted
        parts into a single one. For instance, the following sentence in English uses bold on the
        names of two animals:</para>

      <programlisting format="linespecific">
Do &lt;b>cats&lt;/b> eat &lt;b>mice&lt;/b>?</programlisting>

      <para>But the Swedish translation group the two names and therefore needs only a single bolded
        part.</para>

      <programlisting format="linespecific">
Äter &lt;b>katter möss&lt;/b>?</programlisting>

      <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
          <para>User agents MAY remove a given inline code only if its <link linkend="candelete"><code>canDelete</code></link> attribute is set to <code>yes</code>.</para>
        </listitem>

        <listitem>
          <para>When removing a given inline code, the user agents MUST remove its associated
            original data, except if the original data is shared with another inline code that
            remains in the unit.</para>
          <para>Note that having to delete the original data is unlikely because such original data
            is likely to be associated to an inline code in the source content.</para>
        </listitem>
      </itemizedlist>

      <para>There are several ways to remove codes:</para>

      <section>
        <title>Deleting a code</title>

        <para>One way to remove a code is to delete it from the extracted content. For example, in
          the following unit, the translated text does not use the italics formatting. It is removed
          from the target content, but the original data are preserved because they are still used
          in the source content.</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;i>&lt;/data>
    &lt;data id="d2">&amp;lt;/i>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>I read &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">Little
        House on the Prairie&lt;/pc> to my children.&lt;/source>
    &lt;target><foreignphrase lang="ja">子供に「大草原の小さな家」を読みました。</foreignphrase>&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>
      </section>

      <section>
        <title>Converting a code into text</title>

        <para>Another way to remove an inline code is to convert it into text content. This is
          likely to be a rare use case. It is equivalent to deleting the code, with the addition to
          place the original data for the given code into the content, as text. This can be done,
          for example, to get better matches from an existing Translation Memory, or better
          candidates from a Machine Translation system.</para>

        <para>For instance, the following unit has an inline code corresponding to a variable
          place-holder. A tool can temporarily treat this variable as text to get better matches
          from an existing Translation Memory.</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">%s&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Cannot find '&lt;ph id="1" dataRef="d1"/>'.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <para>The modified unit would end up like as shown below. Note that because the original
          data was not associated with other inline code it has been removed from the unit:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Cannot find '%s'.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

        <warning>
          <para>Converting the original data of an inline code into text content might need a
            tool-specific process as the tool which did the initial extraction could have applied
            some conversion to the original content.</para>
        </warning>
      </section>
    </section>

    <section id="editinghints">
      <title>Editing Hints</title>

      <para>XLIFF provides some information about what editing operations are applicable to inline
        codes:</para>

      <itemizedlist>
        <listitem>
          <para>A code can be deleted: That is, the code element as well as its original data (if
            any are attached) are removed from the document. This hint is represented with the
              <link linkend="candelete"><code>canDelete</code></link> attribute. The default value is <code>yes</code>:
            deletion is allowed.</para>

          <para>For example, the following extracted C string has the code <link linkend="ph"><code>&lt;ph
              id='1'/></code></link> set to be not deletable because removing the original data
            (the variable placeholder <code>%s</code>) from the string would result in an error when
            running the application:</para>
        </listitem>

        <listitem>
          <para>A code can be copied: That is, the code is used as a <emphasis>base code</emphasis>
            for adding another inline code. See <xref linkend="duplicatingexistingcode"/> for more
            details. This hint is represented with the <link linkend="cancopy"><code>canCopy</code></link> attribute. The default value is
              <code>yes</code>: copy is allowed.</para>
        </listitem>

        <listitem>
          <para>A code can be re-ordered: That is, a given code can be moved before or after another
            inline code. This hint is represented with the <link linkend="canreorder"><code>canReorder</code></link> attribute. The default value is <code>yes</code>:
            re-ordering is allowed.</para>
        </listitem>
      </itemizedlist>
      <note>
        <para>Note that often those properties are related and appear together. For example, the
          code in the first unit shown below is a variable placeholder that has to be preserved and
          cannot be duplicated, and when several of such variables are present, as in the second
          unit, they cannot be re-ordered:</para>
      </note>

      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;originalData>
    &lt;data id="d1">%s&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Can't open '&lt;ph id="1" dataRef="d1" canCopy="no"
        canDelete="no"/>'.&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="2">
  &lt;originalData>
    &lt;data id="d1">%s&lt;/data>
    &lt;data id="d2">%d&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>Number of &lt;ph id="1" dataRef="d1" canCopy="no"
        canDelete="no" canReorder="firstNo"/>: &lt;ph id="2" dataRef="d2"
        canCopy="no" canDelete="no" canReorder="no"/>. &lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

      <para>See the <link linkend="contentmodification">Target Content Modification section</link>
        for additional details on editing.</para>

      <itemizedlist>
        <title>Constraints</title>
        <listitem>
          <para>When the attribute <link linkend="canreorder"><code>canReorder</code></link> is set to <code>no</code> or
              <code>firstNo</code>, the attributes <link linkend="cancopy"><code>canCopy</code></link> and <link linkend="candelete"><code>canDelete</code></link> MUST also be set to <code>no</code>.</para>
        </listitem>
        <listitem>
          <para>Inline codes re-ordering within a source or target content MAY be limited by
            defining non-reorderable sequences. Such sequence is made of a first inline code with
            the attribute <link linkend="canreorder"><code>canReorder</code></link> set to <code>firstNo</code> and zero or more
            following codes with <link linkend="canreorder"><code>canReorder</code></link> set to <code>no</code>.</para>
        </listitem>
        <listitem>
          <para>A non-reorderable sequence of codes MUST NOT start with a code with the attribute
              <link linkend="canreorder"><code>canReorder</code></link> set to <code>No</code> and zero or more following
            codes with <link linkend="canreorder"><code>canReorder</code></link> set to <code>no</code></para>
          <note>
            <para>A non-reorderable sequence made of a single code with <link linkend="canreorder"><code>canReorder</code></link> set to <code>firstNo</code> are allowed just for
              extraction convenience and are equivalent to a code with the attribute <link linkend="canreorder"><code>canReorder</code></link> set to <code>yes</code>.</para>
          </note>
        </listitem>
      </itemizedlist>

      <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
          <para>Extractors SHOULD set the <link linkend="candelete"><code>canDelete</code></link>, <link linkend="cancopy"><code>canCopy</code></link>
            and <link linkend="canreorder"><code>canReorder</code></link> attributes for the codes that need to be treated
            differently than with the default settings.</para>
        </listitem>
        <listitem>
          <para>Modifiers MUST NOT change the number and order of the inline codes making up a
            non-reorderable sequence.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY move a whole non-reorderable sequence before or after another
            non-reorderable sequence.</para>
        </listitem>
        <listitem>
          <para>When a non-reorderable sequence is made of a single non-reorderable code, Modifiers
            MAY remove the <link linkend="canreorder"><code>canReorder</code></link> attribute of that code or change its value to
              <code>yes</code>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MUST NOT delete inline codes that have their attribute <link linkend="candelete"><code>canDelete</code></link> set to <code>no</code>.</para>
        </listitem>

        <listitem>
          <para>Modifiers MUST NOT replicate inline codes that have their attribute <link linkend="cancopy"><code>canCopy</code></link>
            set to <code>no</code>.</para>
        </listitem>


      </itemizedlist>
      <note>
        <para>Conformance of codes to <link linkend="editinghints">Editing Hints</link> Processing
          Requirements within translations can only be checked on existing <link linkend="target"><code>&lt;target></code></link> elements, i.e. non-conformance is not reported on
            <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements without <link linkend="target"><code>&lt;target></code></link> children.</para>
      </note>

    </section>
  </section>

  <section id="annotations">
    <title>Annotations</title>

    <para>An annotation is an element that associates a section of the content with some metadata
      information.</para>

    <para>Annotations MAY be created by an Extractor that generated the initial XLIFF document, or
      by any other Modifier or Enricher later in the process. For example, after an Extractor
      creates the document, an Enricher can annotate the source content with terminological
      information.</para>

    <para>Annotations are represented using either the <link linkend="mrk"><code>&lt;mrk></code></link> element, or the pair of <link linkend="sm"><code>&lt;sm></code></link> and
        <link linkend="em"><code>&lt;em></code></link>
      elements.</para>

    <section id="annotationTypes">
      <title>Type of Annotations</title>

      <para>There are several pre-defined types of annotation and definition of <link linkend="customAnnotation">custom types</link> is also allowed.</para>

      <section id="translateAnnotation">
        <title>Translate Annotation</title>

        <para>This annotation is used to indicate whether a span of content is translatable or
          not.</para>

        <para>Usage:</para>

        <itemizedlist spacing="compact">
          <listitem>
            <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED</para>
          </listitem>

          <listitem>
            <para>The <link linkend="translate"><code>translate</code></link> attribute is REQUIRED and set to <code>yes</code>
              or <code>no</code></para>
          </listitem>

          <listitem>
            <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to <code>generic</code>
              (this is the default value)</para>
          </listitem>
        </itemizedlist>

        <para>For example:</para>

        <programlisting format="linespecific">
He saw his &lt;mrk id="m1" translate="no">doppelgänger&lt;/mrk>.</programlisting>

        <note>
          <para>This annotation overrides the <link linkend="translate"><code>translate</code></link> attribute set or inherited at the
              <link linkend="unit"><code>&lt;unit></code></link> level.</para>
        </note>

        <note>
          <para>The <link linkend="translate"><code>translate</code></link> attribute can also be used at the same time as
            another type of annotation. For example:</para>

          <programlisting format="linespecific">
He saw his &lt;mrk id="m1" translate="no" type="term">doppelgänger
&lt;/mrk>.</programlisting>
        </note>
      </section>

      <section id="termAnnotation">
        <title>Term Annotation</title>

        <para>This annotation is used to mark up a term in the content, and possibly associate
          information to it.</para>

        <para>Usage:</para>

        <itemizedlist spacing="compact">
          <listitem>
            <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED</para>
          </listitem>

          <listitem>
            <para>The <link linkend="type"><code>type</code></link> attribute is REQUIRED and set to
              <code>term</code></para>
          </listitem>

          <listitem>
            <para>The <link linkend="value"><code>value</code></link> attribute is OPTIONAL and contains a short definition
              of the term</para>
          </listitem>

          <listitem>
            <para>The <link linkend="ref"><code>ref</code></link> attribute is OPTIONAL and contains a URI pointing to
              information on the term</para>
          </listitem>

          <listitem>
            <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL and set to <code>yes</code>
              or <code>no</code></para>
          </listitem>
        </itemizedlist>


        <para>For example:</para>

        <programlisting format="linespecific">
&lt;file id="f-t_a">
  &lt;unit id="1">
    &lt;segment>
      &lt;source>He is my &lt;mrk id="m1" type="term"
          ref="http://dbpedia.org/page/Doppelgänger">
          doppelgänger&lt;/mrk>. &lt;/source>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>
      </section>


      <section id="commentAnnotation">
        <title>Comment Annotation</title>

        <para>This annotation is used to associate a span of content with a comment.</para>

        <para>Usage:</para>

        <itemizedlist spacing="compact">
          <listitem>
            <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED</para>
          </listitem>

          <listitem>
            <para>The <link linkend="type"><code>type</code></link> attribute is REQUIRED and set to
              <code>comment</code></para>
          </listitem>

          <listitem>
            <para>If the <link linkend="value"><code>value</code></link> attribute is present it contains the text of the
              comment. If and only if the <link linkend="value"><code>value</code></link> attribute is not present, the <link linkend="ref"><code>ref</code></link>
              attribute MUST be present and contain the URI of a <link linkend="note"><code>&lt;note></code></link> element within the same enclosing <link linkend="unit"><code>&lt;unit></code></link> element that holds the comment.</para>
          </listitem>

          <listitem>
            <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL and set to <code>yes</code>
              or <code>no</code></para>
          </listitem>
        </itemizedlist>

        <para>For example, here with the <code><link linkend="value"><code>value</code></link></code> attribute:</para>

        <programlisting format="linespecific">
The &lt;mrk id="m1" type="comment"
 value="Possible values: Printer or Stacker">&lt;ph id="1" dataRef="d1"/>
&lt;/mrk>
has been enabled.</programlisting>

        <para>And here using the <link linkend="ref"><code>ref</code></link> attribute:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;notes>
    &lt;note id="n1" appliesTo="target">Please check the translation for
        'namespace'. One also can use 'espace de nom', but I think most
        technical manuals use the English term.&lt;/note>
  &lt;/notes>
  &lt;segment>
    &lt;source>You use your own namespace.&lt;/source>
    &lt;target>Vous pouvez utiliser votre propre &lt;mrk id="m1"
        type="comment" ref="#n=n1">namespace&lt;/mrk>.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting>
      </section>

      <section id="customAnnotation">
        <title>Custom Annotation</title>

        <para>The <link linkend="mrk"><code>&lt;mrk></code></link> element can be used to implement custom
          annotations.</para>

        <para>A custom annotation MUST NOT provide the same functionality as a pre-defined
          annotation.</para>

        <para>Usage:</para>

        <itemizedlist spacing="compact">
          <listitem>
            <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED</para>
          </listitem>

          <listitem>
            <para>The <link linkend="type"><code>type</code></link> attribute is REQUIRED and set to a unique user-defined
              value.</para>
          </listitem>

          <listitem>
            <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL and set to <code>yes</code>
              or <code>no</code></para>
          </listitem>

          <listitem>
            <para>The use and semantics of the <link linkend="value"><code>value</code></link> and <link linkend="ref"><code>ref</code></link>
              attributes are user-defined.</para>
          </listitem>
        </itemizedlist>

        <para>For example:</para>

        <programlisting format="linespecific">
One of the earliest surviving works of literature is
&lt;mrk id="m1" type="myCorp:isbn" value="978-0-14-44919-8">The 
Epic of Gilgamesh&lt;/mrk>.</programlisting>
      </section>
    </section>

    <section id="splittingAnnotations">
      <title>Splitting Annotations</title>

      <para>Annotations can overlap spanning inline codes or other annotations. They also can be
        split by segmentation. Because of this, a single annotation span can be represented using a
        pair of <link linkend="sm"><code>&lt;sm></code></link> and <link linkend="em"><code>&lt;em></code></link> elements instead of a single <link linkend="mrk"><code>&lt;mrk></code></link>
        element.</para>

      <para>For example, one can have the following content:</para>

      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Sentence A. &lt;mrk id="m1" type="comment" value="Comment for B
        and C">Sentence B. Sentence C.&lt;/mrk>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>

      <para>After a user agent performs segmentation, the annotation element <link linkend="mrk"><code>&lt;mrk></code></link> is
        changed to a pair of <link linkend="sm"><code>&lt;sm></code></link> and <link linkend="em"><code>&lt;em></code></link> elements:</para>

      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Sentence A. &lt;/source>
  &lt;/segment>
  &lt;segment>
    &lt;source>&lt;sm id="m1" type="comment" value="Comment for B and C"/>
        Sentence B. &lt;/source>
  &lt;/segment>
  &lt;segment>
    &lt;source>Sentence C.&lt;em startRef="m1"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>
    </section>
  </section>

  <section id="subflowsdesc">
    <title>Sub-Flows</title>

    <para>A sub-flow is a section of text embedded inside an inline code, or inside another section
      of text.</para>

    <para>For example, the following HTML content includes two sub-flows: The first one is the value
      of the <code>title</code> attribute ("<code>Start button</code>"), and the second one is the
      value of the <code>alt</code> attribute ("<code>Click here to start!</code>"):</para>

    <programlisting format="linespecific">
Click to start: &lt;img title="Start button"
 src="btnStart.png" alt="Click here to start!"/></programlisting>

    <para>Another example is the following DITA content where the footnote "<code>A Palouse horse is
        the same as an Appaloosa.</code>" is defined at the middle of a sentence:</para>

    <programlisting format="linespecific">
Palouse horses&lt;fn>A Palouse horse is the same as
 an Appaloosa.&lt;/fn> have spotted coats.</programlisting>

    <para>In XLIFF, each sub-flow is stored in its own <link linkend="unit"><code>&lt;unit></code></link> element, and the <code><link linkend="subflows"><code>subFlows</code></link></code> attribute is used to indicate the location of the
      embedded content.</para>

    <para>Therefore the HTML content of the example above can be represented like below:</para>

    <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Start button&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="2">
  &lt;segment>
    &lt;source>Click here to start!&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="3">
  &lt;segment>
    &lt;source>Click to start: &lt;ph id="1" subFlows="1 2"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>

    <itemizedlist>
      <title>Constraints</title>
      <listitem>
        <para>An inline code containing or delimiting one or more sub-flows MUST have an attribute
            <link linkend="subflows"><code>subFlows</code></link> that holds a list of the identifiers of the <link linkend="unit"><code>&lt;unit></code></link> elements where the sub-flows are stored.</para>
      </listitem>
      <listitem>
        <para>Sub-flows MUST be in the same <link linkend="file"><code>&lt;file></code></link> element as the <link linkend="unit"><code>&lt;unit></code></link> element from which they are referenced.</para>
      </listitem>
    </itemizedlist>

    <itemizedlist>
      <title>Processing Requirements</title>

      <listitem>
        <para>Extractors SHOULD store each sub-flow in its own <link linkend="unit"><code>&lt;unit></code></link> element.</para>
      </listitem>



      <listitem>
        <para>Extractors MAY order the <link linkend="unit"><code>&lt;unit></code></link> elements of the sub-flows and the
            <link linkend="unit"><code>&lt;unit></code></link> element, from where the sub-flows are referenced,
          as they see fit. </para>
      </listitem>
    </itemizedlist>
    <note>
      <para>Note that the static structure encoded by <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link> elements is principally immutable in XLIFF Documents
        and hence the unit order initially set by the Extractor will be preserved throughout the
        roundtrip even in the special case of sub-flows.</para>
    </note>
  </section>

  <section>
    <title>White Spaces</title>

    <para>While white spaces can be significant or insignificant in the original format, they are
      always treated as significant when stored as original data in XLIFF. See the definition of the
        <link linkend="data"><code>&lt;data></code></link> element.</para>

    <itemizedlist>
      <title>Processing Requirements</title>

      

      <listitem>
        <para>For the inline content and all non empty inline elements: The white spaces MUST be
          preserved if the value for <code>xml:space</code> set or inherited at the enclosing <link linkend="unit"><code>&lt;unit></code></link> level is <code>preserve</code>, and they MAY be
          preserved if the value is <code>default</code>.</para>
      </listitem>
    </itemizedlist>
  </section>

  <section id="BiDi">
    <title>Bidirectional Text</title>

    <para>Text directionality in XLIFF content is defined by inheritance. Source and target content
      can have different directionality.</para>

    <para>The initial directionality for both the source and the target content is defined in the
        <link linkend="file"><code>&lt;file></code></link> element, using the OPTIONAL attributes <link linkend="srcdir"><code>srcDir</code></link> for
      the source and <link linkend="trgdir"><code>trgDir</code></link> for the target. The default value for both attributes is
        <code>auto</code>.</para>

    <para>The <link linkend="group"><code>&lt;group></code></link> and <link linkend="unit"><code>&lt;unit></code></link> elements also have the two OPTIONAL
      attributes <link linkend="srcdir"><code>srcDir</code></link> and <link linkend="trgdir"><code>trgDir</code></link>. The default value of the <link linkend="srcdir"><code>srcDir</code></link> is
      inherited from the value of the <link linkend="srcdir"><code>srcDir</code></link> attribute of the respective parent element.
      The default value of the <link linkend="trgdir"><code>trgDir</code></link> attribute is inherited from the value of the <link linkend="trgdir"><code>trgDir</code></link>
      attribute of the respective parent element.</para>

    <para>The <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, and isolated <link linkend="ec"><code>&lt;ec></code></link> elements have an OPTIONAL attribute <link linkend="dir"><code>dir</code></link> with a value
        <code>ltr</code>, <code>rtl</code>, or <code>auto</code>. The default value is inherited
      from the parent <link linkend="pc"><code>&lt;pc></code></link> element. In case the inline element is a child of a
        <link linkend="source"><code>&lt;source></code></link> element, the default value is inherited from the <link linkend="srcdir"><code>srcDir</code></link> value
      of the enclosing <link linkend="unit"><code>&lt;unit></code></link> element. In case the inline element is a child of a
        <link linkend="target"><code>&lt;target></code></link> element, the default value is inherited from the <link linkend="trgdir"><code>trgDir</code></link> value
      of the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    <warning>
      <para> While processing isolated <link linkend="ec"><code>&lt;ec></code></link> elements with explicitly set directionality, please beware
        that unlike directionality set on the <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="sc"><code>&lt;sc></code></link> , this
        method decreases the stack level as per [UAX #9].</para>
    </warning>
    <para>In addition, the <link linkend="data"><code>&lt;data></code></link> element has an OPTIONAL attribute <link linkend="dir"><code>dir</code></link> with a value
        <code>ltr</code>, <code>rtl</code>, or <code>auto</code> that is not inherited. The default
      value is <code>auto</code>.</para>

    <para>Directionality of source and target text contained in the <link linkend="source"><code>&lt;source></code></link> and <link linkend="target"><code>&lt;target></code></link> elements is fully governed by <link linkend="uax9">[UAX #9]</link>, whereas explicit XLIFF-defined
      structural and directionality markup is a higher-level protocol in the sense of <link linkend="uax9">[UAX #9]</link>. The XLIFF-defined value
        <code>auto</code> determines the directionality based on the first strong directional
      character in its scope and XLIFF-defined inline directionality markup behaves exactly as
      Explicit Directional Isolate Characters, see <link linkend="uax9">[UAX #9]</link>, <ulink url="http://www.unicode.org/reports/tr9/#Directional_Formatting_Characters">http://www.unicode.org/reports/tr9/#Directional_Formatting_Characters</ulink>.</para>
    <note>
      <para>Note that this specification does not define explicit markup for inline directional
        Overrides or Embeddings; in case those are needed. Extractors and Modifiers will need to use
        [UAX #9] defined Directional Formatting Characters.</para>
      <para>For instance, HTML elements <code>&lt;bdi></code> and <code>&lt;bdo></code> need both
        extracted as a <link linkend="pc"><code>&lt;pc></code></link> or <link linkend="sc"><code>&lt;sc></code></link> / <link linkend="ec"><code>&lt;ec/></code></link> pair with the <link linkend="dir"><code>dir</code></link> attribute set
        respectively.</para>
      <para>All XLIFF defined inline directionality markup isolates and <code>&lt;sc></code> /
          <code>&lt;ec/></code> isolated spans can reach over segment (but not unit) boundaries.
        This needs to be taken into account when splitting or joining segments (see <link linkend="segmentationModification">Segmentation Modification</link>) that contain inline directionality markup. Albeit It
        is not advisable to split segments, so that corresponding inline directionality markup start
        and end would fall into different segments, such a situation is not too confusing. If this
        happens, the "watertight" BiDi box will simply span two or more segments. This is not too
        confusing because no XLIFF defined directionality markup is allowed on <link linkend="source"><code>&lt;source></code></link>, <link linkend="target">&lt;target></link>, or <link linkend="segment">&lt;segment></link>,
        so all higher level protocol inheritance of directionality in such cases is from <link linkend="unit">&lt;unit></link> or higher.
      </para>
    </note>

  </section>

  <section id="contentmodification">
    <title>Target Content Modification</title>

    <para>This section defines the rules Writers need to follow when working with the target content
      of a given segment in order to provide interoperability throughout the whole process.</para>

    <para>The Extractor MAY create the initial target content as it sees fit.</para>

    <para>The Merger is assumed to have the same level of processing and native format knowledge as
      the Extractor. Providing an interoperable way to convert native documents into XLIFF with one
      tool and back to the native format with another tool without the same level of knowledge is
      outside the scope of this specification.</para>

    <para>The Writers modifying the target content of an XLIFF Document between the Extractor and
      the Merger ensure interoperability by applying specific rules. These rules are separated into
      two cases: When there is an existing target and when there is no existing target.</para>

    <section id="contentmodificationwithouttarget">
      <title>Without an Existing Target</title>

      <para>When there is no existing target, the processing requirements for a given segment are
        the following:</para>

      <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
          <para>Writers MAY leave the segment without a target.</para>
        </listitem>

        <listitem>
          <para>Modifiers MAY create a new target as follows:</para>

          <itemizedlist>
            <listitem>
              <para>Modifiers MAY add translation of the source text.</para>
            </listitem>

            <listitem>
              <para>Modifiers MUST put all <link linkend="editinghints">non-removable</link> inline
                codes in the target.</para>
            </listitem>

            <listitem>
              <para>Modifiers MUST preserve the order of all the <link linkend="editinghints">non-reorderable</link> inline codes.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY put any <link linkend="editinghints">removable</link> inline code
                in the target.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY add inline codes.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY add or remove annotations.</para>
            </listitem>
            <listitem>
              <para>Modifiers MAY convert any <link linkend="pc"><code>&lt;pc></code></link> element into a pair of <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link> elements.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY convert, if it is possible, any pair of <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link> elements into a <link linkend="pc"><code>&lt;pc></code></link> element.</para>
            </listitem>
          </itemizedlist>
        </listitem>
      </itemizedlist>
    </section>

    <section id="contentmodificationwithtarget">
      <title>With an Existing Target</title>

      <para>When working with a segment with content already in the target, Writers MUST choose one
        of the three behaviors described below:</para>

      <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
          <para>Writers MAY leave the existing target unchanged.</para>
        </listitem>

        <listitem>
          <para>Modifiers MAY modify the existing target as follow:</para>

          <itemizedlist>
            <listitem>
              <para>Modifiers MAY add or modify translatable text.</para>
            </listitem>

            <listitem>
              <para>Writers MUST preserve all <link linkend="editinghints">non-removable</link>
                inline codes, regardless whether or not they exist in the source.</para>
            </listitem>

            <listitem>
              <para>Writers MUST preserve any <link linkend="editinghints">non-reorderable</link>
                inline codes in the existing target.</para>
            </listitem>

            <listitem>
              <para>Writers MUST NOT add any <link linkend="editinghints">non-reorderable</link>
                inline codes to the target.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY remove any <link linkend="editinghints">removable</link> inline
                codes in the target.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY add inline codes (including copying any <link linkend="editinghints">cloneable</link> inline codes of the existing
                target).</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY add or remove annotations.</para>
            </listitem>
            <listitem>
              <para>Modifiers MAY convert any <link linkend="pc"><code>&lt;pc></code></link> element into a pair of <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link> elements.</para>
            </listitem>

            <listitem>
              <para>Modifiers MAY convert, if it is possible, any pair of <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link> elements into a <link linkend="pc"><code>&lt;pc></code></link> element.</para>
            </listitem>
          </itemizedlist>
        </listitem>

        <listitem>
          <para>Modifiers MAY delete the existing target and start over as if working without an
            existing target.</para>
        </listitem>
      </itemizedlist>
    </section>
  </section>

  <section>
    <title>Content Comparison</title>

    <para>This specification defines two types of content equality:</para>

    <itemizedlist>
      <listitem>
        <para>Equality type A: Two contents are equal if their normalized forms are equal.</para>
      </listitem>

      <listitem>
        <para>Equality type B: Two contents are equal if, in their normalized forms and with all
          inline code markers replaced by the value of their <link linkend="equiv"><code>equiv</code></link>
          attributes, the resulting strings are equal.</para>
      </listitem>
    </itemizedlist>

    <para>A content is normalized when:</para>

    <itemizedlist>
      <listitem>
        <para>The text nodes are in Unicode Normalized Form C defined in the Unicode Annex #15:
          Unicode Normalization Forms <link linkend="uax15">[UAX            #15]</link>.</para>
      </listitem>

      <listitem>
        <para>All annotation markers are removed.</para>
      </listitem>

      <listitem>
        <para>All pairs of <link linkend="sc"><code>&lt;sc></code></link> and <link linkend="ec"><code>&lt;ec></code></link> elements that can be converted into a
            <link linkend="pc"><code>&lt;pc></code></link> element, are converted.</para>
      </listitem>

      <listitem>
        <para>All adjacent text nodes are merged into a single text node.</para>
      </listitem>

      <listitem>
        <para>For all the text nodes with the white space property set to <code>default</code>, all
          adjacent white spaces are collapsed into a single space.</para>
      </listitem>
    </itemizedlist>
  </section>
</section>
    <section id="segmentation">
  <title>Segmentation</title>

  <para>In the context of XLIFF, a segment is content which is either a unit of extracted text, or
    has been created from a unit of extracted text by means of a segmentation mechanism such as
    sentence boundary detection. For example, a segment can be a title, the text of a menu item, a
    paragraph or a sentence in a paragraph.</para>

  <para>In the context of XLIFF, other types representations sometimes called "segmentation" can be
    represented using annotations. For example: the terms in a segment can be identified and marked
    up using the <link linkend="termAnnotation">term      annotation</link>.</para>

  <para>XLIFF does not specify how segmentation is carried out, only how to represent its result.
    Material provisions regarding segmentation can be found for instance in the Segmentation Rules
    eXchange standard <link linkend="biblio_srx">[SRX]</link> or
      <link linkend="uax29">[UAX #29]</link>.</para>

  <section id="segmentationRepresentation">
    <title>Segments Representation</title>

    <para>In XLIFF each segment of processed content is represented by a <link linkend="segment"><code>&lt;segment></code></link> element.</para>

    <para>A <link linkend="unit"><code>&lt;unit></code></link> can comprise a single <link linkend="segment"><code>&lt;segment></code></link>.</para>

    <para>Each <link linkend="segment"><code>&lt;segment></code></link> element has one <link linkend="source"><code>&lt;source></code></link> element that contains the source content and one
      OPTIONAL <link linkend="target"><code>&lt;target></code></link> element that can be empty or contain the translation
      of the source content at a given state.</para>

    <para>Content parts between segments are represented with the <link linkend="ignorable"><code>&lt;ignorable></code></link> element, which has the same content model as
        <link linkend="segment"><code>&lt;segment></code></link>.</para>

    <para>For example:</para>

    <para><programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>First sentence.&lt;/source>
    &lt;target>Première phrase.&lt;/target>
  &lt;/segment>
  &lt;ignorable>
    &lt;source> &lt;/source>
  &lt;/ignorable>
  &lt;segment>
    &lt;source>Second sentence.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting></para>
  </section>

  <section id="segorder">
    <title>Segments Order</title>

    <para>Some Agents (e.g. aligner tools) can segment content, so that the target segments are not
      in the same order as the source segments.</para>

    <para>To be able to map order differences, the <link linkend="target"><code>&lt;target></code></link> element has an OPTIONAL <link linkend="order"><code>order</code></link> attribute
      that indicates its position in the sequence of segments (and inter-segments). Its value is an
      integer from 1 to N, where N is the sum of the numbers of the <link linkend="segment"><code>&lt;segment></code></link> and <link linkend="ignorable"><code>&lt;ignorable></code></link> elements within the given enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    <warning>
      <para>When Writers set explicit <code><link linkend="order">order</link></code> on <link linkend="target"><code>&lt;target></code></link> elements, they have to check for conflicts with implicit
            <code><link linkend="order">order</link></code>,
        as <link linkend="target"><code>&lt;target></code></link> elements without explicit <code><link linkend="order">order</link></code> correspond to
        their sibling <link linkend="source"><code>&lt;source></code></link> elements. Beware that moving one <link linkend="target"><code>&lt;target></code></link> element is likely to cause a renumbering domino effect
        throughout the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    </warning>

    <para>For example, the following HTML documents have the same paragraph with three sentences in
      different order:<programlisting format="linespecific">
&lt;p lang='en'>Sentence A. Sentence B. Sentence C.&lt;/p>
</programlisting><programlisting format="linespecific">
&lt;p lang='fr'>Phrase B. Phrase C. Phrase A.&lt;/p>
</programlisting>The XLIFF representation of the content, after segmentation and alignment,
      would be:</para>

    <para><programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment id="1">
    &lt;source>Sentence A.&lt;/source>
    &lt;target order="5">Phrase A.&lt;/target>
  &lt;/segment>
  &lt;ignorable>
    &lt;source> &lt;/source>
  &lt;/ignorable>
  &lt;segment id="2">
    &lt;source>Sentence B.&lt;/source>
    &lt;target order="1">Phrase B.&lt;/target>
  &lt;/segment>
  &lt;ignorable>
    &lt;source> &lt;/source>
  &lt;/ignorable>
  &lt;segment id="3">
    &lt;source>Sentence C.&lt;/source>
    &lt;target order="3">Phrase C.&lt;/target>
  &lt;/segment>
&lt;/unit>
</programlisting></para>
  </section>

  <section id="segmentationModification">
    <title>Segmentation Modification</title>
    <para>When modifying segmentation of a <link linkend="unit"><code>&lt;unit></code></link>, Modifiers MUST meet the Constraints and
      follow the Processing Requirements defined below:</para>
    <itemizedlist>
      <title>Constraints</title>
      <listitem>
        <para>Integrity of the inline codes MUST be preserved. See the section on <link linkend="inlineCodes">Inline Codes</link> and on
            <link linkend="annotations">Annotations</link> for
          details.</para>
      </listitem>
      <listitem>
        <para>The entire source content of any one <link linkend="unit"><code>&lt;unit></code></link> element MUST remain logically unchanged: <link linkend="segment"><code>&lt;segment></code></link> elements or their data MUST NOT be moved or
          joined across units.</para>
      </listitem>
    </itemizedlist>
    <warning>
      <para>Note that when splitting or joining segments that have both source and target content it
        is advisable to keep the resulting segments linguistically aligned, which is likely to
        require human linguistic expertise and hence manual re-segmentation. If the linguistically
        correct alignment cannot be guaranteed, discarding the target content and retranslating the
        resulting source segments is worth considering.</para>
    </warning>

    <itemizedlist>
      <title>Processing Requirements</title>

      <listitem id="splittingSegments">
        <para>When the Modifiers perform a split operation:</para>
        <itemizedlist>
          <listitem>
            <para>Only <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements that have their <link linkend="canResegment"><code>canResegment</code></link> value resolved to <code>yes</code> MAY be
              split.</para>
          </listitem>
          <listitem>
            <para>All new <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements created and their <link linkend="source"><code>&lt;source></code></link> and <link linkend="target"><code>&lt;target></code></link> children MUST have the same attribute values
              as the original elements they were created from, as applicable, except for the <link linkend="id"><code>id</code></link> attributes
              and, possibly, for the <link linkend="order"><code>order</code></link>, <link linkend="state"><code>state</code></link> and <link linkend="substate"><code>subState</code></link> attributes.</para>
          </listitem>
          <listitem>
            <para>Any new <link linkend="id"><code>id</code></link> attributes MUST follow the <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link>
              <link linkend="id"><code>id</code></link>
              constraints.</para>
          </listitem>
          <listitem>
            <para>If there was a target content in the original segment and if the <link linkend="state"><code>state</code></link>
              attribute of the original segment was not <code>initial</code>, the <link linkend="state"><code>state</code></link>
              attributes of the segments resulting from the split (and possibly their corresponding
                <link linkend="substate"><code>subState</code></link> attributes) MAY be changed to reflect the fact that
              the target content MAY need to be verified as the new segmentation MAY have
              desynchronized the alignment between the source and target contents.</para>
          </listitem>
        </itemizedlist>
      </listitem>

      <listitem id="joiningSegments">
        <para>When the Modifiers perform a join operation:</para>
        <itemizedlist>
          <listitem>
            <para>Only <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements that have their <link linkend="canResegment"><code>canResegment</code></link> value resolved to <code>yes</code> MAY be join
              with other elements.</para>
          </listitem>
        </itemizedlist>
      </listitem>

      <listitem>
        <para>When the Modifiers or Mergers perform a join operation:</para>
        <itemizedlist>
          <listitem>
            <para>Two elements (<link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link>) MUST NOT be joined if their <link linkend="target"><code>&lt;target></code></link> have resolved <link linkend="order"><code>order</code></link>
              values that are not consecutive.</para>
          </listitem>
          <listitem>
            <para>The attributes of the elements to be joined (<link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link>) and the attributes of their <link linkend="source"><code>&lt;source></code></link> and <link linkend="target"><code>&lt;target></code></link> MUST be carried over in the resulting joined
              elements.</para>
          </listitem>
          <listitem>
            <para>If attributes of elements to be joined (<link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link>) differ, or if the attributes of their <link linkend="source"><code>&lt;source></code></link> or <link linkend="target"><code>&lt;target></code></link> differ, the resulting joined elements MUST
              comply with following rules:</para>
            <itemizedlist>
              <listitem>
                <para>If the <link linkend="state"><code>state</code></link> attributes of the <link linkend="segment"><code>&lt;segment></code></link> elements differ: the <link linkend="state"><code>state</code></link>
                  attribute of the joined <link linkend="segment"><code>&lt;segment></code></link> MUST be set to the
                  "earliest" of the values specified in the original <link linkend="segment"><code>&lt;segment></code></link> elements. The sequence of <link linkend="state"><code>state</code></link>
                  values are defined in the following order: 1: <code>initial</code>, 2:
                    <code>translated</code>, 3: <code>reviewed</code>, and 4:
                  <code>final</code>.</para>
              </listitem>
              <listitem>
                <para>The <link linkend="substate"><code>subState</code></link> attribute MUST be the one associated with the
                    <link linkend="state"><code>state</code></link> attribute selected to be used in the joined <link linkend="segment"><code>&lt;segment></code></link>. If no <link linkend="substate"><code>subState</code></link> attribute is associated with that <link linkend="state"><code>state</code></link>, the joined <link linkend="segment"><code>&lt;segment></code></link> MUST NOT have a <link linkend="substate"><code>subState</code></link>.</para>
              </listitem>
              <listitem>
                <para>If the <link linkend="xml_space"><code>xml:space</code></link> attributes differ: The <link linkend="source"><code>&lt;source></code></link> and <link linkend="target"><code>&lt;target></code></link> of the joined element MUST be set to
                    <code>xml:space="preserve"</code>.</para>
              </listitem>
            </itemizedlist>
          </listitem>
        </itemizedlist>
      </listitem>

      <listitem id="joiningOrSplittingSegments">
        <para>When the Modifiers or Mergers perform a join or a split operation:</para>
        <itemizedlist>
          <listitem>
            <para>If any <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> element of the <link linkend="unit"><code>&lt;unit></code></link> had a <link linkend="target"><code>&lt;target></code></link> child with an <link linkend="order"><code>order</code></link>
              attribute prior to the segmentation modification, the <link linkend="target"><code>&lt;target></code></link> child of all <link linkend="segment"><code>&lt;segment></code></link> and <link linkend="ignorable"><code>&lt;ignorable></code></link> elements in the <link linkend="unit"><code>&lt;unit></code></link> MUST be examined and if necessary their <link linkend="order"><code>order</code></link>
              attributes updated to preserve the ordering of the target content prior the
              segmentation modification.</para>
          </listitem>
        </itemizedlist>
      </listitem>

    </itemizedlist>


  </section>
  <section role="informative">
    <title>Best Practice for Mergers</title>

    <para>Since a typical simple corporate implementation of XLIFF 2 is a localization tool that is
      at the same time an Extractor and a Merger with the full knowledge of the extraction
      mechanism, the community requested a non-normative best practice for merging after an XLIFF
      Round-trip.</para>
    <para>First of all, it needs to be noted that Mergers are not advised to rely on their knowledge
      of the extraction mechanism in terms of <link linkend="segmentation">segmentation</link>.
      Modifiers are free to <link linkend="segmentationModification">change segmentation</link>
      during the roundtrip and even <link linkend="segorder">to change order of target content held
        in different segments of the same unit</link>. Therefore, it can be advised as a best
      practice before merging to look for all segments within each unit, even and especially when
      the Extractor had created only one segment per unit.</para>
    <para>When joining segments, Mergers need to observe all <emphasis>Processing
        Requirements</emphasis> for <link linkend="joiningSegments">joining segments</link> and
        <link linkend="joiningOrSplittingSegments"> joining or splitting segments</link></para>
    <para>When joining segments it can happen that not all <link linkend="segment"><code>&lt;segment></code></link> or <link linkend="ignorable"><code>&lt;ignorable></code></link> elements actually have their <link linkend="target"><code>&lt;target></code></link> element children. This situation can be legal depending
      on a specific workflow set up. The <link linkend="target"><code>&lt;target></code></link> child within an <link linkend="ignorable"><code>&lt;ignorable></code></link> element is always optional, but at the same can be
      created any time by simply copying the content of the sibling <link linkend="source"><code>&lt;source></code></link>, see <link linkend="contentmodificationwithouttarget">Content Modification Without Target</link>.
      The presence of <link linkend="target"><code>&lt;target></code></link> children can be better governed in <link linkend="segment"><code>&lt;segment></code></link> elements that have the <link linkend="state"><code>state</code></link> attribute.
      The <link linkend="state"><code>state</code></link>
      attribute is strictly optional with the default <code>initial</code>, yet it is advisable for
      a corporate localization operation to request that their service providers progress that
      attribute through <code>translated</code> and <code>reviewed</code> to <code>final</code>.
      This attribute cannot be progressed from the <code>initial</code> state without a <link linkend="target"><code>&lt;target></code></link> child and all violations of <link linkend="editinghints">Editing Hints</link> will become
      validation errors only in the <code>final</code> state. Usage of <link linkend="state"><code>state</code></link> also allows
      for fine-tuning of a specific workflow <emphasis>State Machine</emphasis> with the dependent
        <link linkend="substate"><code>subState</code></link> attribute. With the attribute <link linkend="substate"><code>subState</code></link>,
      implementers can create an arbitrary number of private state machine under their prefix
      authorities. It is advisable to register such authority prefixes with the XLIFF TC and publish
      their documentation.</para>
    <para>When Mergers need to perform the merge in a non-final state, when the presence of targets
      cannot be guaranteed, they are free to create preliminary targets again following the <link linkend="contentmodificationwithouttarget">Processing        Requirements for Content Modification Without Target</link></para>
  </section>

</section>
    <section id="extensions">
    <title>Extension Mechanisms</title>
    <para>XLIFF 2.2 offers two mechanisms for storing custom data in an XLIFF document:</para>
    <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
            <para>Using the <link linkend="metadata_module">Metadata module</link> for storing custom data in
                elements defined by the official XLIFF specification.</para>
        </listitem>
        <listitem>
            <para>Using the standard XML namespace mechanism for storing data in elements or
                attributes defined in a custom XML Schema.</para>
        </listitem>
    </orderedlist>
    <para>Both mechanisms can be used simultaneously.</para>
    <section>
        <title>Extension Points</title>
        <para>The following XLIFF Core elements allow storing custom data in <link linkend="metadata"><code>&lt;mda:metadata></code></link> elements or in elements from a custom
            XML namespace:</para>
        <simplelist type="vert">
            <member>- <link linkend="xliff"><code>&lt;xliff></code></link></member>
            <member>- <link linkend="file"><code>&lt;file></code></link></member>
            <member>- <link linkend="group"><code>&lt;group></code></link></member>
            <member>- <link linkend="unit"><code>&lt;unit></code></link></member>
        </simplelist>
        <para>The following XLIFF Core elements accept custom attributes:</para>
        <simplelist type="vert">
            <member>- <link linkend="xliff"><code>&lt;xliff></code></link></member>
            <member>- <link linkend="file"><code>&lt;file></code></link></member>
            <member>- <link linkend="group"><code>&lt;group></code></link></member>
            <member>- <link linkend="unit"><code>&lt;unit></code></link></member>
            <member>- <link linkend="note"><code>&lt;note></code></link></member>
            <member>- <link linkend="mrk"><code>&lt;mrk></code></link></member>
            <member>- <link linkend="sm"><code>&lt;sm></code></link></member>
        </simplelist>
        <section>
            <title>Extensibility of XLIFF Modules</title>
            <para>For extensibility of XLIFF Modules please refer to the relevant Module
                Sections.</para>
        </section>

    </section>

    <section id="ext-constraints">
        <title>Constraints</title>
        <itemizedlist>
            <listitem>
                <para>When using identifiers, an extension MUST use either an attribute named
                        <code>id</code> or the attribute <code>xml:id</code> to specify them.</para>
            </listitem>
            <listitem>
                <para>Extensions identifiers MUST be unique within their immediate <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link> enclosing element.</para>
            </listitem>
            <listitem>
                <para>Identifier values used in extensions MUST be of type <code>xs:NMTOKEN</code>
                    or compatible with <code>xs:NMTOKEN</code> (e.g. <code>xs:NAME</code> and
                        <code>xs:ID</code> are compatible).</para>
            </listitem>
        </itemizedlist>
        <para>These constraints are needed for the <link linkend="fragid">fragment identification mechanism</link>.</para>
    </section>

    <section>
        <title>Processing Requirements</title>
        <itemizedlist>
            <listitem>
                <para>A user extension, whether implemented using <link linkend="metadata"><code>&lt;mda:metadata></code></link> or using a custom namespace,
                    MUST NOT provide the same functionality as an existing XLIFF core or module
                    feature, however it MAY complement an extensible XLIFF core feature or module
                    feature or provide a new functionality at the provided extension points.</para>
            </listitem>

            <listitem>
                <para>Mergers MUST NOT rely on custom namespace extensions, other than the ones
                    possibly defined in <link linkend="skeleton"><code>&lt;skeleton></code></link>, to create the
                    translated version of the original document. </para>
            </listitem>

            <listitem>
                <para>Writers that do not support a given custom namespace based user extension
                    SHOULD preserve that extension without modification.</para>
            </listitem>
        </itemizedlist>
    </section>
</section>

</section>

  <section id="modules">
    <title>The Modules Specifications</title>
    <para>This section specifies the OPTIONAL Modules that MAY be used along with Core for advanced
      functionality.</para>

    
    <section id="candidates">
    <title>Translation Candidates Module</title>

    <section>
        <title>Introduction</title>

        <para>The source text of a document can be pre-processed against various translation
            resources (Translation Memory, Machine Translation, etc.) to provide translation
            candidates. This module provides an XLIFF capability to store lists of possible
            translations along with information about the similarity of the match, the quality of
            the translation, its provenance, etc. </para>
    </section>
    <section>
        <title>Module Namespace and Validation Artifacts</title>
        <para>The namespace for the Translation Candidates module is:
                <code>urn:oasis:names:tc:xliff:matches:2.0</code></para>
        <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/matches.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/matches.xsd</ulink>.</para>


    </section>
    <section>
        <title>Module Fragment Identification Prefix</title>
        <para>The fragment identification prefix for the Translation Candidates module is:
                <code>mtc</code></para>
    </section>

    <section id="mtc_CoreReuse">
        <title>XLIFF Core Reuse</title>
        <para>The <link linkend="candidates">Translation Candidates Module</link> reuses several
            XLIFF Core elements, most of them have mandatory <link linkend="id"><code>xlf:id</code></link>. The uniqueness scopes for the reused
                <link linkend="id"><code>xlf:id</code></link>
            attributes are separate from the XLIFF Core. The following states the exact normative
            Constraints for the validation purposes:</para>
        <itemizedlist>
            <title>Constraints</title>
            <listitem>
                <para> When the <link linkend="id"><code>xlf:id</code></link> attribute is used on <link linkend="mrk"><code>&lt;xlf:mrk></code></link>, <link linkend="sm"><code>&lt;xlf:sm></code></link>, <link linkend="pc"><code>&lt;xlf:pc></code></link>, <link linkend="sc"><code>&lt;xlf:sc></code></link>, <link linkend="ec"><code>&lt;xlf:ec></code></link>, or <link linkend="ph"><code>&lt;xlf:ph></code></link> elements reused within the <link linkend="candidates">Translation Candidates Module</link>:</para>
                <itemizedlist>
                    <listitem>
                        <para>The inline elements enclosed by a <link linkend="target"><code>&lt;xlf:target></code></link> element MUST use the
                            duplicate <link linkend="id"><code>xlf:id</code></link> values of their corresponding
                            inline elements enclosed within the sibling <link linkend="source"><code>&lt;xlf:source></code></link> element if and only if
                            those corresponding elements exist.</para>
                    </listitem>

                    <listitem>
                        <para>Except for the above exception, the value MUST be unique among all of
                            the above within the enclosing <link linkend="match"><code>&lt;match></code></link> element. </para>
                    </listitem>
                </itemizedlist>
            </listitem>
            <listitem>
                <para>When used on <link linkend="data"><code>&lt;xlf:data></code></link> elements reused within
                    the <link linkend="candidates">Translation Candidates Module</link>:</para>
                <para>The value MUST be unique among all <link linkend="data"><code>&lt;xlf:data></code></link>
                    <code>xlf:id</code> attribute values within the enclosing <link linkend="match"><code>&lt;match></code></link> element.</para>
            </listitem>
            <listitem>
                <para>When the <link linkend="dataref"><code>xlf:dataRef</code></link>, <link linkend="datarefstart"><code>xlf:datarefstart</code></link>, and <link linkend="datarefend"><code>xlf:dataRefEnd</code></link> attributes are used on <link linkend="pc"><code>&lt;xlf:pc></code></link>, <link linkend="sc"><code>&lt;xlf:sc></code></link>, <link linkend="ec"><code>&lt;xlf:ec></code></link>, or <link linkend="ph"><code>&lt;xlf:ph></code></link> elements reused within the <link linkend="candidates">Translation Candidates Module</link>, their
                        <code>NMTOKEN</code> values MUST identify <link linkend="data"><code>&lt;data></code></link> elements within the enclosing <link linkend="match"><code>&lt;match></code></link> element. Those attributes MUST NOT be
                    used without corresponding <link linkend="data"><code>&lt;data></code></link> elements within the
                    enclosing <link linkend="match"><code>&lt;match></code></link> element. </para>
            </listitem>
        </itemizedlist>
    </section>

    <section id="matchAnnotation">
        <title>Translation Candidate Annotation</title>

        <para>This annotation can be used to mark up the scope of a translation candidate within the
            content of a unit. This module can reference any source or even target spans of content
            that are referenceable via the XLIFF <link linkend="fragid">Fragment Identification</link> mechanism, however in case the
            corresponding fragment is not suitably delimited, the best way how to mark the relevant
            span is to use the following annotation.</para>

        <para>Usage:</para>

        <itemizedlist spacing="compact">
            <listitem>
                <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED</para>
            </listitem>

            <listitem>
                <para>The <link linkend="type"><code>type</code></link> attribute is REQUIRED and set to
                        <code>mtc:match</code></para>
            </listitem>


            <listitem>
                <para>The <link linkend="ref"><code>ref</code></link> attribute is not used.</para>
            </listitem>

            <listitem>
                <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL</para>
            </listitem>
        </itemizedlist>

        <para>For example:</para>

        <programlisting format="linespecific">
&lt;unit id="1">
  &lt;mtc:matches>
    &lt;mtc:match ref="#m1" similarity="68">
      &lt;source>He is my friend.&lt;/source>
      &lt;target>Il est mon ami.&lt;/target>
    &lt;/mtc:match>
    &lt;mtc:match ref="#m1" similarity="60">
      &lt;source>He is my best friend.&lt;/source>
      &lt;target>Il est mon meilleur ami.&lt;/target>
    &lt;/mtc:match>
  &lt;/mtc:matches>
  &lt;segment>
    &lt;source>Paul &lt;mrk id="m1" type="mtc:match">is my friend&lt;/mrk>.&lt;/source>
  &lt;/segment>
  &lt;segment>
    &lt;source>Yet, I barely see him.&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>
    </section>

    <section>
        <title>Module Elements</title>
        <para>The elements defined in the Translation Candidates module are: <link linkend="matches"><code>&lt;matches></code></link> and <link linkend="match"><code>&lt;match></code></link>. </para>

        <section>
            
            <title>Tree Structure</title>
            <para>Legend:</para>
            <simplelist type="vert">
                <member>1 = one</member>
                <member>+ = one or more</member>
                <member>? = zero or one</member>
                <member>* = zero or more</member>
            </simplelist>
            <programlisting format="linespecific">
<link linkend="matches"><code>&lt;matches></code></link>
|
+---<link linkend="match"><code>&lt;match></code></link> +
  |
  +---<link linkend="metadata"><code>&lt;mda:metadata></code></link> ?
  |
  +---<link linkend="originaldata"><code>&lt;xlf:originalData></code></link> ?
  |
  +---<link linkend="source"><code>&lt;xlf:source></code></link> 1
  |
  +---<link linkend="target"><code>&lt;xlf:target></code></link> 1
  |
  +---&lt;other> *


  </programlisting>
        </section>

        <section id="matches">
    <title>matches</title>
    <para>Collection of matches retrieved from any leveraging system (Machine Translation, Translation Memory, etc.)</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One or more <link linkend="match"><code>&lt;match></code></link> elements</member>
    </simplelist>
</section>
        <section id="match">
    <title>match</title>
    <para>A potential translation suggested for a part of the source content of the enclosing <link linkend="unit"><code>&lt;unit></code></link> element.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link> element followed
            by.</member>
        <member>- Zero or one <link linkend="originaldata"><code>&lt;originalData></code></link> element followed
            by</member>
        <member>- One <link linkend="source"><code>&lt;source></code></link> element followed by</member>
        <member>- One <link linkend="target"><code>&lt;target></code></link> element followed by</member>
        <member>- elements from other namespaces, OPTIONAL</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="candidates_id"><code>id</code></link>, OPTIONAL</member>
        <member>- <link linkend="matchQuality"><code>matchQuality</code></link>, OPTIONAL</member>
        <member>- <link linkend="matchSuitability"><code>matchSuitability</code></link>,
            OPTIONAL</member>
        <member>- <link linkend="candidates_origin"><code>origin</code></link>, OPTIONAL</member>
        <member>- <link linkend="candidates_ref"><code>ref</code></link>, REQUIRED</member>
        <member>- <link linkend="candidates_reference"><code>reference</code></link>, OPTIONAL</member>
        <member>- <link linkend="candidates_similarity"><code>similarity</code></link>, OPTIONAL</member>
        <member>- <link linkend="candidates_subtype"><code>subType</code></link>, OPTIONAL</member>
        <member>- <link linkend="candidates_type"><code>type</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para> When a <link linkend="target"><code>&lt;target></code></link> element is a child of <link linkend="match"><code>&lt;match></code></link> and the
                    <link linkend="candidates_reference"><code>reference</code></link> attribute is set
                to <code>yes</code>, the OPTIONAL <link linkend="xml_lang"><code>xml:lang</code></link> attribute's value is not
                REQUIRED to be equal to the value of the <link linkend="trgLang"><code>trgLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
        </listitem>
        <listitem>
            <para>The following XLIFF Module attributes are explicitly allowed by the wildcard
                    <code>other</code>:</para>
            <simplelist type="vert">
                <member>- attributes from the namespace <code>http://www.w3.org/2005/11/its</code>,
                    OPTIONAL, provided that the Constraints specified in the <link linkend="ITS-module">ITS                        Module</link> are met.</member>
                <member>- attributes from the namespace
                        <code>urn:oasis:names:tc:xliff:itsm:2.1</code>, OPTIONAL, provided that the
                    Constraints specified in the <link linkend="ITS-module">ITS                        Module</link> are met.</member>
            </simplelist>
        </listitem>
    </itemizedlist>
</section>
    </section>

    <section>
        <title>Module Attributes</title>
        <para>The attributes defined in the Translation Candidates module are: <link linkend="candidates_id"><code>id</code></link>, <link linkend="matchQuality"><code>matchQuality</code></link>, <link linkend="matchSuitability"><code>matchSuitability</code></link>, <link linkend="candidates_origin"><code>origin</code></link>, <link linkend="candidates_ref"><code>ref</code></link>, <link linkend="candidates_reference"><code>reference</code></link>, <link linkend="candidates_similarity"><code>similarity</code></link>, <link linkend="candidates_subtype"><code>subType</code></link>, and <link linkend="candidates_type"><code>type</code></link>. </para>

        <section id="candidates_id">
  <title>id</title>

  <para>Identifier - a character string used to identify a <link linkend="match"><code>&lt;match></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN. </para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  
  
  <para><emphasis>Used in:</emphasis> <link linkend="match"><code>&lt;match></code></link>.</para>
<itemizedlist>
  <title>Constraints</title>
  <listitem><para>The <link linkend="candidates_id"><code>id</code></link> value MUST be unique within the enclosing <link linkend="matches"><code>&lt;matches></code></link> element.</para></listitem>
</itemizedlist>

</section>


        <section id="matchQuality">
    <title>matchQuality</title>
    
    <para>Match quality - indicates the quality of the <link linkend="target"><code>&lt;target></code></link> child of a <link linkend="match"><code>&lt;match></code></link> element based on an external benchmark or metric.</para>
    
    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="match"><code>&lt;match></code></link>.</para>
    
<note><para>This attribute can carry a human review based metrics score, a Machine Translation
            self-reported confidence score etc.</para></note>
</section>
        <section id="matchSuitability">
    <title>matchSuitability</title>

    <para>Match suitability - indicates the general suitability and relevance of its <link linkend="match"><code>&lt;match></code></link> element based on various external benchmarks or metrics
        pertaining to both the <link linkend="source"><code>&lt;source></code></link> and the <link linkend="target"><code>&lt;target></code></link> children of the <link linkend="match"><code>&lt;match></code></link>. </para>
    <para> This attribute is intended to carry a value that can be combined from values provided in
            <link linkend="candidates_similarity"><code>similarity</code></link> and <link linkend="matchQuality"><code>matchQuality</code></link> attributes based on an externally provided
        algorithm.</para>

    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="match"><code>&lt;match></code></link>.</para>

    <note>
        <para> This attribute is also useful for mapping match-quality as specified in XLIFF 1.2
            because 1.2 is not capable of discerning between the source similarity and the target
            quality.</para>
    </note>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Agents processing this module MUST make use of <link linkend="matchSuitability"><code>matchSuitability</code></link> for match
                ordering purposes if the attribute is specified. </para>
        </listitem>
    </itemizedlist>
</section>
        <section id="candidates_origin">
    <title>origin</title>
    
    <para>
		Match origin - indicates the tool, system or repository that generated a <link linkend="match"><code>&lt;match></code></link>
        element. This is a free text short informative
description. For example, 'Microsoft Translator Hub' or 'tm-client123-v456', or 'MSTH
(52217d25-d9e7-54a2-af44-3d4e4341d112_healthc).'
		
		</para>
    
    <para><emphasis>Value description:</emphasis> Text.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="match"><code>&lt;match></code></link>.</para>
    
</section>

        <section id="candidates_ref">
  <title>ref</title>

  <para>Reference - points to a span of text within the same unit, to which the translation
    candidate is relevant. </para>

  <para><emphasis>Value description:</emphasis> IRI</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="match"><code>&lt;match></code></link>.</para>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>The value of the <link linkend="candidates_ref"><code>ref</code></link> attribute MUST point to a span of text
        within the same <link linkend="unit"><code>&lt;unit></code></link> element where the <link linkend="match"><code>&lt;match></code></link> is located.</para>
      
    </listitem>
  </itemizedlist>
  
  <note>
    <para>When the <link linkend="candidates_ref"><code>ref</code></link> attribute points to a <link linkend="segment"><code>&lt;segment></code></link> element, by default the <link linkend="match"><code>&lt;match></code></link> content applies to its <link linkend="source"><code>&lt;source></code></link> child.</para>
  </note>
</section>

        <section id="candidates_reference">
  <title>reference</title>

  <para>Reference - indicates that the <link linkend="target"><code>&lt;target></code></link> child of the <link linkend="match"><code>&lt;match></code></link> element contains a translation into
    a reference language rather than into the target language. For example, a German translation can
    be used as reference by a Luxembourgish translator.</para>

  <para><emphasis>Value description:</emphasis> <code>yes</code> or <code>no</code>.</para>

  <para><emphasis>Default value:</emphasis> <code>no</code>.</para>
 
  <para><emphasis>Used in:</emphasis> <link linkend="match"><code>&lt;match></code></link></para>
  
</section>

        <section id="candidates_similarity">
    <title>similarity</title>
    
    <para>Similarity - indicates the similarity level between the content of the  
        <link linkend="source"><code>&lt;source></code></link>
        child of a
        <link linkend="match"><code>&lt;match></code></link>
        element and the translatable text being matched.</para>
    
    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="match"><code>&lt;match></code></link>.</para>
    
</section>
        <section id="candidates_subtype">
  <title>subType</title>

  <para>Sub-type - indicates the sub-type, i.e. a secondary level type, of a <link linkend="match"><code>&lt;match></code></link> element.</para>

  <para><emphasis>Value description:</emphasis>
  </para>
  <para>The value is composed of a prefix and a sub-value separated by a character : (U+003A). The
    prefix is a string uniquely identifying a collection of values for a specific authority. The
    sub-value is any string value defined by an authority. </para>
  <para>The prefix <code>xlf</code> is reserved for this specification, but no sub-values are
    defined for it at this time. Other prefixes and sub-values MAY be defined by the users.</para>
  <itemizedlist>
    <listitem>
      <para><emphasis>Default value:</emphasis> undefined</para>
    </listitem>
  </itemizedlist>
  <para><emphasis>Used in:</emphasis>
    <link linkend="match"><code>&lt;match></code></link>
  </para>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>If the attribute <link linkend="candidates_subtype"><code>subType</code></link> is used, the attribute <link linkend="candidates_type"><code>type</code></link> MUST
        be explicitly set.</para>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers updating the attribute <link linkend="candidates_type"><code>type</code></link> MUST also update or delete <link linkend="candidates_subtype"><code>subType</code></link> .</para>
    </listitem>
  </itemizedlist>
</section>

        <section id="candidates_type">
  <title>type</title>

  <para>Type - indicates the type of a <link linkend="match"><code>&lt;match></code></link> element, it gives the value providing
    additional information on how the match was generated or qualifying further the relevance of the
    match. The list of pre-defined values is general and user-specific information can be added
    using the <link linkend="candidates_subtype"><code>subType</code></link> attribute.</para>

  <para><emphasis>Value description:</emphasis>
  </para>

  <table>
    <title>Values</title>
    <tgroup cols="2">
      <thead>
        <row>
          <entry>Value</entry>
          <entry>Description</entry>
        </row>
      </thead>
      <tbody>
        <row>
          <entry>am</entry>
          <entry>Assembled Match: candidate generated by assembling parts of different translations.
            For example: constructing a candidate by using the known translations of various spans
            of content of the source. </entry>
        </row>
        <row>
          <entry>mt</entry>
          <entry>Machine Translation: candidate generated by a machine translation system.</entry>
        </row>
        <row>
          <entry>icm</entry>
          <entry>In Context Match: candidate for which the content context of the translation was
            the same as the one of the current source. For example: the source text for both
            contents is also preceded and/or followed by an identical source segment, or both appear
            as e.g. level 2 headings.</entry>
        </row>
        <row>
          <entry>idm</entry>
          <entry>Identifier-based Match: candidate that has an identifier identical to the one of
            the source content. For example: the previous translation of a given UI component with
            the same ID. match that has an identifier identical to the source content.</entry>
        </row>
        <row>
          <entry>tb</entry>
          <entry>Term Base: candidate obtained from a terminological database, i.e. the whole source
            segment matches with a source term base entry.</entry>
        </row>
        <row>
          <entry>tm</entry>
          <entry>Translation Memory: candidate based on a simple match of the source
            content.</entry>
        </row>
        <row>
          <entry>other</entry>
          <entry>Candidate of a top level type not covered by any of the above definitions.</entry>
        </row>
      </tbody>
    </tgroup>
  </table>
  <itemizedlist>
    <listitem>
      <para><emphasis>Default value:</emphasis> tm</para>
    </listitem>
  </itemizedlist>
  <para><emphasis>Used in:</emphasis>
    <link linkend="match"><code>&lt;match></code></link>
  </para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers updating the attribute <link linkend="candidates_type"><code>type</code></link>
        MUST also update or delete <link linkend="candidates_subtype"><code>subType</code></link> .</para>
    </listitem>
  </itemizedlist>

</section>


    </section>

    <section>
        <title>Example</title>

        <programlisting format="linespecific">
&lt;unit id="2">
  &lt;mtc:matches>
    &lt;mtc:match origin="Self" type="tm" ref="#2-0" matchQuality="74">
      &lt;source xml:lang="es">Esta es una línea de
        &lt;ph id="ph1"/>texto&lt;ph id="ph2"/> que necesita traducción.&lt;/source>
      &lt;target xml:lang="en">This is a line of
        &lt;ph id="ph1"/>text&lt;ph id="ph2"/> that needs translation.&lt;/target>
    &lt;/mtc:match>
    &lt;mtc:match origin="Self" type="tm" ref="#2-0" matchQuality="66">
      &lt;source xml:lang="es">Esta es la primera línea de texto que 
        necesita traducción.&lt;/source>
      &lt;target xml:lang="en">This is the first line of text that needs 
        translation.&lt;/target>
    &lt;/mtc:match>
  &lt;/mtc:matches>
  &lt;originalData>
    &lt;data id="ph1">&amp;lt;start/>&lt;/data>
    &lt;data id="ph2">&amp;lt;end/>&lt;/data>
  &lt;/originalData>
  &lt;segment state="final" id="2-0">
    &lt;source>Otra línea de &lt;ph id="ph1"/>texto&lt;ph id="ph2"/> que 
      necesita traducción.&lt;/source>
    &lt;target>Another line of &lt;ph id="ph1"/>text&lt;ph id="ph2"/> that 
      needs translation.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>

    </section>

</section>
    <section id="glossary-module">
  <title>Glossary Module</title>
  <section>
    <title>Introduction</title>

    <para>Simple glossaries, consisting of a list of terms with a definition or translation, can be
      optionally embedded in an XLIFF document using the namespace mechanism to include elements
      from the Glossary module.</para>
  </section>

  <section>
    <title>Module Namespace and Validation Artifacts</title>
    <para>The namespace for the Glossary module is:
        <code>urn:oasis:names:tc:xliff:glossary:2.0</code></para>
    <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/glossary.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/glossary.xsd</ulink>.</para>
  </section>

  <section>
    <title>Module Fragment Identification Prefix</title>
    <para>The fragment identification prefix for the Glossary module is: <code>gls</code></para>
  </section>

  <section>
    <title>Module Elements</title>
    <para>The elements defined in the Glossary module are: <link linkend="glossary"><code>&lt;glossary></code></link>, <link linkend="glossentry"><code>&lt;glossEntry></code></link>, <link linkend="term"><code>&lt;term></code></link>, <link linkend="translation"><code>&lt;translation></code></link> and <link linkend="definition"><code>&lt;definition></code></link>. </para>

    <section>
      
      <title>Tree Structure</title>
      <para>Legend:</para>
      <simplelist type="vert">
        <member>1 = one</member>
        <member>+ = one or more</member>
        <member>? = zero or one</member>
        <member>* = zero, one or more</member>
      </simplelist>
      <programlisting format="linespecific">
<link linkend="glossary"><code>&lt;glossary></code></link>
|
+---<link linkend="glossentry"><code>&lt;glossEntry></code></link> +
  |
  +---<link linkend="term"><code>&lt;term></code></link> 1
  |
  +---<link linkend="translation"><code>&lt;translation></code></link> *
  |
  +---<link linkend="definition"><code>&lt;definition></code></link> ?
  |
  +---&lt;other> *


  </programlisting>
    </section>


    <section id="glossary">
    <title>glossary</title>
    <para>Container for a list of glossary terms.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One or more <link linkend="glossentry"><code>&lt;glossEntry></code></link> elements.</member>
    </simplelist>
</section>
    <section id="glossentry">
    <title>glossEntry</title>
    <para>Glossary entry.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One <link linkend="term"><code>&lt;term></code></link>
            element followed by </member>
        <member>- Zero, one or more <link linkend="translation"><code>&lt;translation></code></link> elements followed by </member>
        <member>- Zero or one <link linkend="definition"><code>&lt;definition></code></link> element followed by </member>
        <member>- elements from other namespaces, OPTIONAL</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member> - <link linkend="gls_id"><code>id</code></link>, OPTIONAL </member>
        <member> - <link linkend="gls_ref"><code>ref</code></link>, OPTIONAL </member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>A <link linkend="glossentry"><code>&lt;glossEntry></code></link> element MUST
                contain a <link linkend="translation"><code>&lt;translation></code></link> or a <link linkend="definition"><code>&lt;definition></code></link> element to be valid.</para>
        </listitem>
        <listitem>
            <para>The following XLIFF Module elements are explicitly allowed by the wildcard
                    <code>other</code>:</para>
            <simplelist type="vert">

                <member>- Zero or one <link linkend="metadata"><code>&lt;mda:metadata></code></link>
                    elements</member>


            </simplelist>
        </listitem>
    </itemizedlist>
</section>
    <section id="term">
  <title>term</title>
  <para>A term in the glossary, expressed in the source language of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link>
    element.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- Text</member>
  </simplelist>

  <para>
    <emphasis>Attributes:</emphasis>
  </para>
  <simplelist type="vert">
    <member> - <link linkend="gls_source"><code>source</code></link>, OPTIONAL </member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

</section>
    <section id="translation">
    <title>translation</title>
    <para>A translation of the sibling <link linkend="term"><code>&lt;term></code></link> element expressed in the target language of the
        enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element. Multiple translations can be specified as
        synonyms.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Text</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="gls_id"><code>id</code></link>, OPTIONAL</member>
        <member> - <link linkend="gls_ref"><code>ref</code></link>, OPTIONAL</member>
        <member>- <link linkend="gls_source"><code>source</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

</section>
    <section id="definition">
    <title>definition</title>
    <para>Optional definition in plain text for the term stored in the sibling
        <link linkend="term"><code>&lt;term></code></link> element.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Text</member>
    </simplelist>

  <para>
    <emphasis>Attributes:</emphasis>
  </para>
  <simplelist type="vert">
    <member>
      - <link linkend="gls_source"><code>source</code></link>, OPTIONAL
    </member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

</section>
  </section>

  <section>
    <title>Module Attributes</title>
    <para>The attributes defined in the Glossary module are: <link linkend="gls_id"><code>id</code></link>,
        <link linkend="gls_ref"><code>ref</code></link>, and <link linkend="gls_source"><code>source</code></link></para>

    <section id="gls_id">
  <title>id</title>

  <para>Identifier - a character string used to identify a <link linkend="glossentry"><code>&lt;glossEntry></code></link> or <link linkend="translation"><code>&lt;translation></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="glossentry"><code>&lt;glossEntry></code></link> and <link linkend="translation"><code>&lt;translation></code></link></para>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The values of <link linkend="gls_id"><code>id</code></link> attributes MUST be unique
        among all <link linkend="glossentry"><code>&lt;glossEntry></code></link> and <link linkend="translation"><code>&lt;translation></code></link> elements within the given enclosing <link linkend="glossary"><code>&lt;glossary></code></link> element. </para>
    </listitem>
  </itemizedlist>


</section>
    <section id="gls_ref">
  <title>ref</title>

  <para>Reference - points to a span of source or target text within the same unit, to which the
    glossary entry is relevant.</para>

  <para><emphasis>Value description:</emphasis> IRI</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="glossentry"><code>&lt;glossEntry></code></link> and <link linkend="translation"><code>&lt;translation></code></link>.</para>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>The value of the <link linkend="gls_ref"><code>ref</code></link> attribute MUST point to a span of text
        within the same <link linkend="unit"><code>&lt;unit></code></link> element, where the enclosing <link linkend="glossary"><code>&lt;glossary></code></link> element is located.</para>
      
    </listitem>
  </itemizedlist>
</section>
    <section id="gls_source">
  <title>source</title>

  <para>Source - indicates the origin of the content of the element where the attribute is
    defined.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="term"><code>&lt;term></code></link>, 
  <link linkend="translation"><code>&lt;translation></code></link>, and 
  <link linkend="definition"><code>&lt;definition></code></link>.</para>
  
</section>
  </section>



  <section>
    <title>Example</title>

    <programlisting format="linespecific">

&lt;unit id="1">
  &lt;gls:glossary>
    &lt;gls:glossEntry ref="#m1">
      &lt;gls:term source="publicTermbase">TAB key&lt;/gls:term>
      &lt;gls:translation id="1" source="myTermbase">Tabstopptaste
          &lt;/gls:translation>
      &lt;gls:translation ref="#t=m1" source="myTermbase">TAB-TASTE
          &lt;/gls:translation>
      &lt;gls:definition source="publicTermbase">A keyboard key that is
          traditionally used to insert tab characters into a document.
          &lt;/gls:definition>
    &lt;/gls:glossEntry>
  &lt;/gls:glossary>
  &lt;segment>
    &lt;source>Press the &lt;mrk id="m1" type="term">TAB key&lt;/mrk>.&lt;/source>
    &lt;target>Drücken Sie die &lt;mrk id="m1" type="term">TAB-TASTE&lt;/mrk>.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>

  </section>

  

</section>
    <section id="fs-mod">
    <title>Format Style Module</title>

    <section>
        <title>Introduction</title>
        <para>This is intended as a namespace mechanism to carry inside an XLIFF document
            information needed for generating a quick at a glance HTML preview of XLIFF content
            using a predefined set of simple HTML formatting elements.</para>
    </section>
    <section>
        <title>Module Namespace and Validation Artifacts</title>
        <para>The namespace for the Format style module is:
                <code>urn:oasis:names:tc:xliff:fs:2.0</code></para>
        <para>XML Schema is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/fs.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/fs.xsd</ulink> .</para>

    </section>
    <section>
        <title>Module Fragment Identification Prefix</title>
        <para>Format Style module does not have a fragment identification prefix. Prefix
                <code>fs</code> is reserved in case it became needed in the future developments of
            this module.</para>
    </section>
    <section>
        <title>Module Specification</title>

        <para>Format Style module consists of just two attributes: <link linkend="fs"><code>fs</code></link> and
                <link linkend="subFs"><code>subFs</code></link>. It does not specify any elements.</para>
        <para>Format Style allows most structural and inline XLIFF core elements to convey basic
            formatting information using a predefined subset of HTML formatting elements. It
            primarily enables the generation of HTML pages or snippets for preview and review
            purposes. It MUST NOT be used to prescribe a roundtrip to a source document
            format.</para>
        <para>The <link linkend="fs"><code>fs</code></link>
            attribute holds the name of an HTML formatting element. If additional style information
            is needed, the OPTIONAL <link linkend="subFs"><code>subFs</code></link> attribute is provided.</para>
        <itemizedlist>
            <title>Constraints</title>
            <listitem>
                <para>The Format Style attributes MUST be configured in such a way that the HTML
                        <link linkend="HTML5">[HTML5]</link> snippet
                    resulting at the <link linkend="file"><code>&lt;file></code></link> level is valid.</para>
            </listitem>
        </itemizedlist>
        <itemizedlist>
            <title>Processing Requirements</title>
            <listitem>
                <para>Extractors and Enrichers SHOULD use the following method to validate their
                    HTML snippets:</para>
                <orderedlist continuation="restarts" inheritnum="ignore">
                    <listitem>
                        <para>Parse the snippet with the <link linkend="HTML5">[HTML5]</link> fragment parsing algorithm, see
                                <ulink url="http://www.w3.org/TR/html5/syntax.html#parsing-html-fragments">http://www.w3.org/TR/html5/syntax.html#parsing-html-fragments</ulink>.</para>
                    </listitem>
                    <listitem>
                        <para>the result MUST be a valid DOM tree as per <link linkend="HTML5">[HTML5]</link>, see
                                <ulink url="http://www.w3.org/TR/html5/infrastructure.html#tree-order">http://www.w3.org/TR/html5/infrastructure.html#tree-order</ulink>.
                        </para>
                    </listitem>
                </orderedlist>
            </listitem>
        </itemizedlist>

        <note>
            <para>The above constraint and validation method will make sure that the snippets are
                renderable by standard HTML browsers.</para>
        </note>
    </section>
    <section>
        <title>Module Attributes</title>
        <para>The attributes defined in the <link linkend="fs-mod">Format Style</link> module are:
                <link linkend="fs"><code>fs</code></link>,
                <link linkend="subFs"><code>subFs</code></link>. </para>

        <section id="fs">
  <title>fs</title>
  <para>Format style attribute, fs - allows most structural and inline XLIFF core elements to convey
    basic formatting information using a predefined subset of HTML formatting elements (for example,
    HTML elements names like &lt;script> are not included). It enables the generation of HTML
    pages or snippets for preview and review purposes. If additional style information is needed,
    the OPTIONAL <link linkend="subFs"><code>subFs</code></link> attribute
    is provided.</para>
  <para><emphasis>Value description:</emphasis><table>
      <title>Values</title>
      <tgroup cols="2">
        <colspec colname="col1"/>
        <colspec colname="col2"/>
        <tbody>
          <row>
            <entry colname="col1">a</entry>
            <entry colname="col2">anchor</entry>
          </row>
          <row>
            <entry> b </entry>
            <entry> bold text style </entry>
          </row>

          <row>
            <entry> bdo </entry>
            <entry> I18N BiDi over-ride </entry>
          </row>
          <row>
            <entry> big </entry>
            <entry> large text style </entry>
          </row>
          <row>
            <entry> blockquote </entry>
            <entry> long quotation </entry>
          </row>
          <row>
            <entry> body </entry>
            <entry> document body </entry>
          </row>
          <row>
            <entry> br </entry>
            <entry> forced line break </entry>
          </row>
          <row>
            <entry> button </entry>
            <entry> push button </entry>
          </row>
          <row>
            <entry> caption </entry>
            <entry> table caption </entry>
          </row>
          <row>
            <entry> center </entry>
            <entry> shorthand for DIV align=center </entry>
          </row>
          <row>
            <entry> cite </entry>
            <entry> citation </entry>
          </row>
          <row>
            <entry> code </entry>
            <entry> computer code fragment </entry>
          </row>
          <row>
            <entry> col </entry>
            <entry> table column </entry>
          </row>
          <row>
            <entry> colgroup </entry>
            <entry> table column group </entry>
          </row>
          <row>
            <entry> dd </entry>
            <entry> definition description </entry>
          </row>
          <row>
            <entry> del </entry>
            <entry> deleted text </entry>
          </row>
          <row>
            <entry> div </entry>
            <entry> generic language/style container </entry>
          </row>
          <row>
            <entry> dl </entry>
            <entry> definition list </entry>
          </row>
          <row>
            <entry> dt </entry>
            <entry> definition term </entry>
          </row>
          <row>
            <entry> em </entry>
            <entry> emphasis </entry>
          </row>

          <row>
            <entry> h1 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> h2 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> h3 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> h4 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> h5 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> h6 </entry>
            <entry> heading </entry>
          </row>
          <row>
            <entry> head </entry>
            <entry> document head </entry>
          </row>
          <row>
            <entry> hr </entry>
            <entry> horizontal rule </entry>
          </row>
          <row>
            <entry> html </entry>
            <entry> document root element </entry>
          </row>
          <row>
            <entry> i </entry>
            <entry> italic text style </entry>
          </row>

          <row>
            <entry>img</entry>
            <entry>image</entry>
          </row>
          <row>
            <entry> label </entry>
            <entry> form field label text </entry>
          </row>
          <row>
            <entry> legend </entry>
            <entry> fieldset legend </entry>
          </row>
          <row>
            <entry> li</entry>
            <entry> list item </entry>
          </row>
          <row>
            <entry> ol </entry>
            <entry> ordered list </entry>
          </row>
          <row>
            <entry> p </entry>
            <entry> paragraph </entry>
          </row>
          <row>
            <entry> pre </entry>
            <entry> preformatted text </entry>
          </row>
          <row>
            <entry> q </entry>
            <entry> short inline quotation </entry>
          </row>
          <row>
            <entry> s </entry>
            <entry> strike-through text style </entry>
          </row>
          <row>
            <entry> samp </entry>
            <entry> sample program output, scripts, etc. </entry>
          </row>
          <row>
            <entry> select </entry>
            <entry> option selector </entry>
          </row>
          <row>
            <entry> small </entry>
            <entry> small text style </entry>
          </row>
          <row>
            <entry> span </entry>
            <entry> generic language/style container </entry>
          </row>
          <row>
            <entry> strike </entry>
            <entry> strike-through text </entry>
          </row>
          <row>
            <entry> strong </entry>
            <entry> strong emphasis </entry>
          </row>

          <row>
            <entry> sub </entry>
            <entry> subscript </entry>
          </row>
          <row>
            <entry> sup </entry>
            <entry> superscript </entry>
          </row>
          <row>
            <entry> table </entry>
            <entry> </entry>
          </row>
          <row>
            <entry> tbody </entry>
            <entry> table body </entry>
          </row>
          <row>
            <entry> td </entry>
            <entry> table data cell </entry>
          </row>

          <row>
            <entry> tfoot </entry>
            <entry> table footer </entry>
          </row>
          <row>
            <entry> th </entry>
            <entry> table header cell </entry>
          </row>
          <row>
            <entry> thead </entry>
            <entry> table header </entry>
          </row>
          <row>
            <entry> title </entry>
            <entry> document title </entry>
          </row>
          <row>
            <entry> tr </entry>
            <entry> table row </entry>
          </row>
          <row>
            <entry> tt </entry>
            <entry> teletype or monospaced text style </entry>
          </row>
          <row>
            <entry> u </entry>
            <entry> underlined text style </entry>
          </row>
          <row>
            <entry> ul </entry>
            <entry> unordered list </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </para>
  <para><emphasis>Default value:</emphasis> undefined.</para>
  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, 
    <link linkend="note"><code>&lt;note></code></link>, 
    <link linkend="sc"><code>&lt;sc></code></link>,
      <link linkend="ec"><code>&lt;ec></code></link>,
      <link linkend="ph"><code>&lt;ph></code></link>,
      <link linkend="pc"><code>&lt;pc></code></link>,
      <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>. </para>

  <warning>
    <para>The <link linkend="fs"><code>fs</code></link> attribute is not intended to facilitate
      merging back into the original format. </para>
  </warning>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The <link linkend="fs"><code>fs</code></link> MUST only be used with <link linkend="ec"><code>&lt;ec></code></link> in
        cases where the <code>isolated</code> attribute is set to 'yes'.</para>
    </listitem>

  </itemizedlist>


  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers updating the attribute <link linkend="fs"><code>fs</code></link> MUST also
        update or delete <link linkend="subFs"><code>subFs</code></link>.</para>
    </listitem>
  </itemizedlist>

  <para><emphasis>Example: </emphasis>To facilitate HTML preview, <link linkend="fs">fs</link> can
    be applied to XLIFF like this like:</para>
  

  <programlisting format="linespecific">
&lt;xliff xmlns:fs="urn:oasis:names:tc:xliff:fs:2.0">
  &lt;file fs:fs="html">
    &lt;unit id="1" fs:fs="p">
      &lt;segment>
        &lt;source>Mick Jones renewed his interest in the Vintage &lt;pc id="1"
            fs:fs="strong">'72 Telecaster Thinline &lt;/pc> guitar.
            &lt;ph id="ph2" fs:fs="br" />He says &lt;pc fs:fs="q">I love 'em
            &lt;/pc>&lt;ph id="ph1" fs:fs="img"
            fs:subFs="src,smileface.png" />&lt;/source>
      &lt;/segment>
    &lt;/unit>
  &lt;/file>
&lt;/xliff>
</programlisting>


  <para>With an XSL stylesheet like this: </para>

  <programlisting format="linespecific">
&lt;xsl:template match="*" priority="2"
    xmlns:fs="urn:oasis:names:tc:xliff:fs:2.0">
  &lt;xsl:choose>
    &lt;xsl:when test="@fs:fs">
      &lt;xsl:element name="{@fs:fs}">
        &lt;xsl:if test="@fs:subFs">
          &lt;xsl:variable name="att_name"
              select="substring-before(@fs:subFs,',')" />
          &lt;xsl:variable name="att_val"
              select="substring-after(@fs:subFs,',')" />
          &lt;xsl:attribute name="{$att_name}">
            &lt;xsl:value-of select="$att_val" />
          &lt;/xsl:attribute>
        &lt;/xsl:if>
        &lt;xsl:apply-templates />
      &lt;/xsl:element>
    &lt;/xsl:when>
    &lt;xsl:otherwise>
      &lt;xsl:apply-templates />
    &lt;/xsl:otherwise>
  &lt;/xsl:choose>
&lt;/xsl:template>
</programlisting>

  <para>You can generate a an HTML page like this: </para>

  <programlisting format="linespecific">
&lt;html>
  &lt;p>Mick Jones renewed his interest in the Vintage &lt;strong>'72
      Telecaster Thinline &lt;/strong> guitar. &lt;br/>He says &lt;q>I love 'em
      &lt;/q>&lt;img src="smileface.png"/>&lt;/p>
&lt;/html>
</programlisting>

</section>
        <section id="subFs">
    <title>subFs</title>
    <para>Sub-format style, subFs - allows extra metadata, like URL for example, to be added in
        concert with the <link linkend="fs"><code>fs</code></link> attribute. </para>

    <para><emphasis>Value description:</emphasis> The subFs attribute is used to specify the HTML
        attributes to use along with the HTML element declared in the <link linkend="fs"><code>fs</code></link> attribute. It is
        a list of name/value pairs. Each pair is separated from the next with a backslash (\). The
        name and the value of a pair are separated with a comma (,). Both literal backslash and
        comma characters are escaped with a backslash prefix. </para>
    <para><emphasis>Default value:</emphasis> undefined.</para>
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="note"><code>&lt;note></code></link>, <link linkend="source"><code>&lt;source></code></link>, <link linkend="target"><code>&lt;target></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>,
            <link linkend="ph"><code>&lt;ph></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
        and <link linkend="sm"><code>&lt;sm></code></link>. </para>
    <warning>
        <para>The <link linkend="subFs"><code>subFs</code></link> attribute is not intended to
            facilitate merging back into the original format. </para>
    </warning>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>Commas (<code>,</code>) and backslashes (<code>\</code>) in the value parts of the
                    <link linkend="subFs"><code>subFs</code></link> MUST be escaped with a backslash
                    (<code>\</code>).</para>
        </listitem>
        <listitem>
            <para>If the attribute <link linkend="subFs"><code>subFs</code></link> is used, the
                attribute <link linkend="fs"><code>fs</code></link> MUST be specified as well.</para>
        </listitem>
        <listitem>
            <para>The <link linkend="subFs"><code>subFs</code></link> MUST only be used with <link linkend="ec"><code>&lt;ec></code></link> in cases where the <code>isolated</code>
                attribute is set to 'yes'.</para>
        </listitem>
    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Writers updating the attribute <link linkend="fs"><code>fs</code></link> MUST also update or delete <link linkend="subFs"><code>subFs</code></link>.</para>
        </listitem>


    </itemizedlist>
    

    <para><emphasis>Example: </emphasis>For complex HTML previews that require more than one
        attribute on an HTML preview element, attribute pairs are separated by backslashes (\). Any
        literal comma or backslash in an attribute value MUST be escaped with a backslash.</para>

    <para>For example, we would use this convention:</para>

    <programlisting format="linespecific">
&lt;ph id="p1" fs="img" subFs="src,c:\\docs\\images\\smile.png\alt,
    My Happy Smile\title,Smiling faces\, are nice" /></programlisting>

    <para>To produce this HTML preview:</para>

    <programlisting format="linespecific">
&lt;img src="c:\docs\images\smile.png" alt="My Happy Smile" title="Smiling
    faces, are nice" /></programlisting>

</section>

    </section>


</section>
    <section id="metadata_module">
    <title>Metadata Module</title>
    <section>
        <title>Introduction</title>
        <para>The Metadata module provides a mechanism for storing custom metadata using elements
            that are part of the official XLIFF specification.</para>
    </section>

    <section>
        <title>Module Namespace and Validation Artifacts</title>
        <para>The namespace for the Metadata module is:
                <code>urn:oasis:names:tc:xliff:metadata:2.0</code></para>
        <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/metadata.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/metadata.xsd</ulink>.</para>
    </section>
    <section>
        <title>Module Fragment Identification Prefix</title>
        <para>The fragment identification prefix for the Metadata module is: <code>mda</code></para>
    </section>

    <section>
        <title>Module Elements</title>
        <para>The elements defined in the Metadata module are: <link linkend="metadata"><code>&lt;metadata></code></link>, <link linkend="metagroup"><code>&lt;metaGroup></code></link>, and <link linkend="meta"><code>&lt;meta></code></link>. </para>
        <section>
            
            <title>Tree Structure</title>
            <para>Legend:</para>
            <simplelist type="vert">
                <member>+ = one or more</member>
            </simplelist>
            <programlisting format="linespecific">
<link linkend="metadata"><code>&lt;metadata></code></link>
|
+---<link linkend="metagroup"><code>&lt;metaGroup></code></link> +
  |
  +---At least one of (<link linkend="metagroup"><code>&lt;metaGroup></code></link> OR <link linkend="meta"><code>&lt;meta></code></link>)
      |
      +---<link linkend="meta"><code>&lt;meta></code></link>


  </programlisting>
        </section>
        <section id="metadata">
  <title>metadata</title>
  <para>Container for metadata associated with the enclosing element.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- One or more <link linkend="metagroup"><code>&lt;metaGroup></code></link> elements</member>
  </simplelist>
  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="meta_id"><code>id</code></link>, OPTIONAL</member>

  </simplelist>
  <para><emphasis>Example:</emphasis> Metadata can be used to store XML attribute names and values
    for XLIFF documents that do not use a skeleton. The following XML sample contains attributes on
      the<code> &lt;document></code> and <code>&lt;row></code> elements.</para>
  <programlisting format="linespecific">
&lt;document version="3" phase="draft">
  &lt;table>
    &lt;row style="head">
      &lt;cell>Name&lt;/cell>
      &lt;cell>Position&lt;/cell>
    &lt;/row>
    &lt;row>
      &lt;cell>Patrick K.&lt;/cell>
      &lt;cell>Right Wing&lt;/cell>
    &lt;/row>
    &lt;row>
      &lt;cell>Bryan B.&lt;/cell>
      &lt;cell>Left Wing&lt;/cell>
    &lt;/row>
  &lt;/table>
&lt;/document>
</programlisting>
  <para>The Metadata module can be used to preserve these attributes for a round trip without using
    a skeleton:</para>
  <programlisting format="linespecific">
&lt;?xml version="1.0" encoding="utf-8"?>
&lt;xliff xmlns="urn:oasis:names:tc:xliff:document:2.2"
    xmlns:fs="urn:oasis:names:tc:xliff:fs:2.0"
    xmlns:mda="urn:oasis:names:tc:xliff:metadata:2.0" version="2.2"
    srcLang="en">
  &lt;file id="f1">
    &lt;group id="g1" name="document">
      &lt;mda:metadata>
        &lt;mda:metaGroup category="document_xml_attribute">
          &lt;mda:meta type="version">3&lt;/mda:meta>
          &lt;mda:meta type="phase">draft&lt;/mda:meta>
        &lt;/mda:metaGroup>
      &lt;/mda:metadata>
      &lt;group id="g2" name="table">
        &lt;group id="g3" name="row">
          &lt;mda:metadata>
            &lt;mda:metaGroup category="row_xml_attribute">
              &lt;mda:meta type="style">head&lt;/mda:meta>
            &lt;/mda:metaGroup>
          &lt;/mda:metadata>
          &lt;unit id="u1" name="cell">
            &lt;segment>
              &lt;source>Name&lt;/source>
            &lt;/segment>
          &lt;/unit>
          &lt;unit id="u2" name="cell">
            &lt;segment>
              &lt;source>Position&lt;/source>
            &lt;/segment>
          &lt;/unit>
        &lt;/group>
        &lt;group id="g4" name="row">
          &lt;unit id="u3" name="cell">
            &lt;segment>
              &lt;source>Patrick K.&lt;/source>
            &lt;/segment>
          &lt;/unit>
          &lt;unit id="u4" name="cell">
            &lt;segment>
              &lt;source>Right Wing&lt;/source>
            &lt;/segment>
          &lt;/unit>
        &lt;/group>
        &lt;group id="g5" name="row">
          &lt;unit id="u5" name="cell">
            &lt;segment>
              &lt;source>Bryan B.&lt;/source>
            &lt;/segment>
          &lt;/unit>
          &lt;unit id="u6" name="cell">
            &lt;segment>
              &lt;source>Left Wing&lt;/source>
            &lt;/segment>
          &lt;/unit>
        &lt;/group>
      &lt;/group>
    &lt;/group>
  &lt;/file>
&lt;/xliff>
</programlisting>

</section>
        <section id="metagroup">
    <title>metaGroup</title>
    <para>Provides a way to organize metadata into a structured hierarchy.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- One or more <link linkend="metagroup"><code>&lt;metaGroup></code></link> or <link linkend="meta"><code>&lt;meta></code></link> elements in any order.</member>
    </simplelist>
    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="meta_id"><code>id</code></link>, OPTIONAL</member>
        <member>- <link linkend="meta_category"><code>category</code></link>, OPTIONAL </member>
        <member>- <link linkend="meta_appliesto"><code>appliesTo</code></link>, OPTIONAL </member>
    </simplelist>
</section>
        <section id="meta">
    <title>meta</title>
    <para>Container for a single metadata component.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Non-translatable text</member>
    </simplelist>
    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="meta_type"><code>type</code></link>, REQUIRED</member>
    </simplelist>
</section>
    </section>

    <section>
        <title>Module Attributes</title>
        <para>The attributes defined in the Metadata module are: <link linkend="meta_appliesto"><code>appliesTo</code></link>, <link linkend="meta_category"><code>category</code></link>, <link linkend="meta_id"><code>id</code></link>, and <link linkend="meta_type"><code>type</code></link>. </para>
        <section id="meta_appliesto">
    <title>appliesTo</title>

    <para>Indicates the element to which the content of the metagroup applies.</para>

    <para><emphasis>Value description:</emphasis> <code>source</code>, <code>target</code>, or <code>ignorable</code>.</para>

    <para><emphasis>Default value:</emphasis> undefined.</para>

    <para><emphasis>Used in:</emphasis>
        <link linkend="metagroup"><code>&lt;metaGroup></code></link>.</para>

</section>
        <section id="meta_category">
  <title>category</title>

  <para>category - indicates a category for metadata contained in the enclosing <link linkend="metagroup"><code>&lt;metaGroup></code></link> element.</para>
  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined.</para>


  <para><emphasis>Used in:</emphasis>
    <link linkend="metagroup"><code>&lt;metaGroup></code></link>.</para>
</section>
        <section id="meta_id">
  <title>id</title>

  <para>Identifier - a character string used to identify a <link linkend="metadata"><code>&lt;metadata></code></link> or <link linkend="metagroup"><code>&lt;metaGroup></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="metadata"><code>&lt;metadata></code></link> and <link linkend="metagroup"><code>&lt;metaGroup></code></link></para>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The values of <link linkend="meta_id"><code>id</code></link> attributes MUST be unique
        among all <link linkend="metagroup"><code>&lt;metaGroup></code></link> and <link linkend="metadata"><code>&lt;metadata></code></link> elements within the given enclosing <link linkend="metadata"><code>&lt;metadata></code></link> element. </para>
    </listitem>
  </itemizedlist>


</section>
        <section id="meta_type">
  <title>type</title>

  <para>type - indicates the type of metadata contained by the enclosing element.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> undefined.</para>


  <para><emphasis>Used in:</emphasis> <link linkend="meta"><code>&lt;meta></code></link>.</para>
</section>

    </section>



</section>
    <section id="resourceData_module">
  <title>Resource Data Module</title>
  <section>
    <title>Introduction</title>
    <para>The Resource Data module provides a mechanism for referencing external resource data that
      MAY need to be modified or used as contextual reference during translation.</para>
  </section>
  <section>
    <title>Module Namespace and Validation Artifacts</title>
    <para>The namespace for the Resource Data module is:
        <code>urn:oasis:names:tc:xliff:resourcedata:2.0</code></para>
    <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/resource_data.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/resource_data.xsd</ulink>.</para>
  </section>

  <section>
    <title>Module Fragment Identification Prefix</title>
    <para>The fragment identification prefix for the Resource Data module is:
      <code>res</code></para>
  </section>

  <section>
    <title>Module Elements</title>
    <para>The elements defined in the Resource Data module are: <link linkend="res_resourceData"><code>&lt;resourceData></code></link>, <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link>, <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link>, <link linkend="res_source"><code>&lt;source></code></link>, <link linkend="res_target"><code>&lt;target></code></link>, and <link linkend="res_reference"><code>&lt;reference></code></link>. </para>
    <section>
      
      <title>Tree Structure</title>
      <para>Legend:</para>
      <simplelist type="vert">
        <member>? = zero or one</member>
        <member>* = zero, one or more</member>
      </simplelist>
      <programlisting format="linespecific">
<link linkend="res_resourceData"><code>&lt;resourceData></code></link>
|
+---<link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link> *
|
+---<link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> *
  |
  +---<link linkend="notes"><code>&lt;notes></code></link> *
  | |
  | +===<link linkend="note"><code>&lt;note></code></link> ?
  |
  +---<link linkend="res_source"><code>&lt;source></code></link> ?
  | |
  | +---&lt;other> *
  |
  +---<link linkend="res_target"><code>&lt;target></code></link> ?
  | |
  | +---&lt;other> *
  |
  +---<link linkend="res_reference"><code>&lt;reference></code></link> *


  </programlisting>
    </section>
    <section id="res_resourceData">
    <title>resourceData</title>
    <para>Parent container for resource data associated with the enclosing element.</para>
    <para><emphasis>Contains:</emphasis></para>
    <para>At least one of the following</para>
    <simplelist type="vert">
        <member>- Zero, one or more <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link> elements.</member>
        <member>- Zero, one or more <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> elements.</member>
    </simplelist>  
</section>
    <section id="res_resourceItemRef">
  <title>resourceItemRef</title>
  <para>Specifies a reference to an associated <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> element located at the <link linkend="file"><code>&lt;file></code></link>
    level.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>
  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="res_id"><code>id</code></link>, OPTIONAL</member>
    <member>- <link linkend="res_ref"><code>ref</code></link>, REQUIRED</member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>The value of the OPTIONAL <link linkend="res_id">id</link> attribute MUST be unique among all <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> and <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link> elements of the
        enclosing <link linkend="res_resourceData"><code>&lt;resourceData></code></link> element.</para>
    </listitem>

  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>Modifiers MUST remove <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link> when removing
        the referenced <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link>.</para>
    </listitem>

  </itemizedlist>
</section>
    <section id="res_resourceItem">
  <title>resourceItem</title>
  <para>Container for specific resource data that is either intended for modification, or to be used
    as contextual reference during translation.</para>
  <para><emphasis>Contains:</emphasis></para>
  <para>At least one of the following</para>
  <simplelist type="vert">
    <member>- Zero or one <link linkend="notes"><code>&lt;notes></code></link> element followed by</member>
    <member>- Zero or one <link linkend="res_source"><code>&lt;source></code></link> element followed by</member>
    <member>- Zero or one <link linkend="res_target"><code>&lt;target></code></link> element followed by</member>
    <member>- Zero, one or more <link linkend="res_reference"><code>&lt;reference></code></link> elements</member>
  </simplelist>
  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="res_mimeType"><code>mimeType</code></link>, OPTIONAL</member>
    <member>- <link linkend="res_id"><code>id</code></link>, OPTIONAL</member>
    <member>- <link linkend="res_context"><code>context</code></link>, OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>

  </simplelist>
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The <link linkend="res_mimeType"><code>mimeType</code></link> attribute is REQUIRED if <link linkend="res_target"><code>&lt;target></code></link> and <link linkend="res_source"><code>&lt;source></code></link> child elements are empty, otherwise it is
        OPTIONAL.</para>
    </listitem>
    <listitem>
      <para>The value of the OPTIONAL <link linkend="res_id">id</link> attribute MUST be unique among all <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> and <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link> elements of the
        enclosing <link linkend="res_resourceData"><code>&lt;resourceData></code></link> element.</para>
    </listitem>
  </itemizedlist>

  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>If a Modifier does not understand how to process the <link linkend="res_mimeType"><code>mimeType</code></link> attribute, or the file it references, the <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> element MAY be ignored, but still MUST be
        preserved.</para>
    </listitem>

    <listitem>
      <para>The <link linkend="res_mimeType"><code>mimeType</code></link> attribute SHOULD only be modified
        or removed if the referenced files are modified or removed.</para>
    </listitem>

    <listitem>
      <para>For each instance of <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> containing only <link linkend="res_source"><code>&lt;source></code></link>:</para>

      <itemizedlist>
        <listitem>
          <para>Modifiers MAY leave <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> unchanged, i.e.
            they are not REQUIRED to create <link linkend="res_target"><code>&lt;target></code></link> or <link linkend="res_reference"><code>&lt;reference></code></link>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY create <link linkend="res_target"><code>&lt;target></code></link> or <link linkend="res_reference"><code>&lt;reference></code></link> as a siblings of <link linkend="res_source"><code>&lt;source></code></link>.</para>
        </listitem>
      </itemizedlist>

    </listitem>

  </itemizedlist>
</section>
    <section id="res_source">
  <title>source</title>
  <para>References the actual resource data that is either intended for modification, or to be used
    as contextual reference during translation.</para>
  <para><emphasis>Contains:</emphasis></para>
  <para>Either</para>
  <simplelist type="vert">
    <member>- elements from other namespaces</member>
  </simplelist>
  <para>or</para>
  <simplelist type="vert">
    <member>- is empty.</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="res_href"><code>href</code></link>, OPTIONAL</member>
    <member>- <link linkend="res_xml_lang"><code>xml:lang</code></link>, OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>

      <para>The attribute <link linkend="res_href"><code>href</code></link> is REQUIRED if and only if <link linkend="res_source"><code>&lt;source></code></link> is empty.</para>
    </listitem>

    <listitem>
      <para>When the OPTIONAL <link linkend="res_xml_lang"><code>xml:lang</code></link> attribute is present, its value
        MUST be equal to the value of the <link linkend="srcLang"><code>srcLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
    </listitem>
  </itemizedlist>


  <itemizedlist>
    <title>Processing Requirements</title>


    <listitem>
      <para>When the <link linkend="res_context"><code>context</code></link> attribute of <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> is set to <code>yes</code>:</para>
      <itemizedlist>
        <listitem>
          <para>Modifiers MAY create <link linkend="res_source"><code>&lt;source></code></link> if not already present.</para>
        </listitem>
        <listitem>
          <para>Modifiers SHOULD NOT change <link linkend="res_source"><code>&lt;source></code></link>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY remove <link linkend="res_source"><code>&lt;source></code></link>.</para>
        </listitem>
      </itemizedlist>
    </listitem>

    <listitem>
      <para>When the <link linkend="res_context"><code>context</code></link> attribute of <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> is set to <code>no</code>:</para>
      <itemizedlist>
        <listitem>
          <para><link linkend="res_source"><code>&lt;source></code></link> MUST be present.</para>
        </listitem>
        <listitem>
          <para>Modifiers MUST NOT change <link linkend="res_source"><code>&lt;source></code></link>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MUST NOT remove <link linkend="res_source"><code>&lt;source></code></link>.</para>
        </listitem>
      </itemizedlist>
    </listitem>
  </itemizedlist>
</section>
    <section id="res_target">
  <title>target</title>
  <para>References the localized counterpart of the sibling <link linkend="res_source"><code>&lt;source></code></link> element.</para>
  <para><emphasis>Contains:</emphasis></para>
  <para>Either</para>
  <simplelist type="vert">
    <member>- elements from other namespaces</member>
  </simplelist>
  <para>or</para>
  <simplelist type="vert">
    <member>- is empty.</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="res_href"><code>href</code></link>, OPTIONAL</member>
    <member>- <link linkend="res_xml_lang"><code>xml:lang</code></link>, OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>


  <itemizedlist>
    <title>Constraints</title>

    <listitem>

      <para>The attribute <link linkend="res_href"><code>href</code></link> is REQUIRED if and only if <link linkend="res_target"><code>&lt;target></code></link> is empty.</para>
    </listitem>

    <listitem>
      <para>When the OPTIONAL <link linkend="res_xml_lang"><code>xml:lang</code></link> attribute is present, its value
        MUST be equal to the value of the <link linkend="trgLang"><code>trgLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
    </listitem>

  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>


    <listitem>
      <para>When the <link linkend="res_context"><code>context</code></link> attribute of <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> is set to <code>yes</code>:</para>
      <itemizedlist>
        <listitem>
          <para>Modifiers MAY create <link linkend="res_target"><code>&lt;target></code></link> if not already present.</para>
        </listitem>
        <listitem>
          <para>Modifiers SHOULD NOT change <link linkend="res_target"><code>&lt;target></code></link>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY remove <link linkend="res_target"><code>&lt;target></code></link>.</para>
        </listitem>
      </itemizedlist>
    </listitem>

    <listitem>
      <para>When the <link linkend="res_context"><code>context</code></link> attribute of <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> is set to <code>no</code>:</para>
      <itemizedlist>
        <listitem>
          <para>Modifiers MAY create <link linkend="res_target"><code>&lt;target></code></link> if not already present.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY leave <link linkend="res_target"><code>&lt;target></code></link> unchanged.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY change <link linkend="res_target"><code>&lt;target></code></link>.</para>
        </listitem>
        <listitem>
          <para>Modifiers MAY replace an existing <link linkend="res_target"><code>&lt;target></code></link>, i.e. the previously populated <link linkend="res_target"><code>&lt;target></code></link> MUST NOT be left blank.</para>
        </listitem>
      </itemizedlist>
    </listitem>

  </itemizedlist>
</section>
    <section id="res_reference">
  <title>reference</title>
  <para>References contextual data relating to the sibling <link linkend="res_source"><code>&lt;source></code></link> and <link linkend="res_target"><code>&lt;target></code></link> elements, such as a German screenshot for a Luxembourgish
    translator.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- This element is always empty.</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="res_href"><code>href</code></link>, REQUIRED</member>
    <member>- <link linkend="res_xml_lang"><code>xml:lang</code></link>, OPTIONAL</member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para>When the OPTIONAL <link linkend="res_xml_lang"><code>xml:lang</code></link> attribute is present, its value
        does not need to be equal to the value of the <link linkend="srcLang"><code>srcLang</code></link>
        or <link linkend="trgLang"><code>trgLang</code></link> attribute of the enclosing <link linkend="xliff"><code>&lt;xliff></code></link> element.</para>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>Writers MAY create <link linkend="res_reference"><code>&lt;reference></code></link> if not already
        present.</para>
    </listitem>

    <listitem>
      <para>Modifiers SHOULD NOT change <link linkend="res_reference"><code>&lt;reference></code></link>.</para>
    </listitem>

    <listitem>
      <para>Modifiers MAY remove <link linkend="res_reference"><code>&lt;reference></code></link>.</para>
    </listitem>

  </itemizedlist>
</section>
  </section>

  <section>
    <title>Module Attributes</title>
    <para>The attributes defined in the Resource Data module are: <link linkend="res_id"><code>id</code></link>, <link linkend="res_xml_lang"><code>xml:lang</code></link>, <link linkend="res_mimeType"><code>mimeType</code></link>, <link linkend="res_context"><code>context</code></link>, <link linkend="res_href"><code>href</code></link>, and <link linkend="res_ref"><code>ref</code></link>. </para>
    <section id="res_id">
  <title>id</title>

  <para>Identifier - A character string used to identify a <link linkend="res_resourceData"><code>&lt;resourceData></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> NMTOKEN</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> and <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link></para>
  
</section>
    <section id="res_xml_lang">
    <title>xml:lang</title>
    
    <para>Language - The xml:lang attribute specifies the language variant of the text of a given element. 
        For example: <code>xml:lang="fr-FR"</code> indicates the French language as spoken in France.</para>
    
    <para><emphasis>Value description:</emphasis> A language code as described in <link linkend="bcp47">[BCP 47]</link>.</para>
    
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <para><emphasis>Used in:</emphasis> <link linkend="res_source"><code>&lt;source></code></link>, 
        <link linkend="res_target"><code>&lt;target></code></link>, and 
        <link linkend="res_reference"><code>&lt;reference></code></link>.</para>
</section>
    <section id="res_mimeType">
  <title>mimeType</title>

  <para>MIME type, mimeType - indicates the type of a resource object. This generally corresponds to
    the content type of <ulink url="http://tools.ietf.org/rfc/rfc2045.txt">[RFC 2045]</ulink>, the
    MIME specification; e.g. mimeType="text/xml" indicates the resource data is a text file of XML
    format.</para>

  <para><emphasis>Value description:</emphasis> A MIME type. An existing MIME type MUST be used from
    a <ulink url="http://www.iana.org/assignments/media-types">list of standard
    values</ulink>.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link></para>
  <note>
    <para>If you cannot use any of the standard MIME type values as specified above, a new MIME type
      can be registered according to <ulink url="http://tools.ietf.org/rfc/rfc2048.txt">[RFC
        2048]</ulink>.</para>
  </note>

</section>
    <section id="res_context">
  <title>context</title>

  <para>Contextual Information - Indicates whether an external resource is to be used for context only and not modified.</para>

  <para><emphasis>Value description:</emphasis> <code>yes</code> or <code>no</code></para>

  <para><emphasis>Default value:</emphasis> <code>yes</code></para>

  <para><emphasis>Used in:</emphasis> <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link></para>

</section>
    <section id="res_href">
  <title>href</title>

  <para>Hypertext Reference, href - IRI referencing an external resource.</para>

  <para><emphasis>Value description:</emphasis> IRI.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="res_source"><code>&lt;source></code></link>, <link linkend="res_target"><code>&lt;target></code></link>, and <link linkend="res_reference"><code>&lt;reference></code></link></para>
  
</section>
    <section id="res_ref">
  <title>ref</title>

  <para>Resource Item Reference - holds a reference to an associated <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> element located at the <link linkend="file"><code>&lt;file></code></link>
    level.</para>

  <para><emphasis>Value description:</emphasis> An <link linkend="XMLSchema2">[XML Schema Datatypes]</link> NMTOKEN</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="res_resourceItemRef"><code>&lt;resourceItemRef></code></link></para>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>The <link linkend="res_ref"><code>ref</code></link> attribute value MUST be the value of
        the <link linkend="res_id"><code>id</code></link> attribute of
        the <link linkend="res_resourceItem"><code>&lt;resourceItem></code></link> element being
        referenced.</para>
    </listitem>
  </itemizedlist>

</section>
  </section>

  <section>
    <title>Examples</title>

    <para>In this example, the <link linkend="res_resourceData"><code>&lt;resourceData></code></link> module at <link linkend="file"><code>&lt;file></code></link> level references external XML that contains resource data
      for a user interface control. The control is the container for the text “Load Registry Config”
      and needs to be resized to accommodate the increased length of the string due to translation.
      The <link linkend="res_resourceData"><code>&lt;resourceItemRef></code></link> element contained in
      the <link linkend="res_resourceData"><code>&lt;resourceData></code></link> module at <link linkend="unit"><code>&lt;unit></code></link> level provides the reference between them. The name
      attribute of the <link linkend="unit"><code>&lt;unit></code></link> element could serve as the key for an editor to associate
        <link linkend="res_source"><code>&lt;source></code></link> and <link linkend="res_target"><code>&lt;target></code></link> text with the resource data contained in the referenced
      XML and display it for modification.</para>

    <programlisting format="linespecific">

&lt;file id="f1">
  &lt;res:resourceData>
    &lt;res:resourceItem id="r1" mimeType="text/xml" context="no">
      &lt;res:source href="resources\en\registryconfig.resources.xml" />
      &lt;res:target href="resources\de\registryconfig.resources.xml" />
    &lt;/res:resourceItem>
  &lt;/res:resourceData>
  &lt;unit id="1" name="130;WIN_DLG_CTRL_">
    &lt;res:resourceData>
      &lt;res:resourceItemRef ref="r1" />
    &lt;/res:resourceData>
    &lt;segment id="1" state="translated">
      &lt;source>Load Registry Config&lt;/source>
      &lt;target>Registrierungskonfiguration laden&lt;/target>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>

    <para>In this example, the <link linkend="res_resourceData"><code>&lt;resourceData></code></link> module at the <link linkend="unit"><code>&lt;unit></code></link> level contains elements from another namespace (abc), which
      could be displayed for modification in an editor that understands how to process the
      namespace.</para>

    <programlisting format="linespecific">

&lt;file id="f2" xmlns:abc="urn:abc">
  &lt;unit id="1">
    &lt;res:resourceData>
      &lt;res:resourceItem id="r1" context="no">
        &lt;res:source>
          &lt;abc:resourceType>button&lt;/abc:resourceType>
          &lt;abc:resourceHeight>40&lt;/abc:resourceHeight>
          &lt;abc:resourceWidth>75&lt;/abc:resourceWidth>
        &lt;/res:source>
        &lt;res:target>
          &lt;abc:resourceType>button&lt;/abc:resourceType>
          &lt;abc:resourceHeight>40&lt;/abc:resourceHeight>
          &lt;abc:resourceWidth>150&lt;/abc:resourceWidth>
        &lt;/res:target>
      &lt;/res:resourceItem>
    &lt;/res:resourceData>
    &lt;segment id="1" state="translated">
      &lt;source>Load Registry Config&lt;/source>
      &lt;target>Registrierungskonfiguration laden&lt;/target>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>

    <para>In this example, the <link linkend="res_resourceData"><code>&lt;resourceData></code></link> module references
      multiple static images that an editor can make use of as context while translating or
      reviewing.</para>

    <programlisting format="linespecific">

&lt;file id="f3">
  &lt;res:resourceData>
    &lt;res:resourceItem id="r1" mimeType="image/jpeg" context="yes">
      &lt;notes>
        &lt;note>Registry configuration UI screen shot&lt;/note>
      &lt;/notes>
      &lt;res:source xml:lang="en-us"
          href="resources\en\registryconfig1.resources.jpg" />
      &lt;res:target xml:lang="lb-lu"
          href="resources\lb\registryconfig1.resources.jpg" />
      &lt;res:reference xml:lang="de-de"
          href="resources\de\registryconfig1.resources.jpg" />
    &lt;/res:resourceItem>
    &lt;res:resourceItem id="r2" mimeType="image/jpeg" context="yes">
      &lt;res:source xml:lang="en-us"
          href="resources\en\registryconfig2.resources.jpg" />
      &lt;res:target xml:lang="lb-lu"
          href="resources\lb\registryconfig2.resources.jpg" />
    &lt;/res:resourceItem>
  &lt;/res:resourceData>
  &lt;unit id="1">
    &lt;res:resourceData>
      &lt;res:resourceItemRef ref="r1" />
      &lt;res:resourceItemRef ref="r2" />
    &lt;/res:resourceData>
    &lt;segment id="1" state="translated">
      &lt;source>Remove Registry Config&lt;/source>
      &lt;target>Registrierungskonfiguration entfernen&lt;/target>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>

  </section>


</section>
    
    <section id="size_restriction_module">
    <title>Size and Length Restriction Module</title>

    <section>
        <title>Introduction</title>
        <para>The Size and Length Restriction module provides a mechanism to annotate the XLIFF
            content with information on storage and general size restrictions.</para>
        <para>The restriction framework has support for two distinct types of restrictions; storage
            size restrictions and general size restriction. The reason for this is that it is often
            common to have separate restrictions between storage and display / physical
            representation of data. Since it would be impossible to define all restrictions here a
            concept of restriction profile is introduced. The profiles for storage size and general
            size are independent. The information related to restriction profiles are stored in the
            processing invariant part of the XLIFF file like the <link linkend="file"><code>&lt;xlf:file></code></link>, <link linkend="group"><code>&lt;xlf:group></code></link> and <link linkend="unit"><code>&lt;xlf:unit></code></link> elements and contained within elements
            defined in this module. The information regarding the specific restrictions are stored
            on the processing invariant parts and on the inline elements as attributes or attributes
            referencing data in the elements defined in this module. To avoid issues with
            segmentation no information regarding size restrictions is present on <link linkend="segment"><code>&lt;xlf:segment></code></link>, <link linkend="source"><code>&lt;xlf:source></code></link> and <link linkend="target"><code>&lt;xlf:target></code></link> elements. The module defines a namespace
            for all the elements and attributes it introduces, in the rest of the module
            specification elements and attributes are in this namespace unless stated otherwise. In
            other parts of the XLIFF specification the prefix "slr" is used to refer to this
            module's namespace. For clarity the prefix "xlf" will be used for XLIFF Core elements
            and attributes. Profile names use the same namespace-like naming convention as user
            defined values in the XLIFF Core specification. The names SHOULD be composed of two
            components separated by a colon. &lt;authority>:&lt;name>. The authority "xliff" is
            reserved for profiles defined by the OASIS XLIFF Technical Committee.</para>
    </section>
    <section>
        <title>Module Namespace and Validation Artifacts</title>
        <para>The namespace for the Size and Length restriction module is:
                <code>urn:oasis:names:tc:xliff:sizerestriction:2.0</code></para>
        <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/size_restriction.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/size_restriction.xsd</ulink>.</para>
    </section>

    <section>
        <title>Module Fragment Identification Prefix</title>
        <para>The fragment identification prefix for the Size and Length restriction module is:
                <code>slr</code></para>
    </section>

    <section>
        <title>Module Elements</title>
        <para>The elements defined in the Size and Length restriction module are: <link linkend="slr_profiles"><code>&lt;profiles></code></link>, <link linkend="slr_normalization"><code>&lt;normalization></code></link> and <link linkend="slr_data"><code>&lt;data></code></link>. </para>
        <section>
            
            <title>Tree Structure</title>
            <para>Legend:</para>
            <simplelist type="vert">
                <member>? = zero or one</member>
            </simplelist>
            <programlisting format="linespecific">
<link linkend="slr_profiles"><code>&lt;profiles></code></link>
|
+---<link linkend="slr_normalization"><code>&lt;normalization></code></link> ?
|
+---&lt;other> *


  </programlisting>
        </section>
        <section id="slr_profiles">
    <title>profiles</title>
    <para>This element selects the restriction profiles to use in the document. If no storage or
        general profile is specified the default values (empty) of those elements will disable
        restriction checking in the file.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- Zero or one <link linkend="slr_normalization"><code>&lt;normalization></code></link> element
            followed by</member>
        <member>- elements from other namespaces, OPTIONAL</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="slr_general_profile"><code>generalProfile</code></link>,
                OPTIONAL</member>
        <member>- <link linkend="slr_storage_profile"><code>storageProfile</code></link>,
                OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Any overall configuration or settings related to the selected profile MUST be
                placed in child elements of this element.</para>
        </listitem>
        <listitem>
            <para>Data not related to the configuration of the selected profiles MUST NOT be placed
                in this element.</para>
        </listitem>
    </itemizedlist>

</section>
        <section id="slr_normalization">
  <title>normalization</title>
  <para>This element is used to hold the attributes specifying the normalization form to apply to
    storage and size restrictions defined in the standard profiles.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>This element is always empty.</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="slr_general"><code>general</code></link>, OPTIONAL</member>
    <member>- <link linkend="slr_storage"><code>storage</code></link>, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>If this element is not present no normalization SHOULD be performed for the standard
        profiles.</para>
    </listitem>
    <listitem>
      <para>Other profiles MAY use this element in its specified form but MUST NOT add new
        extensions to it.</para>
    </listitem>
  </itemizedlist>

</section>
        <section id="slr_data">
  <title>data</title>
  <para>This elements act as a container for data needed by the specified profile to check the part
    of the XLIFF document that is a sibling or descendant of a sibling of this element. It is not
    used by the default profiles.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- elements from other namespaces, OPTIONAL</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="slr_profile"><code>profile</code></link>, REQUIRED</member>
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Third party profiles MUST place all data in this element instead of using other
        extension points if the data serves no other purpose in the processing of the
        document.</para>
    </listitem>
    <listitem>
      <para>Data not used by the specified profile MUST NOT be placed in this element.</para>
    </listitem>
  </itemizedlist>

</section>
    </section>
    <section>
        <title>Module Attributes</title>
        <para>The attributes defined in the Size and Length restriction module are: <link linkend="slr_storage_profile"><code>storageProfile</code></link>, <link linkend="slr_general_profile"><code>generalProfile</code></link>, <link linkend="slr_storage"><code>storage</code></link>, <link linkend="slr_general"><code>general</code></link>, <link linkend="slr_profile"><code>profile</code></link>, <link linkend="slr_storage_restriction"><code>storageRestriction</code></link>, <link linkend="slr_size_restriction"><code>sizeRestriction</code></link>, <link linkend="slr_equiv_storage"><code>equivStorage</code></link> , <link linkend="slr_size_info"><code>sizeInfo</code></link> and <link linkend="slr_size_info_ref"><code>sizeInfoRef</code></link>. </para>
        <section id="slr_storage_profile">
  <title>storageProfile</title>

  <para>This attribute specifies, which profile to use while checking storage size restrictions.
    Empty string means that no restrictions are applied.</para>

  <para><emphasis>Value description:</emphasis> Name of restriction profile to use for storage size restrictions.</para>

  <para><emphasis>Default value:</emphasis> empty string</para>

  <para><emphasis>Used in:</emphasis> <link linkend="slr_profiles"><code>&lt;profiles></code></link>.</para>
</section>
        <section id="slr_general_profile">
  <title>generalProfile</title>

  <para>This attribute specifies, which profile to use while checking the general size restrictions.
    Empty string means that no restrictions apply.</para>

  <para><emphasis>Value description:</emphasis> Name of restriction profile to use for general size restrictions.</para>

  <para><emphasis>Default value:</emphasis> empty string</para>

  <para><emphasis>Used in:</emphasis> <link linkend="slr_profiles"><code>&lt;profiles></code></link>.</para>
</section>
        <section id="slr_storage">
  <title>storage</title>

  <para>This attribute specifies the normalization form to apply for storage size restrictions. Only
    the normalization forms C and D as specified by the Unicode Consortium are supported, see <ulink url="http://unicode.org/reports/tr15/">Unicode Standard Annex #15</ulink>.</para>

  <para><emphasis>Value description:</emphasis> Normalization to apply.</para>
  <table>
    <title>Values</title>
    <tgroup cols="2">
      <thead>
        <row>
          <entry>Value</entry>
          <entry>Description</entry>
        </row>
      </thead>
      <tbody>
        <row>
          <entry>none</entry>
          <entry>No additional normalization SHOULD be done, content SHOULD be used as represented
            in the document. It is possible that other Agents have already done some type of
            normalization when modifying content. This means that this setting could give different
            results depending on what Agents are used to perform a specific action on the XLIFF
            document.</entry>
        </row>
        <row>
          <entry>nfc</entry>
          <entry>Normalization Form C MUST be used</entry>
        </row>
        <row>
          <entry>nfd</entry>
          <entry>Normalization Form D MUST be used</entry>
        </row>
      </tbody>
    </tgroup>
  </table>


  <para><emphasis>Default value:</emphasis>
    <code>none</code></para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="slr_normalization"><code>&lt;normalization></code></link>.</para>
</section>
        <section id="slr_general">
  <title>general</title>

  <para>This attribute specifies the normalization to apply for general size restrictions. Only the
    normalization forms C and D as specified by the Unicode Consortium are supported, see <ulink url="http://unicode.org/reports/tr15/">Unicode Standard Annex #15</ulink>.</para>

  <para><emphasis>Value description:</emphasis> Normalization to apply.</para>
  <table>
    <title>Values</title>
    <tgroup cols="2">
      <thead>
        <row>
          <entry>Value</entry>
          <entry>Description</entry>
        </row>
      </thead>
      <tbody>
        <row>
          <entry>none</entry>
          <entry>No additional normalization SHOULD be done, content SHOULD be used as represented
            in the document. It is possible that other Agents have already done some type of
            normalization when modifying content. This means that this setting could give different
            results depending on what Agents are used to perform a specific action on the XLIFF
            document.</entry>
        </row>
        <row>
          <entry>nfc</entry>
          <entry>Normalization Form C MUST be used</entry>
        </row>
        <row>
          <entry>nfd</entry>
          <entry>Normalization Form D MUST be used</entry>
        </row>
      </tbody>
    </tgroup>
  </table>

  <para><emphasis>Default value:</emphasis>
    <code>none</code></para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="slr_normalization"><code>&lt;normalization></code></link>.</para>
</section>
        <section id="slr_profile">
  <title>profile</title>

  <para>This attribute is used on the <code>&lt;data></code> element to indicate what profile the contents of that element apply to.</para>

  <para><emphasis>Value description:</emphasis> Name of a restriction profile</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis> <link linkend="slr_data"><code>&lt;data></code></link>.</para>
</section>
        <section id="slr_storage_restriction">
  <title>storageRestriction</title>

  <para>This attribute specifies the storage restriction to apply to the collection descendants of
    the element it is defined on.</para>

  <para><emphasis>Value description:</emphasis> Interpretation of the value is dependent on selected
      <link linkend="slr_storage_profile"><code>storageProfile</code></link>. It MUST represent the restriction to apply to the
    indicated sub part of the document.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="sc"><code>&lt;sc></code></link>. </para>
</section>
        <section id="slr_size_restriction">
  <title>sizeRestriction</title>

  <para>This attribute specifies the size restriction to apply to the collection descendants of the
    element it is defined on.</para>

  <para><emphasis>Value description:</emphasis> Interpretation of the value is dependent on selected
      <link linkend="slr_general_profile"><code>generalProfile</code></link>. It MUST represent the restriction to apply to the
    indicated sub part of the document.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="pc"><code>&lt;pc></code></link> and <link linkend="sc"><code>&lt;sc></code></link>. </para>
</section>
        <section id="slr_equiv_storage">
  <title>equivStorage</title>

  <para>This attribute provides a means to specify how much storage space an inline element will use
    in the native format. This size contribution is then added to the size contributed by the
    textual parts. This attribute is only allowed on the <link linkend="ec"><code>&lt;ec></code></link> element
    if that element has the <link linkend="isolated"><code>isolated</code></link> attribute set to <code>yes</code>. Otherwise the attribute on
    the paired <link linkend="sc"><code>&lt;sc></code></link> element also cover its partner <link linkend="ec"><code>&lt;ec></code></link>
    element.</para>

  <para><emphasis>Value description:</emphasis> Interpretation of the value is dependent on selected
      <link linkend="slr_storage_profile"><code>storageProfile</code></link>. It MUST represent the equivalent storage size
    represented by the inline element.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="pc"><code>&lt;pc></code></link>,
      <link linkend="sc"><code>&lt;sc></code></link>,
      <link linkend="ec"><code>&lt;ec></code></link>,
      <link linkend="ph"><code>&lt;ph></code></link>
    and </para>
</section>
        <section id="slr_size_info">
  <title>sizeInfo</title>

  <para>This attribute is used to associate profile specific information to inline elements so that
    size information can be decoupled from the native format or represented when the native data is
    not available in the XLIFF document. It can be used on both inline elements and structural
    elements to provide information on things like GUI dialog or control sizes, expected padding or
    margins to consider for size, what font is used for contained text and so on. This attribute is
    only allowed on the <link linkend="ec"><code>&lt;ec></code></link> element if that element has the <link linkend="isolated"><code>isolated</code></link> attribute set
    to <code>yes</code>. Otherwise the attribute on the paired <link linkend="sc"><code>&lt;sc></code></link> element
    also cover its partner <link linkend="ec"><code>&lt;ec></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> Interpretation of the value is dependent on selected
      <link linkend="slr_general_profile"><code>generalProfile</code></link>. It MUST represent information related to how the
    element it is attached to contributes to the size of the text or entity in which it occurs or
    represents.</para>

  <para><emphasis>Default value:</emphasis> undefined</para>


  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, and <link linkend="ph"><code>&lt;ph></code></link>. </para>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>This attribute MUST NOT be specified if and only if <link linkend="slr_size_info_ref"><code>sizeInfoRef</code></link> is used. They MUST NOT be
        specified at the same time.</para>
    </listitem>
  </itemizedlist>
</section>
        <section id="slr_size_info_ref">
  <title>sizeInfoRef</title>

  <para>This attribute is used to point to data that provide the same function as the <link linkend="slr_size_info"><code>sizeInfo</code></link> attribute
    does, but with the data stored outside the inline content of the XLIFF segment. This attribute
    is only allowed on the <link linkend="ec"><code>&lt;ec></code></link> element if that element has the <link linkend="isolated"><code>isolated</code></link>
    attribute set to <code>yes</code>. Otherwise the attribute on the paired <link linkend="sc"><code>&lt;sc></code></link> element
    also cover its partner <link linkend="ec"><code>&lt;ec></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> A reference to data that provide the same
    information that could be otherwise put in a <link linkend="slr_size_info"><code>sizeInfo</code></link> attribute. The reference MUST point to
    an element in a <link linkend="slr_data"><code>&lt;data></code></link> element that is a sibling to the element this attribute is
    attached to or a sibling to one of its ancestors. </para>

  <para><emphasis>Default value:</emphasis> undefined</para>


  <para><emphasis>Used in:</emphasis>
    <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="pc"><code>&lt;pc></code></link>, <link linkend="sc"><code>&lt;sc></code></link>, <link linkend="ec"><code>&lt;ec></code></link>, and <link linkend="ph"><code>&lt;ph></code></link>, </para>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>This attribute MUST NOT be specified if and only if <link linkend="slr_size_info"><code>sizeInfo</code></link> is used. They MUST NOT be
        specified at the same time.</para>
    </listitem>
  </itemizedlist>


</section>
    </section>
    <section>
        <title>Standard profiles</title>
        <section>
            <title>General restriction profile ”xliff:codepoints”</title>
            <para>This profile implements a simple string length restriction based on the number of
                Unicode code points. It is OPTIONAL to specify if normalization is to be applied
                using the <link linkend="slr_normalization"><code>&lt;normalization></code></link> element
                and the <link linkend="slr_general"><code>general</code></link> attribute. This profile
                makes use of the following attributes from this module:</para>
            <section>
                <title>sizeRestriction</title>
                <para>The value of this attribute holds the ”maximum” or ”minimum and maximum” size
                    of the string. Either size MUST be an integer. The maximum size MAY also be ’*’
                    to denote that there is no maximum restriction. If only a maximum is specified
                    it is implied that the minimum is 0 (empty string). The format of the value is
                    the OPTIONAL minimum size and a coma followed by a maximum size
                    (”[minsize,]maxsize”). The default value is ’*’ which evaluates to a string with
                    unbounded size.</para>
            </section>
            <section>
                <title>sizeInfo</title>
                <para>The value of this attribute is an integer representing how many code points
                    the element it is set on is considered to contribute to the total size. If
                    empty, the default for all elements is 0.</para>
            </section>
        </section>
        <section>
            <title>Storage restriction profiles ”xliff:utf8”, ”xliff:utf16” and
                ”xliff:utf32”</title>
            <para>These three profiles define the standard size restriction profiles for the common
                Unicode character encoding schemes. It is OPTIONAL to specify if normalization is to
                be applied using the <link linkend="slr_normalization"><code>&lt;normalization></code></link>element and
                the <link linkend="slr_storage"><code>storage</code></link>. All sizes are represented
                in 8bit bytes. The size of text for these profiles is the size of the text converted
                to the selected encoding without any byte order marks attached. The encodings are
                specified by the Unicode Consortium in <ulink url="http://www.unicode.org/versions/Unicode6.2.0/ch02.pdf">chapter 2.5 of the
                    Unicode Standard</ulink>
                <link linkend="Unicode">[Unicode]</link>.</para>
            <table>
                <title>Profiles</title>
                <tgroup cols="2">
                    <thead>
                        <row>
                            <entry>Name</entry>
                            <entry>Description</entry>
                        </row>
                    </thead>
                    <tbody>
                        <row>
                            <entry>xliff:utf8</entry>
                            <entry>The number of 8bit bytes needed to represent the string encoded
                                as UTF-8 as specified by the Unicode consortium.</entry>
                        </row>
                        <row>
                            <entry>xliff:utf16</entry>
                            <entry>The number of 8bit bytes needed to represent the string encoded
                                as UTF-16 as specified by the Unicode consortium.</entry>
                        </row>
                        <row>
                            <entry>xliff:utf32</entry>
                            <entry>The number of 8bit bytes needed to represent the string encoded
                                as UTF-32 as specified by the Unicode consortium.</entry>
                        </row>
                    </tbody>
                </tgroup>
            </table>
            <para>These profiles make use of the following attributes from this module:</para>
            <section>
                <title>storageRestriction</title>
                <para>The value of this attribute holds the ”maximum” or ”minimum and maximum” size
                    of the string. Either size MUST be an integer. The maximum size MAY also be ’*’
                    to denote that there is no maximum restriction. If only a maximum is specified
                    it is implied that the minimum is 0 (empty string). The format of the value is
                    the OPTIONAL minimum size and a coma followed by a maximum size
                    (”[minsize,]maxsize”). The default value is ’*’ which evaluates to a string with
                    unbounded size.</para>
            </section>
            <section>
                <title>equivStorage</title>
                <para>The value of this attribute is an integer representing how many bytes the
                    element it is set on is considered to contribute to the total size. If empty the
                    default is 0. The <link linkend="cp"><code>&lt;cp></code></link> is always converted to its representation
                    in the profiles encoding and the size of that representation is used as the size
                    contributed by the <link linkend="cp"><code>&lt;cp></code></link>. </para>
            </section>
        </section>
    </section>
    <section>
        <title>Third party profiles</title>
        <para>The general structure of this module together with the extensibility mechanisms
            provided has been designed with the goal to cater for all practically thinkable size
            restriction schemes. For example, to represent two dimensional data, a profile can adopt
            a coordinate style for the values of the general restriction attributes. For instance
                <code>{x,y}</code> to represent width and height, or <code>{{x1,y1},{x2,y2}}</code>
            to represent a bounding box. It is also possible to embed information necessary to drive
            for instance a display simulator and attach that data to text in order to be able to
            perform device specific checking. Providing font information and checking glyph based
            general size are other feasible options.</para>
    </section>
    <section>
        <title>Conformance</title>
        <para>To claim conformance to the XLIFF size and length restriction module an Agent MUST
            meet the following criteria:</para>
        <itemizedlist spacing="compact">
            <listitem>
                <para>MUST be compliant with the schema of the XLIFF Core specification and its
                    extensions provided in this module.</para>
            </listitem>
            <listitem>
                <para>MUST follow all processing requirements set forth in this module specification
                    regarding the general use of elements and attributes.</para>
            </listitem>
            <listitem>
                <para>MUST support all standard profiles with normalization set to
                    <code>none</code>.</para>
            </listitem>
            <listitem>
                <para>SHOULD support all standard profiles with all modes of normalization.</para>
            </listitem>
            <listitem>
                <para>MAY support additional third party profiles for storage or general
                    restrictions.</para>
            </listitem>
            <listitem>
                <para>MUST provide at least one of the following:</para>
                <itemizedlist spacing="compact">
                    <listitem>
                        <para>add size and length restriction information to an XLIFF
                            Document</para>
                    </listitem>
                    <listitem>
                        <para>if it supports the profile(s) specified in the XLIFF Document it MUST
                            provide a way to check if the size and length restrictions in the
                            document are met according to the profile(s) requirements.</para>
                    </listitem>
                </itemizedlist>
            </listitem>
        </itemizedlist>
    </section>
    <section>
        <title>Example</title>
        <para>A short example on how this module can be used is provided here with inline XML
            comments explaining the usage of the module features. <programlisting format="linespecific">
&lt;xliff version="2.2" srcLang="en-us"
    xmlns="urn:oasis:names:tc:xliff:document:2.2"
    xmlns:slr="urn:oasis:names:tc:xliff:sizerestriction:2.0">
  &lt;file id="f1">
    &lt;slr:profiles generalProfile="xliff:codepoints"
        storageProfile="xliff:utf8">
      &lt;!-- Select standard UTF-8 storage encoding and standard codepoint
          size restriction both with NFC normalization-->
      &lt;slr:normalization general="nfc" storage="nfc" />
    &lt;/slr:profiles>
    &lt;!-- The group should not require more than 255 bytes of storage And
        have at most 90 codepoints. Note that the sum of the unit sizes
        are larger than this the total content of the group must still
        be at most 90 codepoints. -->
    &lt;group id="g1" slr:storageRestriction="255" slr:sizeRestriction="90">
      &lt;!-- This unit must not contain more than 60 code points -->
      &lt;unit id="u1" slr:sizeRestriction="60">
        &lt;segment>
          &lt;!-- The spanning &lt;pc> element require 7 bytes of storage in the
              native format. Its content must not have more than 25
              codepoints -->
          &lt;source>This is a small &lt;pc equivStorage="7"
              slr:sizeRestriction="25">size restriction&lt;/pc>
              example. &lt;/source>
        &lt;/segment>
      &lt;/unit>
      &lt;!-- This unit must not have more than 35 codepoints -->
      &lt;unit id="u2" slr:sizeRestriction="35">
        &lt;segment>
          &lt;source>With a group structure.&lt;/source>
        &lt;/segment>
      &lt;/unit>
    &lt;/group>
  &lt;/file>
&lt;/xliff>
 </programlisting>
        </para>
    </section>

</section>
    <section id="validation_module">
  <title>Validation Module</title>
  <section>
    <title>Introduction</title>
    <para>This module defines a specific set of validation rules that can be applied to target text
      both globally and locally. Further constraints can be defined that allow rules to be applied
      to target text based on conditions in the source text or disabled to override a global
      scope.</para>
  </section>
  <section>
    <title>Module Namespace and Validation Artifacts</title>
    <para>The namespace for the Validation module is:
        <code>urn:oasis:names:tc:xliff:validation:2.0</code></para>
    <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/validation.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/validation.xsd</ulink>.</para>
  </section>

  <section>
    <title>Module Fragment Identification Prefix</title>
    <para>The fragment identification prefix for the Validation module is: <code>val</code></para>
  </section>

  <section>
    <title>Module Elements</title>
    <para>The elements defined in the Validation module are: <link linkend="validation"><code>&lt;validation></code></link> and <link linkend="rule"><code>&lt;rule></code></link>.</para>
    <section>
      
      <title>Tree Structure</title>
      <para>Legend:</para>
      <simplelist type="vert">
        <member>+ = one or more</member>
      </simplelist>
      <programlisting format="linespecific">
<link linkend="validation"><code>&lt;validation></code></link>
|
+---<link linkend="rule"><code>&lt;rule></code></link> +


  </programlisting>
    </section>
    <section id="validation">
  <title>validation</title>
  <para>Parent container for a list of rules and constraints to apply to the target text of the
    enclosing element.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- One or more <link linkend="rule"><code>&lt;rule></code></link> elements.</member>
  </simplelist>

  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- attributes from other namespaces, OPTIONAL</member>
  </simplelist>

  <itemizedlist>
    <title>Processing Requirements</title>

    <listitem>
      <para>When the <link linkend="validation"><code>&lt;validation></code></link> element occurs at the <link linkend="file"><code>&lt;file></code></link> level, rules MUST be applied to all <link linkend="target"><code>&lt;target></code></link> elements within the scope of that <link linkend="file"><code>&lt;file></code></link> element, except where overrides are specified at the
          <link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link> level.</para>
    </listitem>

    <listitem>
      <para>When <link linkend="validation"><code>&lt;validation></code></link> occurs at the <link linkend="group"><code>&lt;group></code></link> level, rules MUST be applied to all <link linkend="target"><code>&lt;target></code></link> elements within the scope of that <link linkend="group"><code>&lt;group></code></link>, except where overrides are specified in a nested <link linkend="group"><code>&lt;group></code></link> element, or at the <link linkend="unit"><code>&lt;unit></code></link> level.</para>
    </listitem>

    <listitem>
      <para>When <link linkend="validation"><code>&lt;validation></code></link> occurs at the <link linkend="unit"><code>&lt;unit></code></link> level, rules MUST be applied to all <link linkend="target"><code>&lt;target></code></link> elements within the scope of that <link linkend="unit"><code>&lt;unit></code></link>.</para>
    </listitem>

  </itemizedlist>
</section>
    <section id="rule">
    <title>rule</title>
    <para>A specific rule and constraint to apply to the target text of the enclosing
        element.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>- This element is always empty.</member>
    </simplelist>

    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="val_isPresent"><code>isPresent</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_occurs"><code>occurs</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_isNotPresent"><code>isNotPresent</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_startsWith"><code>startsWith</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_endsWith"><code>endsWith</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_existsInSource"><code>existsInSource</code></link>,
            OPTIONAL</member>
        <member>- <link linkend="val_caseSensitive"><code>caseSensitive</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_normalization"><code>normalization</code></link>, OPTIONAL</member>
        <member>- <link linkend="val_disabled"><code>disabled</code></link>, OPTIONAL</member>
        <member>- attributes from other namespaces, OPTIONAL</member>
    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>Exactly one of the following attributes: <itemizedlist>
                    <listitem>
                        <para><link linkend="val_isPresent"><code>isPresent</code></link></para>
                    </listitem>
                    <listitem>
                        <para><link linkend="val_isNotPresent"><code>isNotPresent</code></link></para>
                    </listitem>
                    <listitem>
                        <para><link linkend="val_startsWith"><code>startsWith</code></link></para>
                    </listitem>
                    <listitem>
                        <para><link linkend="val_endsWith"><code>endsWith</code></link></para>
                    </listitem>
                    <listitem>
                        <para>a custom rule defined by attributes from any namespace</para>
                    </listitem>
                </itemizedlist>is REQUIRED in any one <link linkend="rule"><code>&lt;rule></code></link> element.</para>
        </listitem>
    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>

        <listitem>
            <para>Writers MAY create and add new <link linkend="rule"><code>&lt;rule></code></link> elements, provided that the new rules do not
                contradict rules already present.</para>
        </listitem>
        <listitem>
            <para>Modifiers MUST NOT change attributes defined in this module that are already
                present in any <link linkend="rule"><code>&lt;rule></code></link> element.</para>
        </listitem>
        <listitem>
            <para>Modifiers MUST NOT remove either <link linkend="rule"><code>&lt;rule></code></link> elements or their attributes defined in this
                module.</para>
        </listitem>
    </itemizedlist>
</section>
  </section>

  <section>
    <title>Module Attributes</title>
    <para>The attributes defined in the Validation module are: <link linkend="val_isPresent"><code>isPresent</code></link>, <link linkend="val_occurs"><code>occurs</code></link>, <link linkend="val_isNotPresent"><code>isNotPresent</code></link>, <link linkend="val_startsWith"><code>startsWith</code></link>, <link linkend="val_endsWith"><code>endsWith</code></link>, <link linkend="val_existsInSource"><code>existsInSource</code></link>, <link linkend="val_caseSensitive"><code>caseSensitive</code></link>, <link linkend="val_normalization"><code>normalization</code></link>, and <link linkend="val_disabled"><code>disabled</code></link>. </para>

    <section id="val_isPresent">
  <title>isPresent</title>

  <para>This rule attribute specifies that a string MUST be present in the target text <emphasis>at
      least once</emphasis>.</para>
  <para>For example, the following is valid:</para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isPresent="online" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na loja online.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isPresent="loja" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na online store.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Other rule attributes can be combined with <link linkend="val_isPresent"><code>isPresent</code></link> to produce the following results:</para>
  <simplelist type="vert">
    <member>isPresent=”loja” - loja is found in the target text at least once.</member>
    <member>isPresent=”loja” occurs=”1” - loja is found in the target text exactly once.</member>
    <member>isPresent=”loja” existsInSource=”yes” - loja is found in both source and target text the
      same number of times.</member>
    <member>isPresent=”loja” existsInSource=”yes” occurs=”1” - loja is found in both source and
      target text and occurs in target text exactly once.</member>
  </simplelist>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> none</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

</section>
    <section id="val_occurs">
  <title>occurs</title>

  <para>This rule attribute is used with the <link linkend="val_isPresent"><code>isPresent</code></link> rule attribute to specify the exact
    number of times a string MUST be present in the target text. When this rule attribute is not
    used, then the string MUST be present in the target text <emphasis>at least
    once</emphasis>.</para>

  <para>For example, the following is valid:</para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isPresent="loja" occurs="2" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose a store option in the online store.&lt;/source>
    &lt;target>Escolha uma opção de loja na loja online.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isPresent="loja" occurs="2" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose a store option in the online store.&lt;/source>
    &lt;target>Escolha uma opção de loja na online store.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>

  <para><emphasis>Value description:</emphasis> A number of 1 or greater.</para>
  <para><emphasis>Default value:</emphasis> none</para>
  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

</section>
    <section id="val_isNotPresent">
  <title>isNotPresent</title>

  <para>This rule attribute specifies that a string MUST NOT be present in the target text.</para>
  <para>For example, the following is valid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isNotPresent="store" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na loja online.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule isNotPresent="store" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na online store.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para><emphasis>Value description:</emphasis> Text.</para>
  <para><emphasis>Default value:</emphasis> none</para>
  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

</section>
    <section id="val_startsWith">
  <title>startsWith</title>

  <para>This rule attribute specifies that a string MUST start with a specific value.</para>

  <para>For example, the following is valid:</para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule startsWith="*" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>*Choose an option in the online store.&lt;/source>
    &lt;target>*Escolha uma opção na loja online.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule startsWith="*" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>*Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na loja online.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>
    <emphasis>Value description:</emphasis> Text. </para>

  <para>
    <emphasis>Default value:</emphasis> none </para>

  <para>
    <emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link>
  </para>

</section>
    <section id="val_endsWith">
  <title>endsWith</title>

  <para>This rule attribute specifies that a string MUST end with a specific value.</para>

  <para>For example, the following is valid:</para>

  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule endsWith=":" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store:&lt;/source>
    &lt;target>Escolha uma opção na loja online:&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule endsWith=":" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store:&lt;/source>
    &lt;target>Escolha uma opção na online store.&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para><emphasis>Value description:</emphasis> Text.</para>

  <para><emphasis>Default value:</emphasis> none</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

</section>
    <section id="val_existsInSource">
  <title>existsInSource</title>

  <para>When this rule attribute is used with another rule attribute and is set to <code>yes</code>,
    it specifies that for the rule to succeed, the condition MUST be satisfied in both source and
    target text. This rule attribute is valid only when used with one of the following rule
    attributes: <link linkend="val_isPresent"><code>isPresent</code></link>, <link linkend="val_startsWith"><code>startsWith</code></link>, or <link linkend="val_endsWith"><code>endsWith</code></link>.</para>

  <para>When <link linkend="val_existsInSource"><code>existsInSource</code></link> is set to
      <code>no</code>, it will have no impact on execution of rules, except for overriding rules
    where <link linkend="val_existsInSource"><code>existsInSource</code></link> is set to
      <code>yes</code> on a higher level.</para>
  <para>For example, the following are valid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule endsWith=":" existsInSource="yes" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store:&lt;/source>
    &lt;target>Escolha uma opção na loja online:&lt;/target>
  &lt;/segment>
&lt;/unit>
...
&lt;unit id="2">
  &lt;val:validation>
    &lt;val:rule endsWith=":" existsInSource="no" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na loja online:&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para>Whereas the following is invalid:</para>
  <programlisting format="linespecific">
&lt;unit id="1">
  &lt;val:validation>
    &lt;val:rule endsWith=":" existsInSource="yes" />
  &lt;/val:validation>
  &lt;segment id="1">
    &lt;source>Choose an option in the online store.&lt;/source>
    &lt;target>Escolha uma opção na loja online:&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
  <para><emphasis>Value description:</emphasis>
    <code>yes</code> or <code>no</code></para>
  <para><emphasis>Default value:</emphasis>
    <code>no</code></para>
  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

  <itemizedlist>
    <title>Constraints</title>

    <listitem>
      <para> When <link linkend="val_existsInSource"><code>existsInSource</code></link> is
        specified, exactly one of <itemizedlist>
          <listitem>
            <para><link linkend="val_isPresent"><code>isPresent</code></link></para>
          </listitem>
          <listitem>
            <para><link linkend="val_startsWith"><code>startsWith</code></link></para>
          </listitem>
          <listitem>
            <para><link linkend="val_endsWith"><code>endsWith</code></link></para>
          </listitem>
        </itemizedlist> is REQUIRED in the same <link linkend="rule"><code>&lt;val:rule></code></link> element. </para>
    </listitem>
  </itemizedlist>

</section>

    
    
    <section id="val_caseSensitive">
  <title>caseSensitive</title>

  <para>This rule attribute specifies whether the test defined within that rule is case sensitive or not.</para>

  <para><emphasis>Value description:</emphasis> <code>yes</code> if the test is case sensitive, <code>no</code> if the test is case insensitive.</para>

  <para><emphasis>Default value:</emphasis> <code>yes</code>.</para>

  <para><emphasis>Used in:</emphasis> <link linkend="rule"><code>&lt;rule></code></link></para>


</section>
    <section id="val_normalization">
  <title>normalization</title>

  <para>This rule attribute specifies the normalization type to apply when validating a rule. Only
    the normalization forms C and D as specified in <link linkend="uax15">[UAX #15]</link>.</para>

  <para><emphasis>Value description:</emphasis> The allowed values are listed in the table below
    along with their corresponding types of normalization to be applied.</para>
  <table>
    <title>Values</title>
    <tgroup cols="2">
      <thead>
        <row>
          <entry>Value</entry>
          <entry>Description</entry>
        </row>
      </thead>
      <tbody>
        <row>
          <entry>none</entry>
          <entry>No normalization SHOULD be done.</entry>
        </row>
        <row>
          <entry>nfc</entry>
          <entry>Normalization Form C MUST be used.</entry>
        </row>
        <row>
          <entry>nfd</entry>
          <entry>Normalization Form D MUST be used.</entry>
        </row>
      </tbody>
    </tgroup>
  </table>

  <para><emphasis>Default value:</emphasis>
    <code>nfc</code></para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>


</section>
    <section id="val_disabled">
  <title>disabled</title>

  <para>This rule attribute determines whether a rule MUST or MUST NOT be applied within the scope
    of its enclosing element. For example, a rule defined at the <link linkend="file"><code>&lt;file></code></link>
    level can be disabled at the <link linkend="unit"><code>&lt;unit></code></link> level.</para>
  <para>This attribute is provided to allow for overriding execution of rules set at higher levels,
    see <link linkend="validation"><code>&lt;val:validation></code></link>.</para>

  <para>In the following example, the isNotPresent rule is applied in its entirety to the first
    unit, but not to the second.</para>

  <programlisting format="linespecific">
&lt;file id="f1">
  &lt;val:validation>
    &lt;val:rule isPresent="store" />
  &lt;/val:validation>
  &lt;unit id="1">
    &lt;segment id="1">
      &lt;source>Choose an option in the online store:&lt;/source>
      &lt;target>Escolha uma opção na loja online:&lt;/target>
    &lt;/segment>
  &lt;/unit>
  &lt;unit id="2">
    &lt;val:validation>
      &lt;val:rule isPresent="store" disabled="yes" />
    &lt;/val:validation>
    &lt;segment id="1">
      &lt;source>Choose an option in the application store:&lt;/source>
      &lt;target>Escolha uma opção na application store:&lt;/target>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>

  <para><emphasis>Value description:</emphasis>
    <code>yes</code> or <code>no</code></para>

  <para><emphasis>Default value:</emphasis>
    <code>no</code></para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="rule"><code>&lt;rule></code></link></para>

</section>
  </section>



</section>
    
    <section id="ITS-module">
  <title>ITS Module</title>

  <section>
    <title>Introduction</title>
    <para>This module defines <link linkend="itsmAnnotations">Inline Annotations</link> (normative usage descriptions for attributes on inline
      annotation markers), attributes and elements that are needed to map <link linkend="ITS20">[ITS]</link> data categories using only
      XLIFF-defined elements and attributes. The module also defines an external rules file to be
      used by generic ITS processors working with XLIFF Documents. This module only defines
      attributes and annotations that are not available through XLIFF Core or other Modules. This
      module specification also contains normative provisions for mapping of <link linkend="ITS20">[ITS]</link> data categories and features that
      are available via XLIFF Core and other modules (<link linkend="ITSInCore">ITS data categories available through XLIFF Core and other        Modules</link> and <link linkend="ITSPartialOverlap">ITS data categories that have a partial overlap with XLIFF features</link>) or other
      Modules outside of the ITS Module (<link linkend="ITSPartialOverlap">ITS data categories that have a partial overlap with XLIFF        features</link>). Finally, an overview of data categories is provided where the information
      is or can be fully expressed by extraction behavior and therefore those categories or their
      parts (sub-categories) cannot be represented as metadata within XLIFF documents (<link linkend="ITSnonMetadata">ITS data categories that do not        represent metadata after extraction of content into XLIFF</link>).</para>
    <note>
      <para>This module specification chiefly describes how the <link linkend="ITS20">[ITS]</link> data categories need to be expressed within XLIFF
        documents. Some data categories are typically extracted from native source formats, others
        would be first injected into XLIFF documents by Enriching Agents and might be useful or not
        in the target content after merging back to the native format in the target natural
        language. For all ITS data categories that can be encoded within XLIFF documents, there is
        an important XLIFF specific distinction between structural and inline elements in XLIFF.
        Some categories can only be expressed inline in XLIFF documents. Others can be also
        expressed on structural markup levels; in such a case, inheritance (or not) from the XLIFF
        structural levels is important. Nevertheless, even the inline only ITS data categories can
        be in scope of <link linkend="itsToolsReferencing">ITS Tools Referencing</link> that can be
        set on structural levels and possible inheritance of relevant <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> values needs to be always checked by
        implementers.</para>
    </note>
    <warning id="pseudo-spanWarning">
      <para>There is an important scope difference between attributes from the namespace
          <code>http://www.w3.org/2005/11/its</code> as implemented in XLIFF Documents and as
        defined in the <link linkend="ITS20">[ITS]</link>
        specification itself. This affects all ITS attributes that can be used on inline spans. In
        XLIFF, spans delimited by the well-formed <code><link linkend="mrk">&lt;mrk></link></code> are
        always equivalent and interchangeable with pseudo-spans delimited by <code><link linkend="sm">&lt;sm/></link></code> /
            <code><link linkend="em">&lt;em/></link></code> pairs. In many cases delimiting the needed spans by <code><link linkend="mrk">&lt;mrk></link></code> is
        impossible due to overlap with other well-formed spans, while delimiting of inline spans
        with <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pairs is always possible and often preferable as
        it allows the spans to persist even through a change of segmentation.</para>
      <para>However, <link linkend="ITS20">[ITS]</link> doesn't
        define a pseudo-span mechanism and thus generic ITS Processors cannot parse pseudo-spans.
        ITS processors will generally identify ITS attributes or their mappings from XLIFF specific
        namespaces on the <code><link linkend="sm">&lt;sm/></link></code> markers, but they will consider their scope to be the empty
        marker itself, whereas the true scope of all attributes on such markers within XLIFF
        documents is between the start marker <code>&lt;sm id="1"/></code> and its corresponding end
        marker <code>&lt;em startRef="1"/></code>. </para>
      <para>Implementers who wish to better access <link linkend="ITS20">[ITS]</link> data categories information within XLIFF Documents can
        implement an additional capability in their ITS Processors to detect spans like this one
          <code>&lt;sm id="1"/>span of text&lt;em startRef="1"/></code> without going into any more
        XLIFF specific features and becoming full fledged XLIFF Agents.</para>
    </warning>
  </section>
  <section>
    <title>Module Namespace and Validation Artifacts</title>
    <para>The namespaces for the ITS module are: <code>http://www.w3.org/2005/11/its</code> and
        <code>urn:oasis:names:tc:xliff:itsm:2.1</code>.</para>
    <para>XML Schemas for this module are available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/its.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/its.xsd</ulink> and <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/itsm.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/itsm.xsd</ulink>. </para>
    <note>
      <para>Although setting and usage of prefixes for namespaces in XML is arbitrary, we are using
          <code>its:</code> for the <code>http://www.w3.org/2005/11/its</code> namespace and
          <code>itsm:</code> for the <code>urn:oasis:names:tc:xliff:itsm:2.1</code> namespace
        throughout this specification.</para>
    </note>
  </section>
  <section>
    <title>Module Fragment Identification Prefix</title>
    <para>The fragment identification prefix for the ITS module is: <code>its</code>.</para>
    <note>
      <para>Although this module has to use two different XML namespace prefixes it uses only one
        fragment identification and authority prefix which is <code>its</code>.</para>
    </note>
  </section>
  <section id="ITSM_Conformance">
    <title>Conformance to the ITS Module Specification</title>
    <note>
      <para>Some ITS data categories like <ulink url="https://www.w3.org/TR/its20/#trans-datacat">Translate</ulink> are supported natively by XLIFF. Other data categories are not
        supported by XLIFF because they are focusing on source content and not XLIFF content. The
        below conformance statement is only relevant for data categories for which the usage in
        XLIFF 2.2 is normatively defined in this XLIFF 2.2 <link linkend="ITS-module">ITS
          Module</link>. Like in the <link linkend="ITS20">[ITS]</link> 2.0 specification, there is no interrelation between data
        categories.</para>
    </note>

   
    <itemizedlist>
      <title>Processing Requirements</title>
      <listitem>
        <itemizedlist>
          <listitem>
            <para>In cases where any of the above specified global rules identifies an empty <link linkend="sm"><code>&lt;sm></code></link>
              element, conformant ITS Processors SHOULD be able identify the closing <link linkend="em"><code>&lt;em></code></link>
              marker and process the relevant ITS data category as applied on the span delimited by
              those corresponding empty markers.</para>
          </listitem>
        </itemizedlist>

      </listitem>

      <listitem>
        <para>Conformant Agents MUST be XLIFF Conformant in the sense of XLIFF <link linkend="ApplicationConformance">Application Conformance</link> and also implement at least one <link linkend="ITS20">[ITS]</link> data category defined in the
          section <link linkend="itsm_defined_categories">ITS data categories defined in the ITS
            Module</link> of this <link linkend="ITS-module">ITS Module</link> or provide full
          support for at least one of the <link linkend="ITS20">[ITS]</link> custom annotations (<link linkend="itsmAnnotations">ITS Mapping Annotations</link>) specified in the Section
            <link linkend="ITSPartialOverlap">ITS data            categories that have a partial overlap with XLIFF features</link>.</para>
        <para>In particular:</para>
        <itemizedlist>
          <listitem>
            <para>Conformant Extractors MUST be capable of extracting at least one of the above
              specified ITS data categories from a source format and encode it in a resulting
              conformant XLIFF document with ITS Module based metadata. </para>
          </listitem>
          <listitem>
            <para> Conformant Enrichers MUST be capable of Enriching XLIFF documents with at least
              one of the above specified ITS data categories.</para>
          </listitem>
          <listitem>
            <para>Conformant Modifiers MUST be capable of updating at least one of the above
              specified ITS data categories according to its own Constraints and Processing
              Requirements as specified in the ITS Module.</para>
          </listitem>
          <listitem>
            <para>Conformant Mergers MUST be capable of merging metadata of at least one of the
              above specified ITS data categories back to the respective native format (with full
              knowledge of the Extraction mechanism) in the target natural language.</para>
          </listitem>
        </itemizedlist>

      </listitem>


    </itemizedlist>
  </section>
  <section id="itsToolsReferencing">
    <title>ITS Tools Referencing</title>
    <para>
      <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/2013/REC-its20-20131029/#its-tool-annotation         ">Tools Annotation</ulink> mechanism provides a way to record tools that produced
        <link linkend="ITS20">[ITS]</link> metadata.</para>
    <warning>
      <para>This mechanism is reserved for recording producers of ITS metadata. General provenance
        information can be recorded using the <link linkend="Provenance">Provenance</link> data category mapping defined in this Module.
          <link linkend="Provenance">Provenance</link> metadata.
      </para>
    </warning>
    <note>
      <para>The <link linkend="itsToolsReferencing">ITS Tools Referencing</link> mechanism has to be
        always used with the <link linkend="MT_Confidence">MT          Confidence</link> data category. The <link linkend="Terminology_datacat">Terminology</link> and <link linkend="Text_Analysis">Text Analysis</link> data
        categories have to use <link linkend="itsToolsReferencing">ITS Tools Referencing</link>
        conditionally, i.e. whenever they specify <link linkend="itsm_termConfidence"><code>its:termConfidence</code></link> or <link linkend="itsm_taConfidence"><code>its:taConfidence</code></link> respectively.</para>
      <para>With all other <link linkend="ITS20">[ITS]</link> data
        categories, there is no express need to use the <link linkend="itsToolsReferencing">ITS
          Tools Referencing</link> mechanism. It is nevertheless advised that the relevant ITS
        Tooling metadata is extracted where available and modified when the relevant ITS data
        category information changes during the XLIFF document processing. Finally, all conformant
        Agents and ITS Processors need to be able to compute the <link linkend="itsToolsReferencing">ITS Tools Referencing</link> information in case this has been provided by other
        conformant Agents earlier in the workflow as per the <link linkend="ITS-module">ITS
          Module</link>
        <link linkend="ITSM_Conformance">Conformance</link> section.</para>
    </note>
    <itemizedlist>
      <title>Processing Requirements</title>
      <listitem>
        <para>Writers MUST use the attribute <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> to express the information provided through
          the <link linkend="ITS20">[ITS]</link>
          <ulink url="http://www.w3.org/TR/2013/REC-its20-20131029/#its-tool-annotation">Tools
            Annotation</ulink> mechanism in XLIFF documents.</para>
      </listitem>
    </itemizedlist>
    <section id="toolsAnnotation">
      <title>ITS Tools Annotation</title>
      <para>This is used to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/2013/REC-its20-20131029/#its-tool-annotation           ">Tools Annotation</ulink> mechanism on inline markers.</para>
      <para>Usage:</para>
      <itemizedlist spacing="compact">
        <listitem>
          <para>The <link linkend="id"><code>id</code></link> attribute is REQUIRED.</para>
        </listitem>
        <listitem>
          <para>The <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute is
            REQUIRED.</para>
        </listitem>

        <listitem>
          <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
            <code>its:generic</code>.</para>

        </listitem>


        <listitem>
          <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
        </listitem>
      </itemizedlist>

    </section>
  </section>

  <section id="itsm_defined_categories">
    
    <title>ITS data categories defined in the ITS Module</title>
    <para>The following <link linkend="ITS20">[ITS]</link> data
      categories are fully specified within this module:</para>
    <itemizedlist>

      <listitem>
        <para><link linkend="Allowed_Characters">Allowed            Characters</link></para>
      </listitem>
      <listitem>
        <para><link linkend="Domain">Domain</link></para>
      </listitem>
      <listitem>
        <para><link linkend="Locale_Filter">Locale          Filter</link></para>
      </listitem>

      <listitem>
        <para><link linkend="Localization_Quality_Issue">Localization Quality Issue</link></para>
      </listitem>
      <listitem>
        <para><link linkend="Localization_Quality_Rating">Localization Quality Rating</link></para>
      </listitem>
      <listitem>
        <para><link linkend="Provenance">Provenance</link>,</para>
      </listitem>

      <listitem>
        <para><link linkend="Text_Analysis">Text          Analysis</link></para>
      </listitem>
      
    </itemizedlist>
    
    <section id="Allowed_Characters">
  <title>Allowed Characters</title>

  <para>Used to specify the characters that are permitted in a given piece of content. See <link linkend="ITS20">[ITS]</link>
    <ulink url="https://www.w3.org/TR/its20/#allowedchars">Allowed Characters</ulink> for further
    details.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the <link linkend="allowedCharactersAnnotation">ITS Allowed Characters Annotation</link> to
        express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#allowedchars">Allowed Characters</ulink> data
        category in XLIFF documents.</para>
      <para>For both structural and inline elements, use <code><link linkend="mrk">&lt;mrk></link></code> or an
            <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with the following attribute: <link linkend="itsm_allowedCharacters"><code>its:allowedCharacters</code></link>.</para>
      <para>See the <link linkend="allowedCharactersAnnotation">ITS Allowed Characters
          Annotation</link> for the normative usage description of this attribute and the following
        sections for further details on structural and inline elements.</para>
    </listitem>

  </itemizedlist>


  <section id="Allowed_Characters_Structural">
    <title>Structural Elements</title>
    <para>If a structural element of the original document has a Allowed Characters annotation, it
      is recommended to represent that annotation using a <code>&lt;mrk></code> element that
      encloses the whole content of the <code>&lt;source></code> element. </para>


    <example>
      <title>Extraction of Allowed Characters at structural levels</title>

      <para>Original: </para>

      <programlisting format="linespecific">
...
&lt;p its-allowed-characters="[a-ZA-Z]">Text&lt;/p>
...
</programlisting>

      <para>Extraction:</para>


      <programlisting format="linespecific">
...
&lt;unit id="1">
  &lt;segment>
    &lt;source>&lt;mrk id="m1" type="its:generic"
        its:allowedCharacters="[a-ZA-Z]">Text&lt;/mrk>&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    </example>



  </section>
  <section id="Allowed_Characters_Inline">
    <title>Inline Elements</title>
    <para>Use the ITS attribute on the <code>&lt;mrk></code> element:</para>

    <para>Original:</para>
    <programlisting format="linespecific">
...
&lt;p>user name: &lt;span its-allowed-characters='[a-ZA-Z]'>johnDoe&lt;/span>&lt;/p>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="1">
  &lt;segment>
    &lt;source>user name: &lt;mrk id="m1" type="its:generic"
        its:allowedCharacters="[a-ZA-Z]">johnDoe&lt;/mrk>.&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
  </section>
  <section id="allowedCharactersAnnotation">
    <title>ITS Allowed Characters Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="https://www.w3.org/TR/its20/#allowedchars">Allowed Characters</ulink> data
      category.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="ITS20">[ITS]</link> defined <link linkend="itsm_allowedCharacters"><code>its:allowedCharacters</code></link> attribute
          is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
    </itemizedlist>

  </section>

</section>
    <section id="Domain">
  <title>Domain</title>

  <para>Identifies the topic, theme, or subject of the content in scope. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#domain">Domain</ulink> for details.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the attribute <link linkend="itsm_domains"><code>itsm:domains</code></link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#domain">Domain</ulink> data category in XLIFF
        documents.</para>
    </listitem>

  </itemizedlist>
  <warning>
    <para>Note that the <link linkend="Domain">Domain data category</link> uses the <link linkend="itsm_domains"><code>itsm:domains</code></link> attribute that belongs to the
        <code>urn:oasis:names:tc:xliff:itsm:2.1</code> namespace (prefixed with <code>itsm:</code>)
      and not to the <code>http://www.w3.org/2005/11/its</code> (prefixed with <code>its</code>) as
      most of the other attributes described in this module.</para>
  </warning>


  <section id="Domain_Structural">
    <title>Structural Elements</title>


    <example>
      <title>Extraction of Domain at structural levels</title>

      <para>Original:</para>

      <programlisting format="linespecific">
&lt;!doctype html>
&lt;html lang="en">
  &lt;head>
    &lt;meta charset="utf-8">
    &lt;title>Data Category: Domain&lt;/title>
    &lt;script type="application/its+xml">
      &lt;its:rules xmlns:its="<ulink url="http://www.w3.org/2005/11/its">http://www.w3.org/2005/11/its</ulink>" version="2.0"
          xmlns:h="<ulink url="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</ulink>">
        &lt;its:domainRule selector="//h:*[@class='dom1']"
            domainPointer="./@class" domainMapping="dom1 domain1" />
      &lt;/its:rules>
    &lt;/script>
  &lt;/head>
  &lt;body>
    &lt;p class="dom1">Text in the domain domain1&lt;/p>
  &lt;/body>
&lt;/html>
 </programlisting>


      <para>Extraction:</para>


      <programlisting format="linespecific">
...
&lt;unit id='2' itsm:domains="domain1">
  &lt;segment>
    &lt;source>Text in the domain domain1&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    </example>



  </section>
  <section id="Domain_Inline">
    <title>Inline Elements</title>
    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with the
        <link linkend="itsm_domains"><code>itsm:domains</code></link> attribute set.</para>
    <para>See the <link linkend="domainsAnnotation">ITS Domain Annotation</link> for the normative
      usage description on inline markers.</para>

  </section>

  <section id="domainsAnnotation">
    <title>ITS Domain Annotation</title>
    <para>This is used to express inline the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#domain">Domain</ulink> data category. </para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="itsm_domains"><code>itsm:domains</code></link> attribute is REQUIRED.</para>
      </listitem>

      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>


      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
    </itemizedlist>
    <example>
      <title>Extraction of Domain metadata on inline elements</title>

      <para>Original:</para>
      <programlisting format="linespecific">
&lt;!doctype html>
&lt;html lang="en">
  &lt;head>
    &lt;meta charset="utf-8">
    &lt;title>Data Category: Domain&lt;/title>
    &lt;script type="application/its+xml">
      &lt;its:rules xmlns:its="<ulink url="http://www.w3.org/2005/11/its">http://www.w3.org/2005/11/its</ulink>" version="2.0"
          xmlns:h="<ulink url="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</ulink>">
        &lt;its:domainRule selector="//h:*[@class='dom1']"
            domainPointer="./@class" domainMapping="dom1 domain1" />
      &lt;/its:rules>
    &lt;/script>
  &lt;/head>
  &lt;body>
    &lt;p>Span of text &lt;span class="dom1">in the domain domain1&lt;/span>&lt;/p>
  &lt;/body>
&lt;/html>
 </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
...
&lt;unit id="1">
  &lt;segment>
    &lt;source>Span of text &lt;pc id="1">&lt;mrk id="m1" type="its:generic"
        itsm:domains="domain1" >in the domain domain1&lt;/mrk>&lt;/pc>&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    </example>
  </section>

</section>
    

    <section id="Locale_Filter">
  <title>Locale Filter</title>

  <para>Expresses that a node is only applicable to certain locales. See <link linkend="ITS20">[ITS]</link>
    <ulink url="https://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> for further
    details. </para>
  <para>This section describes how the <ulink url="https://www.w3.org/TR/its20/#LocaleFilter">Locale
      Filter</ulink> information can be represented inline in XLIFF documents if necessary. However,
    it is preferable that this data category is fully consumed by extraction/merge behavior as
    RECOMMENDED in the section on <link linkend="its-locale-filter">ITS data categories that are not explicitly represented</link>
    in XLIFF documents.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the <link linkend="localeFilterAnnotation">ITS Locale Filter Annotation</link> to express the
          <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> data category in
        XLIFF documents that don't have set the target locale.</para>
    </listitem>
    <listitem>
      <para>Writers MUST use the XLIFF Core <link linkend="translateAnnotation">Translate Annotation</link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> data category in
        XLIFF documentswith the target locale set.
        </para>
    </listitem>
    <listitem>
      <para>Modifiers MUST remove the <link linkend="localeFilterAnnotation">ITS Locale Filter Annotation</link> and replace it
        with the XLIFF Core <link linkend="translateAnnotation">Translate Annotation</link> when setting the <link linkend="trgLang"><code>trgLang</code></link>
        or when receiving an XLIFF Documents with <link linkend="trgLang"><code>trgLang</code></link> set.</para>
    </listitem>
  </itemizedlist>
  <para><warning>
      <para>Core only Modifiers might have invalidated the <link linkend="localeFilterAnnotation">ITS Locale Filter Annotation</link> by setting the
          <link linkend="trgLang"><code>trgLang</code></link>. Although, this is addressed by the above PR, <link linkend="ITS20">[ITS]</link>
        <ulink url="https://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> capable
        Modifiers are strongly advised to better set the <link linkend="trgLang"><code>trgLang</code></link>
        as soon as known and perform the above specified annotations' transformation rather than to
        assume that other tools downstream will be capable of interpreting the <link linkend="ITS20">[ITS]</link>
        <ulink url="https://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> metadata when
        setting the target locale.</para>
    </warning>For both structural and inline elements, use <code><link linkend="mrk">&lt;mrk></link></code> or an
        <code><link linkend="sm">&lt;sm/></link></code>
    / <code><link linkend="em">&lt;em/></link></code>
    pair with the following attributes: <link linkend="itsm_localeFilterList"><code>its:localeFilterList</code></link> and <link linkend="itsm_localeFilterType"><code>its:localeFilterType</code></link>.</para>
  <para>See the <link linkend="localeFilterAnnotation">ITS Locale Filter Annotation</link> for the
    normative usage description of those attributes and the following sections for further details
    on structural and inline elements.</para>


  <section id="Locale_Filter_Structural">
    <title>Structural Elements</title>
    <para>When the target locale in XLIFF is undefined, the locale filter data category MAY be
      extracted using the <link linkend="localeFilterAnnotation">ITS Locale Filter
      Annotation</link>.</para>


    <example>
      <title>Extraction of Locale Filter at structural levels</title>

      <para>Original: </para>

      <programlisting format="linespecific">
&lt;p its-locale-filter-list='fr'>Text A&lt;/p>
&lt;p its-locale-filter-list='ja'>Text B&lt;/p>
 </programlisting>

      <para>Extraction:</para>


      <programlisting format="linespecific">
&lt;xliff srcLang="en" version="2.2">
  ...
  &lt;unit id="1">
    &lt;segment>
      &lt;source>&lt;sm id=1 its:localeFilterList="fr"/>Text A&lt;em
          startRef="1"/>&lt;/source>
    &lt;/segment>
  &lt;/unit>
  &lt;unit id="2">
    &lt;segment>
      &lt;source>&lt;sm id="1" its:localeFilterList="ja"/>Text B&lt;em
          startRef="1"/>&lt;/source>
    &lt;/segment>
  &lt;/unit>
  ...
</programlisting>
      <para>When the target locale in XLIFF is defined, use the <link linkend="translate"><code>translate</code></link> attribute. (<code>yes</code> if the target locale applies,
          <code>no</code> if it does not).
        
      </para>
    </example>
    <para>Original:</para>
    <programlisting format="linespecific">
&lt;p its-locale-filter-list='fr'>Text A&lt;/p>
&lt;p its-locale-filter-list='ja'>Text B&lt;/p>
 </programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
&lt;xliff srcLang="en" trgLang="fr" version="2.">
  ...
  &lt;unit id="1" translate="yes">
    &lt;segment>
      &lt;source>Text A&lt;/source>
    &lt;/segment>
  &lt;/unit>
  &lt;unit id='2' translate="no">
    &lt;segment>
      &lt;source>Text B&lt;/source>
    &lt;/segment>
  &lt;/unit>
 </programlisting>



  </section>
  <section id="Locale_Filter_Inline">
    <title>Inline Elements</title>
    <para>When the target locale in XLIFF is undefined, use the <code><link linkend="mrk">&lt;mrk></link></code> or an
          <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with the original ITS attributes.</para>

    <para>Original:</para>
    <programlisting format="linespecific">
&lt;p>Text &lt;span its-locale-filter-list='fr'
    its-locale-filter-type='exclude'>text&lt;/span>&lt;/p>
 </programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
&lt;xliff srcLang="en" version="2.2">
  ...
  &lt;unit id="1">
    &lt;segment>
      &lt;source>Text &lt;pc id="1">&lt;mrk id="m1" type="its:generic"
          its:localeFilterList="fr" its:localeFilterType="exclude">text
          &lt;/mrk>&lt;/pc>&lt;/source>
    &lt;/segment>
  &lt;/unit>
 </programlisting>
    <para>When the target locale in XLIFF is defined, use the <code><link linkend="mrk">&lt;mrk></link></code> or an
          <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with <code>translate="yes"</code> if the
      target locale does apply, or <code>translate="no"</code> if it does not. </para>
    <para>Original:</para>
    <programlisting format="linespecific">
&lt;p>Text &lt;span its-locale-filter-list='fr' its-locale-filter-type='exclude'>
    text&lt;/span>&lt;/p>
 </programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
&lt;xliff srcLang="en" trgLang="fr" version="2.2"...>
  ...
  &lt;unit id="1">
    &lt;segment>
      &lt;source>Text &lt;pc id="1">&lt;mrk id="m1" type="generic" translate="no">
          text&lt;/mrk>&lt;/pc>&lt;/source>
    &lt;/segment>
  &lt;/unit>
 </programlisting>
  </section>
  <section id="localeFilterAnnotation">
    <title>ITS Locale Filter Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> data
      category.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="itsm_localeFilterList"><code>localeFilterList</code></link> attribute is
          REQUIRED and used to map to and from the <link linkend="ITS20">[ITS]</link> defined <code>localeFilterList</code> attribute.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>
        <para>The <link linkend="itsm_localeFilterType"><code>its:localeFilterType</code></link> attribute is
          OPTIONAL and used to map to and from the <link linkend="ITS20">[ITS]</link> defined <code>localeFilterList</code> attribute.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
    </itemizedlist>

  </section>

</section>
    <section id="Localization_Quality_Issue">
  <title>Localization Quality Issue</title>
  
  <para>Expresses information related to localization quality assessment tasks in the form of
    highlighted issues. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#lqissue">Localization Quality Issue</ulink> for more
    details. 
  </para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the <link linkend="lqiAnnotation">ITS          Localization Quality Issue Annotation</link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#lqissue">Localization Quality Issue</ulink> data
        category in XLIFF documents.</para>
    </listitem>

  </itemizedlist>


  <section id="Localization_Quality_Issue_Structural">
    <title>Structural Elements</title>
    <para>Localization Quality Issue is not to be used at structural levels. If a structural element
      of the original document has <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#lqissue">Localization Quality Issue</ulink>
      information associated, it MUST be anyway extracted using the <link linkend="lqiAnnotation">ITS Localization Quality Issue Annotation</link>.
      
    </para>
    <note>
      <para> If human reviewers or other QA agents (Enriching Agents from the XLIFF specification
        point of view), need to insert general comments pertaining to whole structural elements such
        as paragraphs, sections, or files rather than to specific inline portions of source or
        target content, the <link linkend="Localization_Note">Localization Note</link> data category is more
        suitable.</para>
    </note>




  </section>
  <section id="Localization_Quality_Issue_Inline">
    <title>Inline Elements</title>

    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
      the attributes: <link linkend="itsm_locQualityIssueComment"><code>its:locQualityIssueComment</code></link>,
        <link linkend="itsm_locQualityIssueEnabled"><code>its:locQualityIssueEnabled</code></link>,
        <link linkend="itsm_locQualityIssueProfileRef"><code>its:locQualityIssueProfileRef</code></link>, <link linkend="itsm_locQualityIssuesRef"><code>its:locQualityIssuesRef</code></link>, <link linkend="itsm_locQualityIssueSeverity"><code>its:locQualityIssueSeverity</code></link>,
      and <link linkend="itsm_locQualityIssueType"><code>its:locQualityIssueType</code></link>. </para>
    <para>See the <link linkend="lqiAnnotation">ITS Localization Quality Issue Annotation</link> for
      the normative usage description of those attributes. </para>
    <para>Because the same or overlapping spans of source or target text can be associated with more
      than one quality issue, this category provides its own elements that are to be used at the
      unit level as an alternative to the inline only annotations, especially in cases the inline
      only annotations would not be expressive enough to capture the issues to be reported. If more
      than one quality issue applies to the same content the particulars of those issues need to be
      stored in standoff annotations.</para>
    <para> For specifics of the standoff annotation, see the <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> and <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link> elements and the attributes <link linkend="itsm_locQualityIssuesRef"><code>its:locQualityIssuesRef</code></link> and <link linkend="itsm_id"><code>id</code></link>.</para>
  </section>
  <section id="lqiAnnotation">
    <title>ITS Localization Quality Issue Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#lqissue">Localization Quality Issue</ulink> data
      category. </para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>
        <para>Exactly one of the following MUST be set:</para>

        <itemizedlist>
          <listitem>

            <para><link linkend="itsm_locQualityIssuesRef"><code>its:locQualityIssuesRef</code></link>.</para>
          </listitem>

          <listitem>

            <itemizedlist>

              <para>At least one of the following MUST be set:</para>
              <listitem>

                <para><link linkend="itsm_locQualityIssueType"><code>its:locQualityIssueType</code></link>,</para>
              </listitem>
              <listitem>

                <para><link linkend="itsm_locQualityIssueComment"><code>its:locQualityIssueComment</code></link>.</para>
              </listitem>
            </itemizedlist>

          </listitem>


        </itemizedlist>
      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
      <listitem>
        <para>The following attributes MUST NOT be set if and only if <link linkend="itsm_locQualityIssuesRef"><code>its:locQualityIssuesRef</code></link> is
          declared, otherwise all of the following are OPTIONAL:</para>
        <itemizedlist>
          <listitem>
            <para><link linkend="itsm_locQualityIssueSeverity"><code>its:locQualityIssueSeverity</code></link>,</para>
          </listitem>
          <listitem>
            <para><link linkend="itsm_locQualityIssueProfileRef"><code>its:locQualityIssueProfileRef</code></link>, and</para>
          </listitem>
          <listitem>
            <para><link linkend="itsm_locQualityIssueEnabled"><code>its:locQualityIssueEnabled</code></link>.</para>
          </listitem>
        </itemizedlist>
      </listitem>

    </itemizedlist>



    <warning>
      <para>Usage of the <link linkend="itsm_locQualityIssuesRef"><code>its:locQualityIssuesRef</code></link>
        attribute implies usage of Localization Quality Issue standoff elements. See <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link> and <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for related Constraints and Processing
        Requirements.</para>
    </warning>
    <example>
      <title>Enriching XLIFF documents with Localization Quality Issue Annotations</title>
      <para><emphasis role="bold">Simple</emphasis> (i.e. without stand off):</para>
      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>This is the content&lt;/source>
    &lt;target>&lt;mrk id="m1" type="its:generic"
        its:locQualityIssueType="misspelling"
        its:locQualityIssueComment="'c'es' is unknown. Could be 'c'est'"
        its:locQualityIssueSeverity="50">c'es&lt;/mrk> le contenu&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
      <para><emphasis role="bold">Stand off:</emphasis></para>
      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;its:locQualityIssues xml:id="lqi1">
    &lt;its:locQualityIssue locQualityIssueType="misspelling"
        locQualityIssueComment="'c'es' is unknown. Could be 'c'est'"
        locQualityIssueSeverity="50" />
    &lt;its:locQualityIssue locQualityIssueType="grammar"
        locQualityIssueComment="Sentence is not capitalized"
        locQualityIssueSeverity="30" />
  &lt;/its:locQualityIssues>
  &lt;segment>
    &lt;source>This is the content&lt;/source>
    &lt;target>&lt;mrk id="m1" type="its:generic"
        its:locQualityIssuesRef="lqi1">c'es le contenu&lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
      <para>The <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> attribute inherits
        information in the document tree. The attribute <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> does not relate to standoff information. This is
        exemplified below. The <code>&lt;mrk id="m1"></code> element has the
          <code>annotatorsRef</code> information - via <code>tool2</code> - expressed at the <link linkend="target"><code>target</code></link> element. The <code>tool1</code>
        <code>annotatorsRef</code> expressed at the <link linkend="unit"><code>unit</code></link>
        element does not influence that interpretation and the standoff information in <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link>.</para>
      <programlisting format="linespecific">
&lt;unit id="1" its:annotatorsRef="localization-quality-issue|tool1">
  &lt;its:locQualityIssues xml:id="lqi1">
    &lt;its:locQualityIssue locQualityIssueType="misspelling"
        locQualityIssueComment="'c'es' is unknown. Could be 'c'est'"
        locQualityIssueSeverity="50" />
    &lt;its:locQualityIssue locQualityIssueType="grammar"
        locQualityIssueComment="Sentence is not capitalized"
        locQualityIssueSeverity="30" />
  &lt;/its:locQualityIssues>
  &lt;segment >
    &lt;source>This is the content&lt;/source>
    &lt;target its:annotatorsRef="localization-quality-issue|tool2">&lt;mrk id="m1" type="its:generic" its:locQualityIssuesRef="lqi1">c'es le contenu&lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>
  </section>

</section>
    <section id="Localization_Quality_Rating">
  <title>Localization Quality Rating</title>

  <para>Expresses results of localization quality assessment in the form of aggregated ratings,
    either as scores or as voting results. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#lqrating">Localization Quality Rating</ulink> for more
    details.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the <link linkend="lqrAnnotation">ITS          Localization Quality Rating Annotation</link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#lqrating">Localization Quality Rating</ulink> data
        category on inline spans within XLIFF documents.</para>
    </listitem>

  </itemizedlist>


  <section id="Localization_Quality_Rating_Structural">
    <title>Structural Elements</title>
    <para>Localization Quality Rating is usually expressed at structural levels as it normally
      expresses summary rating (scoring or voting) information for larger chunks of text. Rating
      information inherits to lower level elements but can be overridden at lower levels.</para>
    <para>Attributes MAY be set on XLIFF Core structural elements, so that the following advanced
      Constraints are met.</para>
    <itemizedlist>
      <title>Constraints</title>
      <listitem>

        <para>Exactly one of the following MUST be set or inherited:</para>




        <itemizedlist>


          <listitem>
            <para><link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingScore</code></link>:</para>
            <itemizedlist>
              <listitem>
                <para><link linkend="itsm_locQualityRatingScoreThreshold"><code>its:locQualityRatingScoreThreshold</code></link> MAY be set or
                  inherited if and only if <link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingScore</code></link> is set.</para>
              </listitem>
            </itemizedlist>
          </listitem>


          <listitem>
            <para><link linkend="itsm_locQualityRatingVote"><code>its:locQualityRatingVote</code></link>:</para>
            <itemizedlist>
              <listitem>
                <para><link linkend="itsm_locQualityRatingVoteThreshold"><code>its:locQualityRatingVoteThreshold</code></link> MAY be set or
                  inherited if and only if <link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingVote</code></link> is set or inherited.</para>
              </listitem>
            </itemizedlist>
          </listitem>
        </itemizedlist>


      </listitem>

      <listitem>
        <para>The <link linkend="itsm_locQualityRatingProfileRef"><code>its:locQualityRatingProfileRef</code></link> attribute is OPTIONAL.</para>
      </listitem>
    </itemizedlist>




  </section>
  <section id="Localization_Quality_Rating_Inline">
    <title>Inline Elements</title>

    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
      the following attributes: <link linkend="itsm_locQualityRatingProfileRef"><code>its:locQualityRatingProfileRef</code></link>, <link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingScore</code></link>,
        <link linkend="itsm_locQualityRatingScoreThreshold"><code>its:locQualityRatingScoreThreshold</code></link>, <link linkend="itsm_locQualityRatingVote"><code>its:locQualityRatingVote</code></link>, <link linkend="itsm_locQualityRatingVoteThreshold"><code>its:locQualityRatingVoteThreshold</code></link>. </para>
    <para>See the <link linkend="lqrAnnotation">ITS Localization Quality Rating Annotation</link>
      for the normative usage description of those attributes inline.</para>
  </section>

  <section id="lqrAnnotation">
    <title>ITS Localization Quality Rating Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#lqrating">Localization Quality Rating</ulink> data
      category on inline elements.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>

        <para>Exactly one of the following MUST be set:</para>




        <itemizedlist>


          <listitem>
            <para><link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingScore</code></link>:</para>
            <itemizedlist>
              <listitem>
                <para><link linkend="itsm_locQualityRatingScoreThreshold"><code>its:locQualityRatingScoreThreshold</code></link> MAY be set or
                  inherited if and only if <link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingScore</code></link> is set.</para>
              </listitem>
            </itemizedlist>
          </listitem>


          <listitem>
            <para><link linkend="itsm_locQualityRatingVote"><code>its:locQualityRatingVote</code></link>:</para>
            <itemizedlist>
              <listitem>
                <para><link linkend="itsm_locQualityRatingVoteThreshold"><code>its:locQualityRatingVoteThreshold</code></link> MAY be set or
                  inherited if and only if <link linkend="itsm_locQualityRatingScore"><code>its:locQualityRatingVote</code></link> is set or inherited.</para>
              </listitem>
            </itemizedlist>
          </listitem>
        </itemizedlist>


      </listitem>

      <listitem>
        <para>The <link linkend="itsm_locQualityRatingProfileRef"><code>its:locQualityRatingProfileRef</code></link> attribute is OPTIONAL.</para>
      </listitem>

      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>

    </itemizedlist>



    <note>
      <para>This annotation can be in scope of Localization Quality Rating attributes set at
        structural levels. So for instance a portion of target text with only a score set can
        inherit threshold and/or rating profile information set at a group or file level. Also
        summary 0-100 ratings set at higher levels can be for instance overridden with voting set at
        unit or inline elements. Keep in mind that for a specific portion of text only one can exist
        a rating or a vote result and these are to be accompanied with different threshold
        attributes. </para>
    </note>
    <example>
      <title>Enriching XLIFF documents with Localization Quality Rating Annotations</title>

      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Some text and a term&lt;/source>
    &lt;target>Du texte et un &lt;mrk id="m1" type="its:generic"
        its:locQualityRatingVote="37"
        its:locQualityRatingVoteThreshold="15"
        its:locQualityRatingProfileRef="http://example.org/qaModel/v13">
        terme&lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
 </programlisting>

    </example>
  </section>

  <section id="Localization_Quality_Rating_Matches">
    <title>Translation Candidates</title>
    <para>In the <link linkend="candidates">Translation Candidates module</link>, the <link linkend="Localization_Quality_Rating">Localization Quality Rating</link> category attributes MAY be used to express the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#lqrating">Localization Quality Rating</ulink>
      information.</para>

    <itemizedlist>
      <title>Constraints</title>
      <listitem>
        <para>When used on the <link linkend="match"><code>&lt;match></code></link> element, Constraints for <link linkend="Localization_Quality_Rating_Structural">Structural Elements</link> apply,
        </para>
      </listitem>
      <listitem>
        <para>When used on eligible descendants of a <link linkend="match"><code>&lt;match></code></link> element, Constraints for <link linkend="Localization_Quality_Rating_Inline">Inline Elements</link> apply.</para>
      </listitem>
    </itemizedlist>









  </section>

</section>
    <section id="Provenance">
  <title>Provenance</title>
  <para>Communicate the identity of agents that have been involved in the translation of the content
    or the revision of the translated content. This allows translation and translation revision
    consumers, such as post-editors, translation quality reviewers, or localization workflow
    managers, to assess how the performance of these agents may impact the quality of the
    translation. Translation and translation revision agents can be identified as a person, a piece
    of software or an organization that has been involved in providing a translation or revision
    that resulted in the selected content. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#provenance">Provenance</ulink> for more details. </para>
  <warning>
    <para>Provenance data category is used to record human, tools or organizational producers of
      translations or revisions, in other words it records producers of the payload. To record
        <link linkend="ITS20">[ITS]</link> metadata producers, the
        <link linkend="itsToolsReferencing">ITS Tools        Referencing</link> mechanism needs to be used.</para>
  </warning>
  <itemizedlist id="Provenance_Attributes">
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the attributes <link linkend="itsm_org"><code>its:org</code></link>, <link linkend="itsm_orgRef"><code>its:orgRef</code></link>, <link linkend="itsm_person"><code>its:person</code></link>, <link linkend="itsm_personRef"><code>its:personRef</code></link>, <link linkend="itsm_provenanceRecordsRef"><code>its:provenanceRecordsRef</code></link>,
          <link linkend="itsm_revOrg"><code>its:revOrg</code></link>, <link linkend="itsm_revOrgRef"><code>its:revOrgRef</code></link>, <link linkend="itsm_revPerson"><code>its:revPerson</code></link>, <link linkend="itsm_revPersonRef"><code>its:revPersonRef</code></link>, <link linkend="itsm_revTool"><code>its:revTool</code></link>, <link linkend="itsm_revToolRef"><code>its:revToolRef</code></link>, <link linkend="itsm_tool"><code>its:tool</code></link>, and <link linkend="itsm_toolRef"><code>its:toolRef</code></link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#provenance">Provenance</ulink> data category in
        XLIFF documents.</para>
      <itemizedlist>
        <listitem>
          <para>Within the <link linkend="candidates">Translation Candidates Module</link>, Enrichers MUST map the <link linkend="itsm_tool"><code>its:tool</code></link> attribute onto the <link linkend="candidates_origin"><code>mtc:origin</code></link> attribute.</para>
        </listitem>
        <listitem>
          <para>Modifiers populating XLIFF Core <link linkend="target"><code>&lt;target></code></link> elements with unmodified content from <link linkend="target"><code>&lt;target></code></link> children of <link linkend="match"><code>&lt;mtc:match></code></link> elements MAY map the <link linkend="candidates_origin"><code>mtc:origin</code></link> onto the <link linkend="itsm_tool"><code>its:tool</code></link> attribute. </para>
          <itemizedlist>
            <listitem>
              <para>The <link linkend="itsm_tool"><code>its:tool</code></link> attribute value MUST be the same as the
                originating <link linkend="match"><code>&lt;mtc:match></code></link>
                <link linkend="candidates_origin"><code>mtc:origin</code></link> value if this is the
                case. </para>
            </listitem>
          </itemizedlist>
        </listitem>
        <listitem>
          <para>Modifiers MAY store previous versions of subunit content and attributes and notes
            content and attributes in the <remark>Change Tracking Module</remark> elements according to
            the data model, Constraints, Processing Requirements, and usage descriptions of that
            module.</para>
          <para>If this was the case the <remark><code>&lt;revision></code></remark> element MUST be extended by the Provenance
            attributes defined in the ITS Module as needed and the <remark><code>ctr:author</code></remark> SHOULD reuse information from the corresponding
              <link linkend="ITS20">[ITS]</link>
            <ulink url="http://www.w3.org/TR/its20/#provenance">Provenance</ulink> attributes as
            follows:</para>
          <itemizedlist>
            <listitem>
              <para>space separated list of values</para>
            </listitem>
            <listitem>
              <para>spaces " " and hyphens "-" in values are escaped using slashes "/"</para>
            </listitem>
            <listitem>
              <para>each value consists of the attribute name followed by a hyphen, followed by the
                ITS attribute value</para>
            </listitem>
            <listitem>
              <para>following attribute names to be used in that order if available:</para>
              <para><simplelist type="vert">
                  <member> person</member>
                  <member> tool</member>
                  <member> revPerson</member>
                  <member> revTool</member>
                </simplelist>
              </para>
            </listitem>
            <listitem>
              <para>other attributes are ignored.</para>
            </listitem>
          </itemizedlist>

        </listitem>
      </itemizedlist>

    </listitem>


  </itemizedlist>


  <section id="Provenance_Structural">
    <title>Structural Elements</title>
    <para>Provenance metadata are more likely to appear on structural elements than on inline
      elements in source and target documents, therefore Provenance attributes listed in <link linkend="Provenance_Attributes">the above Processing Requirement</link> are allowed on all
      structural levels.</para>
    <para>It is possible that Provenance metadata will be extracted from source content but more
      likely Provenance metadata will be first introduced into the translated content during the
      XLIFF based roundtrip.</para>

    <example>
      <title>Provenance metadata added by Modifiers or Enrichers on structural levels</title>
      <para>In this example a person of the name <code>Honza Novák</code> has been the translator of
        the whole unit content and <code>Franta Kocourek</code> the reviser of the whole
        translation.</para>
      <programlisting format="linespecific">
...
&lt;unit id="1" its:person="Honza Novák" its:revPerson="Franta Kocourek">
  &lt;segment>
    &lt;source>Economy has been growing in 2016.&lt;/source>
    &lt;target>Hospodářství v průběhu roku 2016 rostlo.&lt;/mrk>&lt;/target>
  &lt;/segment>
  &lt;segment>
    &lt;source>Prognosis for 2017 is unclear.&lt;/source>
    &lt;target>Předpověď očekávaného růstu pro rok 2017 je nejasná.&lt;/target>
    &lt;/unit>
    ...
</programlisting>


    </example>

    <para>Preserving the Provenance metadata in the target content after merging the translations
      back to the original format can be useful, the metadata could be for instance used in a check
      in and publishing process within a content management system.</para>

    <example>
      <title>Provenance metadata preserved by Mergers in the native format.</title>
      <para>In this example the translator and reviser Provenance metadata introduced during the
        XLIFF roundtrip has been preserved after merging the translations back to HTML.</para>
      <programlisting format="linespecific">
...
&lt;p its-person="Honza Novák" its-rev-person="Franta Kocourek"> Hospodářství
    v průběhu roku 2016 rostlo. Předpověď očekávaného růstu pro rok 2017
    je nejasná. &lt;/p>
...
</programlisting>


    </example>
    <para>If standoff Provenance elements are used at structural levels, these need to occur on the
      same or an ancestor element of the element where the standoff reference is used. See the
        <link linkend="itsm_provenanceRecordsRef"><code>its:provenanceRecordsRef</code></link>
    </para>


  </section>
  <section id="Provencance_Inline">
    <title>Inline Elements</title>

    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
      the Provenance data category attributes listed in <link linkend="Provenance_Attributes">the
        above Processing Requirement</link>.</para>
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the
      normative usage description of those attributes inline. </para>
    <para>Because the same or overlapping spans of source or target text can be associated with more
      than one Provenance record, for instance over time, this category provides its own elements
      that are to be used at the unit level as a more expressive alternative to the inline only
      annotations.</para>
    <para> For specifics of the standoff annotation, see the <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> and <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> elements and
      the attributes <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> and <link linkend="itsm_id"><code>id</code></link>.</para>
  </section>
  <section id="provenanceAnnotation">
    <title>ITS Provenance Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#provenance">Provenance</ulink> data category when used
      inline.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="itsm_provenanceRecordsRef"><code>its:provenanceRecordsRef</code></link>
          attribute is OPTIONAL.</para>
      </listitem>
      <listitem>
        <para>The following attributes MUST NOT be set if and only if <link linkend="itsm_provenanceRecordsRef"><code>its:provenanceRecordsRef</code></link> is
          declared, otherwise at least one the following MUST be set:</para>
        <itemizedlist>
          <listitem>
            <para>
              <link linkend="itsm_org"><code>its:org</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_orgRef"><code>its:orgRef</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_person"><code>its:person</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_personRef"><code>its:personRef</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revOrg"><code>its:revOrg</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revOrgRef"><code>its:revOrgRef</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revPerson"><code>its:revPerson</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revPersonRef"><code>its:revPersonRef</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revTool"><code>its:revTool</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_revToolRef"><code>its:revToolRef</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_tool"><code>its:tool</code></link>, </para>
          </listitem>
          <listitem>
            <para>
              <link linkend="itsm_toolRef"><code>its:toolRef</code></link>, </para>
          </listitem>

        </itemizedlist>
      </listitem>

    </itemizedlist>



    <warning>
      <para>Usage of the <link linkend="itsm_provenanceRecordsRef"><code>its:provenanceRecordsRef</code></link>
        attribute implies usage of Provenance standoff elements. See <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> and <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> for related
        Constraints and Processing Requirements.</para>
    </warning>
    <example>
      <title>Enriching XLIFF documents with Provenance Annotations</title>
      <para><emphasis role="bold">Inline only</emphasis> (i.e. without stand off):</para>
      <programlisting format="linespecific">
...
&lt;unit id='1'>
  &lt;segment>
    &lt;source>Economy has been growing in 2016.&lt;/source>
    &lt;target>&lt;mrk id="m1" type="its:generic" its:tool="Microsoft Hub"
        its:person="Honza Novák" its:revPerson="Franta Kocourek">
        Hospodářství v průběhu roku 2016 rostlo. &lt;/mrk>&lt;/target>
  &lt;/segment>
  &lt;segment>
    &lt;source>Prognosis for 2017 is unclear.&lt;/source>
    &lt;target>&lt;mrk id="m2" type="its:generic" its:tool="Microsoft Hub"
        its:person="Honza Novák"> Předpověď očekávaného růstu pro rok
        2017 je nejasná. &lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
      <para>In this example, both segments were translated by <code>Microsoft Hub</code> and by
          <code>Honza Novák</code> from <code>Překlady Novák, sro</code>. The first segment was also
        revised by <code>Franta Kocourek</code> from <code>Kocourkov s.r.o.</code>, while the second
        segment hasn't been revised. Because order of attributes cannot have semantics in XML, we
        can only speculate about the order in which the people and tools had contributed to the
        workflow and also each of the attributes can have only one value applied for the given
        span.</para>
      <para><emphasis role="bold">Stand off:</emphasis></para>

      <programlisting format="linespecific">
...
&lt;unit id='1'>
  &lt;its:provenanceRecords xml:id="prov1">
    &lt;provenanceRecord revPerson="Franta Kocourek"
        revOrg="Kocourkov s.r.o."/>
    &lt;provenanceRecord person="Honza Novák" org="Překlady Novák, sro"
        tool="GreatCATTool"/>
    &lt;provenanceRecord tool="Microsoft Hub"/>
  &lt;/its:provenanceRecords>
  &lt;its:provenanceRecords xml:id="prov2">
    &lt;provenanceRecord revPerson="Květoň Zřídkaveselý" revOrg="CoolCopy"/>
    &lt;provenanceRecord revTool="ACME QA Checker" revOrg="CoolCopy"/>
    &lt;provenanceRecord revPerson="Franta Kocourek"
        revOrg="Kocourkov s.r.o."/>
    &lt;provenanceRecord person="Honza Novák" org="Překlady Novák, sro"
        tool="GreatCATTool"/>
    &lt;provenanceRecord tool="Microsoft Hub"/>
  &lt;/its:provenanceRecords>
  &lt;segment>
    &lt;source>Economy has been growing in 2016.&lt;/source>
    &lt;target>&lt;mrk id="m1" type="its:generic"
        its:provenanceRecordsRef="#its=prov1"> Hospodářství v průběhu
        roku 2016 rostlo. &lt;/mrk>&lt;/target>
  &lt;/segment>
  &lt;segment>
    &lt;source>Prognosis for 2017 is unclear.&lt;/source>
    &lt;target>&lt;mrk id="m2" type="its:generic"
        its:provenanceRecordsRef="#its=prov2"> Hospodářství v průběhu
        roku 2016 rostlo. &lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
...
</programlisting>

      <para>In this example, multiple records with the same attribute for the same span are
        possible, and if most recent records are stacked on top, it can also help indicate the
        sequence of agents. So both segments were most probably first translated by <code>Microsoft
          Hub</code>, then by <code>Honza Novák</code> from <code>Překlady Novák, sro</code> using
          <code>GreatCATTool</code>. Both segments were subsequently revised by <code>Franta
          Kocourek</code> from <code>Kocourkov s.r.o.</code> (using an unknown revision tool), and
        the second segment has been also revised at <code>CoolCopy</code> by a tool <code>ACME QA
          Checker</code> and once more by a human <code>Květoň Zřídkaveselý</code> from
          <code>CoolCopy</code>. Indicating both the first and second revisers, as well as hinting
        on the sequence of different translation tools would have been impossible if the annotation
        was inline only.</para>
    </example>
  </section>

</section>
    <section id="Text_Analysis">
  <title>Text Analysis</title>

  <para>Annotates content with lexical or conceptual information for the purpose of contextual
    disambiguation of words and multiword phrases meanings. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#textanalysis">Text Analysis</ulink> for details.</para>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Writers MUST use the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> to express the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#textanalysis">Text Analysis</ulink> data category in
        XLIFF documents.</para>
    </listitem>

  </itemizedlist>


  <section id="Text_Analysis_Structural">
    <title>Structural Elements</title>
    <para>Text Analysis is not to be used at structural levels. If a structural element of the
      original document has <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#textanalysis">Text Analysis</ulink> information
      associated, it MAY be extracted using the <link linkend="taAnnotation">ITS Text Analysis
        Annotation</link>.</para>


    <example>
      <title>Extraction of Text Analysis at structural levels</title>

      <para>Original:</para>

      <programlisting format="linespecific">
&lt;p its-ta-class-ref="<ulink url="http://nerd.eurecom.fr/ontology#Place">http://nerd.eurecom.fr/ontology#Place</ulink>"
    its-ta-ident-ref="<ulink url="http://dbpedia.org/resource/Arizona">http://dbpedia.org/resource/Arizona</ulink>">Arizona&lt;/p>
 </programlisting>


      <para>Extraction:</para>


      <programlisting format="linespecific">
...
&lt;unit id="1">
  &lt;segment>
    &lt;source>&lt;mrk id="m1" type="its:generic"
        its:taClassRef="<ulink url="http://nerd.eurecom.fr/ontology#Place">http://nerd.eurecom.fr/ontology#Place</ulink>"
        its:taIdentRef="<ulink url="http://dbpedia.org/resource/Arizona">http://dbpedia.org/resource/Arizona</ulink>">Arizona&lt;/mrk>
    &lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    </example>



  </section>
  <section id="Text_Analysis_Inline">
    <title>Inline Elements</title>
    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
      the following attributes: <link linkend="itsm_taClassRef"><code>its:taClassRef</code></link>, <link linkend="itsm_taConfidence"><code>its:taConfidence</code></link>, <link linkend="itsm_taSource"><code>its:taSource</code></link>, <link linkend="itsm_taIdent"><code>its:taIdent</code></link>, and <link linkend="itsm_taIdentRef"><code>its:taIdentRef</code></link>.</para>
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the normative
      usage description of those attributes.</para>

  </section>
  <section id="taAnnotation">
    <title>ITS Text Analysis Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#textanalysis">Text Analysis</ulink> data
      category.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>
      <listitem>
        <para>At least one of the following MUST be set:</para>

        <itemizedlist>
          <listitem>

            <para><link linkend="itsm_taClassRef"><code>its:taClassRef</code></link>,</para>
          </listitem>
          <listitem>
            <para>Exactly one of the following:</para>
            <itemizedlist>
              <listitem>
                <para>A pair of a <link linkend="itsm_taSource"><code>its:taSource</code></link> and <link linkend="itsm_taIdent"><code>its:taIdent</code></link> both set,</para>
              </listitem>
              <listitem>
                <para><link linkend="itsm_taIdentRef"><code>its:taIdentRef</code></link>.</para>
              </listitem>
            </itemizedlist>
          </listitem>
        </itemizedlist>
      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="itsm_taConfidence"><code>its:taConfidence</code></link> attribute is
          OPTIONAL and used to map to and from the <link linkend="ITS20">[ITS]</link> defined <code>taConfidence</code> attribute.</para>
      </listitem>
      <listitem>
        <para> The <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute is
          REQUIRED if and only if the <link linkend="itsm_taConfidence"><code>its:taConfidence</code></link> attribute is present
          and not in scope of another relevant <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute, in all other cases it is OPTIONAL.
        </para>
      </listitem>
    </itemizedlist>
    <example>
      <title>Extraction of ITS Text Analytics metadata in scope of the <link linkend="toolsAnnotation">ITS tools        annotation</link></title>
      <para>Original:</para>
      <programlisting format="linespecific">
&lt;div its-annotators-ref="text-analysis|<ulink url="http://enrycher.ijs.si/">http://enrycher.ijs.si</ulink>">
    ...
    &lt;p>&lt;span its-ta-class-ref="<ulink url="http://nerd.eurecom.fr/ontology#Place">http://nerd.eurecom.fr/ontology#Place</ulink>"
        its-ta-confidence="0.99"
        its-ta-ident-ref="<ulink url="http://dbpedia.org/resource/Arizona">http://dbpedia.org/resource/Arizona</ulink>">Arizona
        &lt;/span>&lt;/p> ... &lt;/div>
 </programlisting>
      <para>Extracted:</para>
      <programlisting format="linespecific">
&lt;unit id="1" its:annotatorsRef="text-analysis|<ulink url="http://enrycher.ijs.si/">http://enrycher.ijs.si</ulink>">
    &lt;segment>
      &lt;source>&lt;mrk id="m1" type="its:generic"
          its:taClassRef="<ulink url="http://nerd.eurecom.fr/ontology#Place">http://nerd.eurecom.fr/ontology#Place</ulink>"
          its:taIdentRef="<ulink url="http://dbpedia.org/resource/Arizona">http://dbpedia.org/resource/Arizona</ulink>"
          its:taConfidence="0.99" > Arizona&lt;/mrk>&lt;/source>
    &lt;/segment>&lt;/unit>
 </programlisting>
    </example>
  </section>

</section>
    


  </section>
  <section id="ITSPartialOverlap">
  <title>ITS data categories that have a partial overlap with XLIFF features</title>

  <para>The following <link linkend="ITS20">[ITS]</link> data
    categories are partially covered with XLIFF Core or Modules other than the <link linkend="ITS-module">ITS Module</link>:</para>

  <orderedlist continuation="restarts" inheritnum="ignore">
    
    <listitem>
      <para><link linkend="Localization_Note">Localization          Note</link>,</para>
    </listitem>

    <listitem>
      <para><link linkend="Terminology_datacat">Terminology</link>,</para>
    </listitem>

    <listitem>
      <para><link linkend="Language_Information">Language          Information</link>,</para>
    </listitem>



    <listitem>
      <para><link linkend="MT_Confidence">MT Confidence</link>,
        and</para>
    </listitem>


    <listitem>
      <para><link linkend="Storage_Size">Storage Size</link>.</para>
    </listitem>



  </orderedlist>


  
  <section id="Localization_Note">
  <title>Localization Note</title>

  <para>Provides a way to communicate notes to localizers about a particular item of content. See
      <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#locNote-datacat">Localization Note</ulink> for
    details.</para>
  <warning>
    <para> There is a one-to-one mapping for all parts of the <ulink url="http://www.w3.org/TR/its20/#locNote-datacat">Localization Note</ulink> information to
      and from the XLIFF Core <code><link linkend="note">&lt;note></link></code> and the <link linkend="commentAnnotation">Comment Annotation</link> mechanism. This means that the
      whole data category can be losslessly extracted from the native format, merged back to the
      native format or even round-tripped. However, generic ITS Processors won't be able to fully
      access the <ulink url="http://www.w3.org/TR/its20/#locNote-datacat">Localization Note</ulink>
      information encoded in XLIFF documents.</para>
  </warning>


  <section id="Localization_Note_Structural">
    <title>Structural Elements</title>
    <para> Localization Notes present in source content at structural levels are extracted using the
      XLIFF Core <code><link linkend="note">&lt;note></link></code> and the <code><link linkend="note">&lt;note></link></code> element. ITS attribute <code>locNoteType</code>
      is mapped onto the XLIFF Core attribute <link linkend="priority"><code>priority</code></link>. The value <code>alert</code> is mapped
      onto priority <code>1</code>. The value <code>description</code> is mapped onto any of the
      integers <code>2-10</code>.</para>

    <example>
      <title>Extraction of a Localization note at a structural level</title>
      <para>Original:</para>
      <programlisting format="linespecific">
&lt;msgList xmlns:its= "http://www.w3.org/2005/11/its" xml:space= "preserve"
    its:version= "2.0">
  &lt;data name= "LISTFILTERS_VARIANT" its:locNote= "Keep the leading space!"
      its:locNoteType= "alert">
    &lt;value> Variant {0} = {1} ({2}) &lt;/value>
  &lt;/data>
  &lt;data its:locNote= "%1\$s is the original text's date in the format
      YYYY-MM-DD HH:MM always in GMT">
    &lt;value>Translated from English content dated
        &lt;span id= "version-info">%1\$s&lt;/span> GMT.&lt;/value>
  &lt;/data>
&lt;/msgList>
 </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
&lt;file id="1" xml:space="preserve">
  &lt;unit id="1" name="LISTFILTERS_VARIANT">
    &lt;notes>
      &lt;note priority="1">Keep the leading space! &lt;/note>
    &lt;/notes>
    &lt;segment>
      &lt;source> Variant {0} = {1} ({2}) &lt;/source>
    &lt;/segment>
  &lt;/unit>
  &lt;unit id="2" name="LISTFILTERS_VARIANT">
    &lt;notes>
      &lt;note priority="2">%1\$s is the original text's date in the format
          YYYY-MM-DD HH:MM always in GMT &lt;/note>
    &lt;/notes>
    &lt;segment>
      &lt;source>Translated from English content dated
          &lt;pc id="1">%1\$s&lt;/pc> GMT.&lt;/source>
    &lt;/segment>
  &lt;/unit>
&lt;/file>
 </programlisting>
    </example>
    <para><warning>
        <para>The values of the ITS attribute <code>locNoteRef</code> are to be dereferenced during
          extraction, so that the Localization Note text can be included verbatim in the XLIFF
              <code><link linkend="note">&lt;note></link></code> element. A corresponding attribute is NOT provided through
          the <link linkend="ITS-module">ITS            Module</link> to discourage external references from XLIFF Notes. The
            <code>locNoteRef</code> attribute and its value still can be preserved on extraction via
          extensibility, however this information will not have a guaranteed roundtrip protection
          and the XLIFF Note itself still better include the dereferenced Localization Note
          text.</para>
      </warning></para>
  </section>
  <section id="Localization_Note_Inline">
    <title>Inline Elements</title>
    <para> Localization Notes present on inline spans of source content are extracted using the
      XLIFF Core <link linkend="annotations">Annotations</link>
      mechanism. Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
        <code>type="comment"</code>. See <link linkend="commentAnnotation">Comment Annotation</link>. </para>
    <para>Comment Annotations can either contain the Localization Note text as the value of the
      attribute <link linkend="value"><code>value</code></link> or otherwise have to reference a <link linkend="note"><code>&lt;note></code></link>
      element within the same enclosing <link linkend="unit"><code>&lt;unit></code></link>. In case no <link linkend="note"><code>&lt;note></code></link>
      element is referenced, it is assumed that the ITS <code>locNoteType</code> is
        <code>description</code>. In case the referenced <link linkend="note"><code>&lt;note></code></link>
      element has <link linkend="priority"><code>priority</code></link>
      <code>1</code> or does not have the <link linkend="priority"><code>priority</code></link> attribute set explicitly, the ITS
        <code>locNoteType</code> is <code>alert</code>. Explicitly set values <code>2-10</code> map
      onto the ITS <code>locNoteType</code> value <code>description</code>.</para>



    <example>
      <title>Extraction of an inline Localization Note </title>

      <para>Original:</para>
      <programlisting format="linespecific">
<emphasis role="bold">&lt;!DOCTYPE html></emphasis>
<emphasis role="bold">&lt;html</emphasis> lang=en<emphasis role="bold">></emphasis>
  <emphasis role="bold">&lt;head></emphasis>
    <emphasis role="bold">&lt;meta</emphasis> charset=utf-8<emphasis role="bold">></emphasis>
    <emphasis role="bold">&lt;title></emphasis>LocNote test: Default<emphasis role="bold">&lt;/title></emphasis>
  <emphasis role="bold">&lt;/head></emphasis>
  <emphasis role="bold">&lt;body></emphasis>
    <emphasis role="bold">&lt;p></emphasis>This is a
      <emphasis role="bold">&lt;span</emphasis> its-loc-note="Check with terminology engineer"
          its-loc-note-type="alert"<emphasis role="bold">></emphasis> motherboard<emphasis role="bold">&lt;/span></emphasis>.
    <emphasis role="bold">&lt;/p></emphasis>
  <emphasis role="bold">&lt;/body></emphasis>
<emphasis role="bold">&lt;/html></emphasis>     </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
&lt;xliff version="2.2" srcLang="EN">
  &lt;file id=1>
    &lt;unit id='1'>
      &lt;notes>
        &lt;note id="1" priority="1">Check with terminology engineer&lt;/note>
      &lt;/notes>
      &lt;segment>
        &lt;source>This is a &lt;mrk id="1" type="comment" ref="#n=1">
            motherboard&lt;/mrk>.&lt;/source>
      &lt;/segment>
    &lt;/unit>
  &lt;/file>
&lt;/xliff>
        </programlisting>



    </example>
  </section>

</section>
  <section id="Terminology_datacat">
  <title>Terminology</title>
  <para>Marks terms and optionally associates them with information, such as definitions. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#terminology">Terminology</ulink> for details.</para>
  <para>ITS Terminology information is useful during translation and related localization processes.
    Thus it is beneficial when Extractors preserve the ITS Terminology information in XLIFF
    documents.</para>
  <para>Target language terminology data and metadata introduced during the translation can be
    merged back into the target language content in the original format.</para>
  <para> </para>
  <warning>
    <para>The XLIFF Core <link linkend="termAnnotation">Term        Annotation</link> does not support all aspects of the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#terminology">Terminology</ulink> data category. For
      instance, the XLIFF Core Term Annotation cannot be used to mark a span as not a term, which is
      needed to map ITS <code>term="no"</code>. In case lossless roundtrip of this category needs to
      be achieved, the Core Annotation needs to be extended as defined by the <link linkend="nonTermAnnotation">ITS Terminology Annotation</link>.</para>
  </warning>
  <section id="Terminology_Structural">
    <title>Structural Elements</title>
    <para>Even if ITS Terminology metadata appears on structural elements in the source format, this
      information needs to be extracted using the XLIFF Core <link linkend="annotations">Annotations</link> mechanism. Use <code><link linkend="mrk">&lt;mrk></link></code> or an
          <code><link linkend="sm">&lt;sm/></link></code>
      / <code><link linkend="em">&lt;em/></link></code>
      pair with <code>type="term"</code>. See <link linkend="termAnnotation">Term Annotation</link>.</para>
    <example>
      <title>Extraction of Terminology from structural elements</title>
      <para>Original:</para>
      <programlisting format="linespecific">
&lt;p its-term='yes'>Term&lt;/p>
 </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
&lt;unit id='1'>
  &lt;segment>
    &lt;source>&lt;mrk id="m1" type="term">Term&lt;/mrk>&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>
  </section>
  <section id="Terminology_Inline">
    <title>Inline Elements</title>
    <para> Inline Terminology information MAY be extracted using the XLIFF Core <link linkend="annotations">Annotations</link> mechanism. Use
          <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
        <code>type="term"</code>. See <link linkend="termAnnotation">Term Annotation</link>.</para>
    <example>
      <title>Extraction of inline Terminology using Annotation markers</title>
      <para>Original:</para>

      <programlisting format="linespecific">
&lt;p>Text with a &lt;span its-term='yes'>term&lt;/span>.&lt;/p>
 </programlisting>

      <para>Extraction:</para>
      <programlisting format="linespecific">
&lt;unit id='1'>
  &lt;segment>
    &lt;source>Text with a &lt;pc id='1'>&lt;mrk id="m1" type="term">term&lt;/mrk>
        &lt;/pc>.&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>
  </section>
  <section id="nonTermAnnotation">
    <title>ITS Terminology Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#terminology">Terminology</ulink> data category,
      including the aspects that are not supported via the XLIFF Core <link linkend="termAnnotation">Term Annotation</link>.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is REQUIRED and set:</para>
        <itemizedlist spacing="compact">
          <listitem>
            <para>either to <code>its:term-no</code>, which maps to and from the <link linkend="ITS20">[ITS]</link> defined <code>term</code>
              attribute set to <code>no</code>,</para>
          </listitem>
          <listitem>
            <para>or to <code>term</code>, which maps to and from the <link linkend="ITS20">[ITS]</link> defined <code>term</code>
              attribute set to <code>yes</code>.</para>
          </listitem>
        </itemizedlist>
      </listitem>
      <listitem>
        <para>Not more than one of the following two attributes MAY be set:</para>

        <itemizedlist>
          <listitem>

            <para>The <link linkend="value"><code>value</code></link> attribute is OPTIONAL and contains a short definition
              of the term that an Extractor obtained by dereferencing the <link linkend="ITS20">[ITS]</link> defined
                <code>termInfoPointer</code> or added by an Enricher.</para>
          </listitem>
          <listitem>
            <para>The <link linkend="ref"><code>ref</code></link> attribute is OPTIONAL and used to map to and from the
                <link linkend="ITS20">[ITS]</link> defined
                <code>termInfoRef</code> attribute.</para>
          </listitem>
        </itemizedlist>
      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="itsm_termConfidence"><code>its:termConfidence</code></link> attribute is
          OPTIONAL and used to map to and from the <link linkend="ITS20">[ITS]</link> defined <code>termConfidence</code> attribute.</para>
      </listitem>
      <listitem>
        <para> The <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute is
          REQUIRED if and only if the <link linkend="itsm_termConfidence"><code>its:termConfidence</code></link> attribute is
          present and NOT in scope of another relevant <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute, in all other cases it is OPTIONAL.
        </para>
      </listitem>
    </itemizedlist>
    <example>
      <title>Extraction of ITS Terminology with termConfidence </title>
      <programlisting format="linespecific">
&lt;div its-annotators-ref="terminology|<ulink url="http://example.org/TermService">http://example.org/TermService</ulink>">
  ...
  &lt;p>Text with a &lt;span its-term='yes'
      its-term-info-ref='http://en.wikipedia.org/wiki/Terminology'
      its-term-confidence='0.9'>term&lt;/span>.&lt;/p>
  ...
&lt;/div>
 </programlisting>
      <para>Extracted:</para>
      <programlisting format="linespecific">
&lt;unit id='1'
    its:annotatorsRef='terminology|http://example.com/termchecker'>
  &lt;segment>
    &lt;source>Text with a &lt;pc id="1">&lt;mrk id="m1" type="term"
        ref="http://en.wikipedia.org/wiki/Terminology"
        its:termConfidence="0.9">term&lt;/mrk>&lt;/pc>.&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>
  </section>
</section>
  <section id="Language_Information">
  <title>Language Information</title>

  <para>Indicates the natural language in which content is expressed. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#language-information">Language Information</ulink> for
    details.</para>


  <section id="Language_Information_Structural">
    <title>Structural Elements</title>
    <para>XLIFF documents are normally bilingual, hence the source and target language are indicated
      at the top level using the <link linkend="srcLang"><code>srcLang</code></link> and <link linkend="trgLang"><code>trgLang</code></link> attributes set on the <link linkend="xliff"><code>xliff</code></link>
      element. The Language Information values set on the top level, strictly constrain the values
      of <link linkend="xml_space"><code>xml:lang</code></link> set or inherited on the <link linkend="source"><code>&lt;source></code></link> element for source content and on the <link linkend="target"><code>&lt;target></code></link> element for target content.</para>
    <note>
      <para>Because XLIFF documents are normally source-monolingual, whole paragraphs in the source
        document that are not in the main source language are generally not to be extracted. If
        there is a need to extract such content into a single XLIFF Documents, the XLIFF output has
        to use the inline <link linkend="annotations">Annotations</link> mechanism together with the <link linkend="langAnnotation"> ITS
          Language Information Annotation</link>, because the structurally set or inherited source
        language is constrained by the XLIFF Core <link linkend="srcLang"><code>srcLang</code></link> attribute value. Analogically, the
        structurally set target language is constrained by the <link linkend="trgLang"><code>trgLang</code></link>
        attribute value. Thus also paragraphs other than in the main target language have to be
        annotated inline using the same mechanism.</para>
    </note>
  </section>
  <section id="Language_Information_Inline">
    <title>Inline Elements</title>
    <para> It is not possible to use <link linkend="xml_namespace">[XML namespace]</link> on XLIFF inline elements. It is advised that content in different
      languages is NOT used inline in source formats. Still there are use cases for mixed language
      use inline, like referencing non-localized UI or hardware elements, discussing foreign
      vocabulary or analyzing poetry in the original language using short inline examples. These
      scenarios cannot be fully supported with XLIFF Core only.</para>
    <para>In case the inline elements in other than the main language are not supposed to be
      translated (e.g. referenced non localized UI or hardware elements), they can be marked as not
      translatable using the XLIFF Core <link linkend="translateAnnotation">Translate annotation</link>. However, the specific Language
      Information would not be readily accessible during the roundtrip if not combined with the
      Language Information Annotation defined here in the ITS Module.</para>
    <note>
      <para>If there is a need to make the different language information available throughout the
        roundtrip, the XLIFF output has to use the inline <link linkend="annotations">Annotations</link> mechanism together with the <link linkend="langAnnotation"> ITS Language Information Annotation</link>, because the
        structurally set and thus inherited inline source language is constrained by the XLIFF Core
          <link linkend="srcLang"><code>srcLang</code></link> attribute value. Analogically, the structurally set (and
        inline inherited) target language is constrained by the <link linkend="trgLang"><code>trgLang</code></link>
        attribute value. Thus also inline portions in other than the main target language have to be
        inline annotated using the same mechanism.</para>
    </note>

    <warning>
      <para>Preserving source elements content that is in other than the main source language as
        original data stored outside of the translatable content at the unit level and referenced
        from placeholder codes is NOT advised, as important context would be very likely hidden from
        translators, human or machine.</para>
    </warning>




    <example>
      <title>Core only extraction and roundtrip of a non localized hardware reference in other than
        the main source language</title>

      <para>Original:</para>
      <programlisting format="linespecific">
&lt;p> Use the &lt;span class="HWbutton" xml:lang="DE-DE">Aus&lt;/span> button to
    completely switch off the machine. &lt;/p>
 </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
&lt;unit id='1'>
  &lt;originalData>
    &lt;data id="d1">&amp;lt;span class="HWbutton" xml:lang="DE-DE">&lt;/data>
    &lt;data id="d2">&amp;lt;/span>&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source> Use the &lt;pc id="1" dataRefStart="d1" dataRefEnd="d2">
        &lt;mrk id=2 translate="no">Aus&lt;/mrk>&lt;/pc> button to completely
        switch off the machine. &lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>

      <para>Note that the Language Information has been preserved for merging back in the referenced
        original data. However, it is not available in an interoperable way during the
        roundtrip.</para>

    </example>
  </section>
  <section id="langAnnotation">
    <title>ITS Language Information Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#language-information">Language Information</ulink>
      data category, including full inline support that cannot be provided via the XLIFF Core due to
      normative Constraints. </para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="itsm_lang"><code>itsm:lang</code></link> attribute is REQUIRED.</para>
      </listitem>

      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>

      </listitem>


      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>
    </itemizedlist>
    <example>
      <title>Extraction of Language Information</title>

      <para>Original:</para>
      <programlisting format="linespecific">
&lt;!doctype html>
&lt;html lang="en">
  &lt;head>
    &lt;meta charset="utf-8">
    &lt;title>My Document&lt;/title>
  &lt;/head>
  &lt;body>
    &lt;p>Span of text &lt;span lang="fr">en français&lt;/span>.&lt;/p>
  &lt;/body>
&lt;/html>
 </programlisting>
      <para>Extraction:</para>
      <programlisting format="linespecific">
...
&lt;unit id='2'>
  &lt;segment>
    &lt;source>Span of text &lt;pc id='1'>&lt;mrk id="m1" itsm:lang="fr"
        type="its:generic" >en français&lt;/mrk>&lt;/pc>.&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    </example>
    <warning>
      <para>Note that the <link linkend="langAnnotation">Language Information Annotation</link> uses
        the <link linkend="itsm_lang"><code>itsm:lang</code></link> attribute that belongs to the
          <code>urn:oasis:names:tc:xliff:itsm:2.1</code> namespace (prefixed with
        <code>itsm:</code>) and not to the <code>http://www.w3.org/2005/11/its</code> (prefixed with
          <code>its</code>) as most of the other attributes described in this module. </para>
    </warning>
  </section>


</section>

  <section id="MT_Confidence">
  <title>MT Confidence</title>

  <para>Communicates the confidence score from a Machine Translation engine for the accuracy of a
    translation it has provided <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> for details.</para>
  <warning>
    <para>MT Confidence is not intended to provide a score that is comparable among or between
      Machine Translation engines and platforms. This data category does NOT aim to establish any
      sort of correlation between the confidence score and either human evaluation of MT usefulness,
      or post-editing cognitive effort. </para>
  </warning>

  <section id="MT_Confidence_mtc">
    <title>Within the Translation Candidates module</title>
    <para>The most natural step to introduce the MT Confidence metadata into the multilingual
      content life cycle is during the XLIFF roundtrip, when the XLIFF Document is being enriched
      with Translation Candidates from a specific MT Service or via an MT Services broker. The MT
      Confidence metadata included with the MT provided matches MAY be used by human or machine
      Modifiers who populate the XLIFF Core <link linkend="target"><code>&lt;target></code></link> elements with matches.</para>
    <para>In the <link linkend="candidates">Translation Candidates Module</link>, there is a partial overlap
      between the <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> and XLIFF-defined
      features. See the <link linkend="itsm_mtConfidence"><code>mtConfidence</code></link> attribute for the mapping
      details, Advanced Constraints and Processing Requirements.</para>
    <example>
      <title>MT Confidence as Translation Candidates metadata</title>
      <programlisting format="linespecific">
&lt;xliff version="2.2" xmlns="urn:oasis:names:tc:xliff:document:2.2"
    xmlns:mtc="urn:oasis:names:tc:xliff:matches:2.0"
    xmlns:its="http://www.w3.org/2005/11/its" its:version="2.2"
    srcLang="en" trgLang="fr">
  &lt;file id="f1" its:annotatorsRef="mt-confidence|MTServices-XYZ">
    &lt;unit id="1">
      &lt;mtc:matches>
        &lt;!-- Score provided by MTServices-XYZ -->
        &lt;mtc:match ref="#m1" matchQuality="89.82">
          &lt;source>Text&lt;/source>
          &lt;target >Texte&lt;/target>
        &lt;/mtc:match>
        &lt;!-- Score provided by MTProvider-ABC -->
        &lt;mtc:match ref="#m1" matchQuality="67.8"
            its:annotatorsRef="mt-confidence|MTProvider-ABC">
          &lt;source>Text&lt;/source>
          &lt;target >Texte&lt;/target>
        &lt;/mtc:match>
        &lt;!-- Score provided by MTProvider-JKL -->
        &lt;mtc:match ref="#m1" matchQuality="65"
            its:annotatorsRef="mt-confidence|MTProvider-JKL">
          &lt;source>Text&lt;/source>
          &lt;target >texte&lt;/target>
        &lt;/mtc:match>
        &lt;!-- Score provided by MTServices-XYZ -->
        &lt;mtc:match ref="#m1" matchQuality="89.82">
          &lt;source>Some text&lt;/source>
          &lt;target>Du texte&lt;/target>
        &lt;/mtc:match>
      &lt;/mtc:matches>
      &lt;segment>
        &lt;source>&lt;mrk id='m1' type='mtc:match'>Text&lt;/mrk>&lt;/source>
      &lt;/segment>
    &lt;/unit>
  &lt;/file>
&lt;/xliff>
 </programlisting>
    </example>
    <warning>
      <para>Generic ITS Processors cannot directly read MT Confidence data from the XLIFF
        Translation Candidates Module because ITS 2.0 does not define a global pointer for this data
        category.</para>
    </warning>
  </section>



  <section id="MT_Confidence_Structural">
    <title>Structural Elements</title>
    <para>It is NOT advised that <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> be used at a
      structural level because meaningful MT Confidence scores will vary from segment to segment. If
      a structural element of an original document has an <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> annotation, it MAY
      be represented upon extraction using the <link linkend="MTConfidenceAnnotation">MT Confidence
        Inline Annotation</link>. The whole unit source content MUST be enclosed within the
      annotation in such a case, possibly spanning multiple segments.</para>
  </section>

  <section id="MT_Confidence_Inline">
    <title>Inline Elements</title>
    <para> </para>



    <example>
      <title>Extraction of ITS MT Confidence Metadata from a Raw MTed source document</title>

      <para>Original:</para>
      <programlisting format="linespecific">
&lt;p>&lt;span its:mtConfidence="0.8982"
    its:annotatorsRef="mt-confidence|MTServices-XYZ">Some Machine
        Translated text. &lt;/span>&lt;/p>
 </programlisting>
      <para>Extraction from a raw MT original:</para>
      <programlisting format="linespecific">
&lt;unit id="u1">
  &lt;segment>
    &lt;source>&lt;mrk id="m1" type="its:generic" its:mtConfidence="0.8982"
        its:annotatorsRef="mt-confidence|MTServices-XYZ" >Some Machine
        Translated text.&lt;/mrk>&lt;/source>
  &lt;/segment>
&lt;/unit>
       </programlisting>



    </example>
  </section>
  <section id="MTConfidenceAnnotation">
    <title>MT Confidence Annotation</title>
    <para>This is used to fully map to and from the <link linkend="ITS20">[ITS]</link>
      <ulink url="https://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> data category in
      XLIFF Core.</para>
    <para>Usage:</para>
    <itemizedlist spacing="compact">
      <listitem>
        <para>The <link linkend="id"><code>id</code></link>
          attribute is REQUIRED.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="type"><code>type</code></link> attribute is OPTIONAL and set to
          <code>its:generic</code>.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="ITS20">[ITS]</link> defined
          attribute <link linkend="itsm_mtConfidence"><code>its:mtConfidence</code></link> MUST be set.</para>
      </listitem>
      <listitem>
        <para>The <link linkend="translate"><code>translate</code></link> attribute is OPTIONAL.</para>
      </listitem>

      <listitem>
        <para> The <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute is
          REQUIRED if and only if the <link linkend="itsm_mtConfidence"><code>its:mtConfidence</code></link> attribute is not in
          scope of another relevant <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute.</para>
      </listitem>
    </itemizedlist>
    <example>
      <title>Populating XLIFF Core targets with raw MT along with ITS MT Confidence metadata</title>

      <para>Original:</para>
      <programlisting format="linespecific">
&lt;p> Some human authored text for translation. &lt;/p>
 </programlisting>
      <para>Extracted text enriched with a Machine Translated candidate and the same candidate
        inserted into the core target:</para>
      <programlisting format="linespecific">
&lt;unit id="u1">
  &lt;mtc:matches>
    &lt;mtc:match ref="#t=m1" matchQuality="67.8"
        its:annotatorsRef="mt-confidence|GoogleTranslate">
      &lt;source xml:lang="EN">Some human authored text for translation.
          &lt;/source>
      &lt;target xml:lang="CS">Některé lidské napsaný text určený k překladu .
          &lt;/target>
    &lt;/mtc:match>
  &lt;/mtc:matches>
  &lt;segment>
    &lt;source xml:lang="EN">Some human authored text for translation. 
        &lt;/source>
    &lt;target xml:lang="CS">&lt;mrk id="m1" type="its:generic"
        its:mtConfidence="0.678"
        its:annotatorsRef="mt-confidence|GoogleTranslate">Některé lidské
        napsaný text určený k překladu .&lt;/mrk>&lt;/target>
  &lt;/segment>
&lt;/unit>
       </programlisting>

      <para>Raw MT merged back into the original format with MT Confidence metadata:</para>
      <programlisting format="linespecific">
&lt;p>&lt;span its:mtConfidence="0.678"
    its:annotatorsRef="mt-confidence|GoogleTranslate"> Některé lidské
    napsaný text určený k překladu . &lt;/span>&lt;/p>
 </programlisting>

    </example>
    <itemizedlist>
      <title>Processing Requirements</title>
      <listitem>
        <para>Modifiers populating XLIFF Core <link linkend="target"><code>&lt;target></code></link> elements with unmodified MT suggestions MAY annotate
          the exact unmodified target spans with <link linkend="MTConfidenceAnnotation">MT
            Confidence Annotations</link>.</para>


      </listitem>

    </itemizedlist>
    <warning>
      <para>The MT Confidence Annotations need to be removed whenever the original MT is modified,
        no matter if by human post-editors or some automated post-editing methods. This is however
        not enforceable since the subsequent Modifiers might not be aware of the ITS Module data.
        Thus it is not advised to transfer the MT Confidence data onto XLIFF Core targets if any
        sort of post editing is foreseen or possible in the subsequent steps of the XLIFF
        Round-trip, unless the post-editors were instructed and equipped to remove the MT Confidence
        Annotations as soon as they touch the MT suggestions. Preserving the MT Confidence data in
        XLIFF Core <link linkend="target"><code>&lt;target></code></link> elements only makes sense if the data needs to be
        preserved throughout merging back to the original format, for instance for data analytic
        purposes or to color code the raw MTed target text for the end user based on the MT
        Confidence scores.</para>
    </warning>
  </section>




</section>


  <section id="Storage_Size">
    <title>Storage Size</title>
    <para>Mapping for this metadata category has not been specified in XLIFF Version 2.2</para>
    <itemizedlist>
      <title>Processing Requirements</title>
      <listitem>
        <para>The <link linkend="ITS20">[ITS]</link>
          <ulink url="https://www.w3.org/TR/its20/#storagesize">Storage Size data category</ulink>
          MAY be expressed as an Extended profile within the <link linkend="size_restriction_module">Size and Length Restriction Module</link>. No other parts of XLIFF MUST be extended to
          support this data category.</para>
      </listitem>
    </itemizedlist>
    <note>
      <para>An XLIFF-defined common profile could be made part of this module in a future version of
        XLIFF.</para>
    </note>
  </section>





</section>
  <section id="ITSInCore">
  <title>ITS data categories available through XLIFF Core and other Modules</title>

  <para>The following <link linkend="ITS20">[ITS]</link> data
    categories are fully available via XLIFF Core and other XLIFF modules:</para>

  <orderedlist continuation="restarts" inheritnum="ignore">
   
    <listitem>
      <para><link linkend="Translate">Translate</link> and</para>
    </listitem>

    <listitem>
      <para><link linkend="External_Resource">External          Resource</link>.</para>
    </listitem>

    <listitem>
      <para><link linkend="Preserve_Space">Preserve        Space</link></para>
    </listitem>



  </orderedlist>

  <section id="Translate">
  <title>Translate</title>

  <para>Indicates whether content is translatable or not. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#trans-datacat">Translate</ulink> for details.</para>
  <para>ITS data category Translate in source content influences how Extractors prepare source
    content for translation via XLIFF Documents.</para>

  <section id="Translate_Structural">
    <title>Structural Elements</title>
    <para> Use the <code><link linkend="translate">translate</link></code> attribute:</para>

    <example>
      <title>Extraction of Translate at structural levels</title>

      <para>Original:</para>

      <programlisting format="linespecific">
&lt;p translate='yes'>Translatable text&lt;/p>
&lt;p translate='no'>Non-translatable text&lt;/p>
 </programlisting>


      <para>Extraction:</para>


      <programlisting format="linespecific">
&lt;unit id='1' translate="yes">
  &lt;segment>
    &lt;source>Translatable text&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id='2' translate="no">
  &lt;segment>
    &lt;source>Non-translatable text&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>


    <para> If an element is not translatable you can also simply not extract it. </para>
  </section>
  <section id="Translate_Inline">
    <title>Inline Elements</title>
    <para> Use <code><link linkend="mrk">&lt;mrk></link></code> or an <code><link linkend="sm">&lt;sm/></link></code> / <code><link linkend="em">&lt;em/></link></code> pair with
        <code>translate='yes|no'</code>. Another option is to extract the non-translatable content
      as an inline code. However, it is worth noting that extracting non-translatable text as inline
      code data can hide important context information from translators, human or machine. The
      extraction as code data is preferable if the non-translatable text has purely programmatic
      purpose and bears no linguistic relationship to the surrounding translatable text.</para>
    <example>
      <title>Extraction of non-translatable inline text using Annotation markers</title>

      <para>Original:</para>

      <programlisting format="linespecific">
&lt;p>The  &lt;span translate="no">World Wide Web Consortium&lt;/span> makes the
    World Wide Web world wide.&lt;/p>
 </programlisting>
      <para>Extraction:</para>
      <para>In this case the non-translatable span is a critical part of the content (a brand name)
        and hiding it within a code could potentially cause lot of damage, albeit
        non-translatable.</para>
      <programlisting format="linespecific">
&lt;unit id='1'>
  &lt;segment>
    &lt;source>The &lt;pc id='1'/>&lt;mrk id='m1' translate='no'>World Wide Web
        Consortium&lt;/mrk>&lt;/pc> makes the World Wide Web world wide.
        &lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
    </example>
    <para/>
    <example>
      <title>Protection of non-translatable inline text using an inline code</title>
      <para>
        <programlisting format="linespecific">
&lt;p>You have &lt;code translate='no'>%1&lt;/span> messages.&lt;/p>
 </programlisting>
      </para>
      <programlisting format="linespecific">
&lt;unit id='1'>
  &lt;originalData>
    &lt;data id="1">%1&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>You have &lt;ph id='1' dataRef="1" type="ui" subtype="xlf:var"
        disp="[a variable number]" equiv="%1"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
      <para>Protection of non-translatable code as a code is more fool proof. On the other hand, it
        can hide the nature of the placeholder and its linguistic relationship to the rest of the
        content from the translators. Therefore, it's advised to use maximum redundancy on the
          <code>&lt;ph></code> to make sure that CAT tools can pickup up something useful to display
        in their editing GUI to the Translator. It's completely another challenge to make an MT
        engine understand that the placeholder has a significant linguistic relationship to the rest
        of the sentence.</para>



    </example>
  </section>

</section>
  <section id="External_Resource">
  <title>External Resource</title>

  <para>Indicates that a node represents or references potentially translatable data in a resource
    outside the document. Examples of such resources are external images and audio or video files.
    See <link linkend="ITS20">[ITS]</link>
    <ulink url="https://www.w3.org/TR/its20/#externalresource">External Resource</ulink> for
    details.</para>

  <section id="External_Resource_Structural">
    <title>Structural Elements</title>
    <para>External Resource is not to be used at structural levels. If a structural element of the
      original document has <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#externalresource">External Resource</ulink>
      information associated, it MAY be extracted using the XLIFF Resource Data Module. The
      Extractor needs to determine the media type of the external resource, since this is not
      available via <link linkend="ITS20">[ITS]</link>
      <ulink url="http://www.w3.org/TR/its20/#externalresource">External Resource</ulink>
      information.</para>


    <example>
      <title>Extraction of External Resource at structural levels</title>

      <para>Original:</para>

      <programlisting format="linespecific">
&lt;its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"
    xmlns:html="http://www.w3.org/1999/xhtml">
  &lt;its:externalResourceRefRule selector="//html:video/@src"
      externalResourceRefPointer="."/>
  &lt;its:externalResourceRefRule selector="//html:video/@poster"
      externalResourceRefPointer="."/>
&lt;/its:rules>
...
&lt;video height=360 poster=video-image.png
    src=http://www.example.com/video/v2.mp width=640>
 </programlisting>


      <para>Extraction:</para>


      <programlisting format="linespecific">
...
&lt;res:resourceData>
  &lt;res:resourceItem id="r1" mimeType="image/png" context="no">
    &lt;res:source href="video-image.png" />
  &lt;/res:resourceItem>
&lt;/res:resourceData>
...
</programlisting>
    </example>



  </section>
  <section id="External_resource__Inline">
    <title>Inline Elements</title>
    <para> External resources are extracted using the XLIFF Resource Data module. Use a <code><link linkend="res_source">&lt;res:source></link></code> element as a child of a <code><link linkend="res_resourceItem">&lt;res:resourceItem></link></code>element.</para>
    <example>
      <title>Extraction of External Resource at inline levels</title>
      <para>Original:</para>

      <programlisting format="linespecific">
&lt;!doctype html>
&lt;html lang="en">
  &lt;head>
    &lt;meta charset="utf-8">
    &lt;title>Data Category: External Resource&lt;/title>
    &lt;script type="application/its+xml">
      &lt;its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"
          xmlns:h="http://www.w3.org/1999/xhtml">
        &lt;its:externalResourceRefRule selector="//h:img"
            externalResourceRefPointer="@src"/>
        &lt;its:translateRule selector="//h:*/@alt" translate="yes"/>
      &lt;/its:rules>
    &lt;/script>
  &lt;/head>
  &lt;body>
    &lt;p>Image: &lt;img src="example.png" alt="Text for the image">&lt;/p>
  &lt;/body>
&lt;/html>
 </programlisting>


      <para>Extraction:</para>


      <programlisting format="linespecific">
&lt;unit id="1">
  &lt;segment>
    &lt;source>Text for the image&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="2">
  &lt;res:resourceData>
    &lt;res:resourceItem id="r1" mimeType="image/png" context="no">
      &lt;res:source href="example.png" />
    &lt;/res:resourceItem>
  &lt;/res:resourceData>
  &lt;segment>
    &lt;source>Image: &lt;ph id="ph1" fs="img"
        subFs="src,example.png" subFlows="1"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
</programlisting>
    </example>

  </section>

</section>
  <section id="Preserve_Space">
  <title>Preserve Space</title>

  <para>Indicates how to handle whitespace in a given content portion. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#preservespace">Preserve Space</ulink> for
    details.</para>


  <section id="Preserve_Space_Structural">
    <title>Structural Elements</title>
    <para> Whitespace handling at the structural level is indicated with <code><link linkend="xml_space">xml:space</link></code> in
      XLIFF Core and extensions: <example>
        <title>Extraction of preserved whitespace at the structural level</title>

        <para>Original:</para>
        <programlisting format="linespecific">
&lt;listing xml:space='preserve'>Line 1 Line 2&lt;/listing>
 </programlisting>
        <para>Extraction:</para>
        <programlisting format="linespecific">
&lt;unit id='1' xml:space='preserve'>
  &lt;segment>
    &lt;source>Line 1 Line 2&lt;/source>
  &lt;/segment>
&lt;/unit>
 </programlisting>
      </example>
    </para>
  </section>
  <section id="Preserve_Space_Inline">
    <title>Inline Elements</title>
    <para> It is not possible to use <link linkend="xml_namespace">[XML namespace]</link> on XLIFF inline elements. It is advised that mixed Preserve Space
      behavior is NOT used inline in source formats. The advised way to extract content with mixed
      Preserve Space behavior is for the Extractor to perform the following:<orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Normalize the whitespace in the content as needed, i.e. preserving whitespace spans
            where they need to be preserved, normalizing elsewhere.</para>
        </listitem>
        <listitem>
          <para>Then, extract the content with <link linkend="xml_space"><code>xml:space</code></link> set to <code>preserve</code> on
            the structural level, i.e. <link linkend="unit"><code>unit</code></link> or higher.</para>
        </listitem>
      </orderedlist></para>
    <para>
      <note>
        <para>Even in case Extractors don't perform the normalization step, it is safer to set
            <link linkend="xml_space"><code>xml:space</code></link> to <code>preserve</code> on the structural level,
          since any potentially superfluous whitespace characters can be removed by human
          translators or editors, whereas inheriting of the default value <code>default</code> could
          lead to irreversible loss of significant whitespace characters.</para>
      </note>
    </para>
    <para>Whitespace handling can be also set independently for text segments and ignorable text
      portions within an extracted unit and for the source and target language within the same
          <code><link linkend="segment">&lt;segment></link></code> or <code><link linkend="ignorable">&lt;ignorable></link></code> element using the OPTIONAL <code><link linkend="xml_space">xml:space</link></code>
      attribute at the <code><link linkend="source">&lt;source></link></code> and <code><link linkend="target">&lt;target></link></code> elements. </para>

    <para> It is important to note that the value of the <code><link linkend="xml_space">xml:space</link></code>
      attribute is restricted to <code>preserve</code> on the <code><link linkend="data">&lt;data></link></code>
      element.</para>

  </section>

</section>


</section>
  <section id="ITSnonMetadata">
  <title>ITS data categories not represented in XLIFF</title>

  <para>The following <link linkend="ITS20">[ITS]</link> data
    categories can be represented via extraction and merging behavior of XLIFF conformant Agents
    without including any ITS specific metadata in the XLIFF documents:</para>

  <orderedlist continuation="restarts" inheritnum="ignore">
    <listitem>
      <para><link linkend="its-directionality">Directionality</link>,</para>
    </listitem>
    <listitem>
      <para><link linkend="Elements_Within_Text">Elements          Within Text</link>,</para>
    </listitem>
    <listitem>
      <para><link linkend="its-locale-filter">Locale Filter</link>,</para>
    </listitem>
    <listitem>
      <para><link linkend="Target_Pointer">Target Pointer</link>,
        and</para>
    </listitem>
    <listitem>
      <para><link linkend="its-id-value">ID Value</link>.</para>
    </listitem>





  </orderedlist>

  <section id="its-directionality">
    <title>Directionality</title>
    <para>The <ulink url="http://www.w3.org/TR/its20#directionality">Directionality</ulink> data
      category allows the user to specify the base writing direction of blocks, embeddings, and
      overrides for the Unicode bidirectional algorithm <link linkend="uax9">[UAX #9]</link>. In XLIFF the usage of this data category along the ITS
      lines is discouraged, since XLIFF provides its own mechanism to specify directionality, see
        <link linkend="BiDi">Bidirectional Text</link>.</para>
  </section>

  <section id="Elements_Within_Text">
  <title>Elements Within Text</title>
  <para>The <ulink url="http://www.w3.org/TR#elements-within-text">Elements Within Text</ulink> data
    category reveals if and how an element affects the way text content behaves from a linguistic
    viewpoint. This information is for example relevant to provide basic text segmentation hints for
    tools such as Translation Memory systems. See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR#elements-within-text">Elements Within Text</ulink> for
    details.</para>
  <para>The <ulink url="http://www.w3.org/TR/its20#elements-within-text">Elements Within
      Text</ulink> data category is used by ITS processors to generate XLIFF documents. This process
    is done by ITS processors, not by XLIFF Writers or other types of XLIFF implementations, to
    understand how to extract source content. The data category is not represented directly in XLIFF
    documents.</para>
  <para>The data category provides three values: <code>yes</code>, <code>no</code> and
      <code>nested</code>. See the <ulink url="http://www.w3.org/TR/its20#within-text-definition">ITS 2.0 specification</ulink> for examples of how to use these values in general XML
    vocabularies or in HTML. The below examples show how to deal with the values in XLIFF. </para>
  <section>
    <title>Elements Within Text Value <code>Yes</code></title>
    <para>The element needs to be mapped to one of the XLIFF 2.2 inline elements: &lt;pc>,
      &lt;sc>/&lt;ec> or &lt;ph>, while its content is extracted.</para>
    <para>Example for using <code>pc</code> - Original: </para>
    <programlisting format="linespecific">
...
&lt;p>This paragraph contains &lt;span its-within-text="yes">a spanned part
    &lt;/span>.&lt;/p>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;span its-within-text="yes"&amp;gt;&lt;/data>
    &lt;data id="d2">&amp;lt;/span&amp;gt;&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>This paragraph contains &lt;pc id="pc1" dataRefStart="d1"
        dataRefEnd="d2">a spanned part &lt;/pc>. &lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    <para>Example for using <code>sc</code>/<code>ec</code> - Original: </para>
    <programlisting format="linespecific">
...
&lt;p>A paragraph where &lt;u>the formatted text appears in more than one
    segment. The second sentence here.&lt;/u>&lt;/p>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;u&amp;gt;&lt;/data>
    &lt;data id="d2">&amp;lt;/u&amp;gt;&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>A paragraph where &lt;sc id="sc1" dataRef=”d1” type="fmt"
        subType="xlf:u"/>the formatted text takes more than one segment.
        &lt;/source>
  &lt;/segment>
  &lt;segment>
    &lt;source> The second sentence here.&lt;ec dataRef=”d2” startRef="sc1"/>
        &lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    <para>Example for using <code>ph</code> - Original: </para>
    <programlisting format="linespecific">
...
&lt;p>This sentence has a breakpoint&lt;br/>inside.&lt;/p>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1">
  &lt;originalData>
    &lt;data id="d1">&amp;lt;br/&amp;gt;&lt;/data>
  &lt;/originalData>
  &lt;segment>
    &lt;source>This sentence has a breakpoint&lt;ph id="ph1" dataRef="d1"
        type=”fmt” subType=”xlf:lb”/>inside. &lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
  </section>
  <section>
    <title>Elements Within Text Value <code>Nested</code></title>
    <para>The sub-flow (i.e. element’s content) should be stored in a different <code>unit</code>
      while the original element is replaced by a <code>ph</code> element and order of the flow
      defined by the <code>subFlows</code> attribute.
      </para>
    <para>Example - Original: </para>
    <programlisting format="linespecific">
...
&lt;para>Some text with a figure:
  &lt;figure>
    &lt;title its:withinText="nested">Some image description&lt;/title>
    &lt;mediaobject>
      &lt;imageobject>
        &lt;imagedata fileref="images/example.jpg" scale="75"/>
      &lt;/imageobject>
    &lt;/mediaobject>
  &lt;/figure>
&lt;/para>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1">
  &lt;segment>
    &lt;source>Some image description&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="u2">
  &lt;segment>
    &lt;source>Some text with a figure: &lt;ph id="ph1" subFlows="u1"/>&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
    <para>All the sub-flows and the <code>unit</code> element which invokes them have to be in the
      same <code>file</code> element. </para>
  </section>
  <section>
    <title>Elements Within Text Value <code>No</code></title>
    <para>In XLIFF 2.2, such element content should be stored in separate <code>unit</code>
      elements. </para>
    <para>Example - Original: </para>
    <programlisting format="linespecific">
...
&lt;ul>
  &lt;li>First sentence&lt;/li>
  &lt;li>Second sentence&lt;/li>
&lt;/ul>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1">
  &lt;segment>
    &lt;source>First sentence&lt;/source>
  &lt;/segment>
&lt;/unit>
&lt;unit id="u2">
  &lt;segment>
    &lt;source>Second sentence&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
  </section>
</section>



  <section id="its-locale-filter">
    <title>Locale Filter</title>
    <para>Expresses that a node is only applicable to certain locales. See <link linkend="ITS20">[ITS]</link>
      <ulink url="https://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink> for further
      details.</para>
    <para>It is RECOMMENDED that <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale
        Filter</ulink> metadata is fully consumed on extraction, so that only the relevant source
      content is present in each XLIFF document with the <link linkend="trgLang">trgLang</link> attributes set as
      per the <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink>
      metadata.</para>
    <para>Dependent on workflow specifics and business requirements, this data category can be most
      of the times fully represented by extraction and merging behavior without explicitly
      representing <ulink url="http://www.w3.org/TR/its20/#LocaleFilter">Locale Filter</ulink>
      metadata in XLIFF documents. See the <link linkend="Locale_Filter">Locale Filter</link> section within the <link linkend="itsm_defined_categories">defined categories        section</link> for the normative description of how this metadata can be explicitly
      represented if necessary. </para>
  </section>

  <section id="Target_Pointer">
  <title>Target Pointer</title>

  <para>Is used to associate the node of a given source content (i.e., the content to be translated) and the node of its corresponding target content (i.e., the source content translated into a given target language). See <link linkend="ITS20">[ITS]</link>
    <ulink url="http://www.w3.org/TR/its20/#target-pointer">Target Pointer</ulink> for
    details.</para>
  <para>This data category is not mapped to XLIFF but used by extracting and merging tools to get the source content from the original document and put back the translated content at its proper location.</para>
  <para>Note that ITS processors working on XLIFF documents should use the following rule to locate the source and target content:</para>

  <programlisting format="linespecific">
&lt;its:targetPointerRule selector="//xlf:source"
    targetPointer="../xlf:target"/> </programlisting>

</section>


  <section id="its-id-value">
    <title>ID Value</title>
    <para>The <ulink url="http://www.w3.org/TR/its20#idvalue">ID Value</ulink> data category
      indicates a value that can be used as a unique identifier for a given part of the content. As
      XLIFF identifiers are not globally unique, this data category does cannot have a normative
      correspondence in XLIFF. Still the ID information could be represented in XLIFF, e.g. if there
      is an HTML file with id attributes, the attributes could be stored as names (e.g. with the
      XLIFF <code>name</code> attribute) or ids (with the XLIFF <code>id</code> attribute), yet
      being unique per XLIFF <code>file</code> element (not per XLIFF Document). In general the ID
      Value information is fully consumed by the extraction/merge behavior and there is no normative
      mapping relationship between ID Value as used in native formats and during the XLIFF
      Roundtrip.</para>
    <para>Example - Original: </para>
    <programlisting format="linespecific">
...
&lt;p id="p1>A paragraph&lt;/p>
...
</programlisting>
    <para>Extraction:</para>
    <programlisting format="linespecific">
...
&lt;unit id="u1" name="p1>
  &lt;segment>
    &lt;source>A paragraph&lt;/source>
  &lt;/segment>
&lt;/unit>
...
</programlisting>
  </section>


</section>


  <section id="itsmAnnotations">
  <title>ITS Mapping Annotations</title>
  <para>This lists all custom Annotations that are needed for <link linkend="ITS20">[ITS]</link> support in XLIFF documents but are not available through XLIFF
    Core <link linkend="annotations">Annotations</link> or
    other module specific annotations. Use of XLIFF Core <link linkend="annotations">Annotations</link> for the ITS Mapping purposes is described in
    sections <link linkend="ITSInCore">ITS data categories available      through XLIFF Core</link> and <link linkend="ITSPartialOverlap">ITS data categories that have a partial overlap with XLIFF      features</link> sections of this ITS Module.</para>
  <para>The following is the summary of internal links to all relevant Annotations:</para>



  <itemizedlist>
    <listitem>
      <para>Generic Annotation</para>
      <itemizedlist>
        <listitem>
          <para><link linkend="toolsAnnotation">ITS Tools              Annotation</link></para>
        </listitem>
      </itemizedlist>
    </listitem>
    <listitem>
      <para>Annotations for Data Categories fully defined in the ITS Module</para>
      <itemizedlist>
        <listitem>
          <para><link linkend="Allowed_Characters">ITS Allowed              Characters</link></para>
        </listitem>
        <listitem>
          <para><link linkend="domainsAnnotation">ITS Domain              Annotation</link></para>
        </listitem>
        <listitem>
          <para><link linkend="localeFilterAnnotation">ITS Locale              Filter Annotation</link></para>
        </listitem>

        <listitem>
          <para><link linkend="lqiAnnotation">ITS              Localization Quality Issue Annotation</link></para>
        </listitem>
        <listitem>
          <para><link linkend="lqrAnnotation">ITS              Localization Quality Rating Annotation</link></para>
        </listitem>
        <listitem>
          <para><link linkend="provenanceAnnotation">ITS Provenance              Annotation</link></para>
        </listitem>
        <listitem>
          <para><link linkend="taAnnotation">ITS Text Analysis              Annotation</link></para>
        </listitem>
      </itemizedlist>
    </listitem>
    <listitem>
      <para>Annotations for Data Categories partially defined in the ITS Module</para>
      <itemizedlist>

        <listitem>
          <para><link linkend="langAnnotation">ITS Language              Information Annotation</link></para>
        </listitem>
        <listitem>
          <para><link linkend="MTConfidenceAnnotation">ITS MT              Confidence Annotation</link></para>
        </listitem>

        <listitem>
          <para><link linkend="nonTermAnnotation">ITS Terminology              Annotation</link></para>
        </listitem>
      </itemizedlist>
    </listitem>

  </itemizedlist>


</section>
  <section id="ITS_Module_Elements">
    <title>Module Elements</title>
    <para>All ITS Module elements belong to the <code>http://www.w3.org/2005/11/its</code>
      namespace. The ITS Module defines the following elements:</para>
    <para>
      <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>, <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, and <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>. </para>
    <section>

      <title>Tree Structure</title>
      <para>Legend:</para>
      <simplelist type="vert">
        <member>1 = one</member>
        <member>+ = one or more</member>
        <member>? = zero or one</member>
        <member>* = zero, one or more</member>
      </simplelist>
      <programlisting format="linespecific">
<link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link>
|
+---<link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> +
  </programlisting>

      <programlisting format="linespecific">
<link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
|
+---<link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> +
  </programlisting>

    </section>

    <section id="itsm_locQualityIssue">
    <title>locQualityIssue</title>
    <para>Localization Quality Issue - a standoff element to hold information about a single <link linkend="ITS20">[ITS]</link> defined Localization Quality
        Issue.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>This element is always empty.</member>
    </simplelist>

    <para><emphasis>Parents:</emphasis></para>

    <simplelist type="vert">
        <member>- <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link></member>

    </simplelist>


    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="itsm_locQualityIssueType"><code>locQualityIssueType</code></link>,
            OPTIONAL </member>
        <member>- <link linkend="itsm_locQualityIssueComment"><code>locQualityIssueComment</code></link>,
            OPTIONAL</member>

        <member>- <link linkend="itsm_locQualityIssueSeverity"><code>locQualityIssueSeverity</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_locQualityIssueProfileRef"><code>locQualityIssueProfileRef</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_locQualityIssueEnabled"><code>locQualityIssueEnabled</code></link>,
            OPTIONAL</member>

    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>At least one of the attributes <link linkend="itsm_locQualityIssueType"><code>locQualityIssueType</code></link> or
                    <link linkend="itsm_locQualityIssueComment"><code>locQualityIssueComment</code></link> MUST be set.</para>
        </listitem>
    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para> For all Agents, when any of the attributes <link linkend="itsm_locQualityIssueType"><code>locQualityIssueType</code></link>,
                    <link linkend="itsm_locQualityIssueComment"><code>locQualityIssueComment</code></link>, <link linkend="itsm_locQualityIssueSeverity"><code>locQualityIssueSeverity</code></link>, <link linkend="itsm_locQualityIssueProfileRef"><code>locQualityIssueProfileRef</code></link>, or <link linkend="itsm_locQualityIssueEnabled"><code>locQualityIssueEnabled</code></link> are declared on the <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue</code></link> element,
                these apply to the respective marker delimited inline spans of <link linkend="lqiAnnotation">ITS                    Localization Issue Annotation</link>, from which their enclosing <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link> element is referenced. </para>
        </listitem>
    </itemizedlist>
</section>
    <section id="itsm_locQualityIssues">
  <title>locQualityIssues</title>
  <para>Localization Quality Issues - a standoff wrapper element to group any number of single issue
    elements related to the same span of source or target content.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- One or more <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> elements</member>

  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="unit"><code>&lt;unit></code></link></member>

  </simplelist>


  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="itsm_id"><code>xml:id</code></link>, REQUIRED </member>
  </simplelist>

  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>Each <link linkend="itsm_locQualityIssues">locQualityIssues</link> element SHOULD be
        referenced by at least one <link linkend="itsm_locQualityIssuesRef"><code>locQualityIssuesRef</code></link> attribute
        within the same <link linkend="unit"><code>&lt;unit></code></link> element as per Constraints for the <link linkend="itsm_locQualityIssuesRef"><code>locQualityIssuesRef</code></link>
        attribute.</para>
    </listitem>
  </itemizedlist>


  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Modifiers detecting an orphaned <link linkend="itsm_locQualityIssues">locQualityIssues</link> element MAY delete that <link linkend="itsm_locQualityIssues">locQualityIssues</link> element.</para>
    </listitem>
  </itemizedlist>


</section>
    <section id="itsm_provenanceRecord">
    <title>provenanceRecord</title>
    <para>Provenance Record - a standoff element to hold information of a single <link linkend="ITS20">[ITS]</link> defined Provenance
        Record.</para>
    <para><emphasis>Contains:</emphasis></para>
    <simplelist type="vert">
        <member>This element is always empty.</member>
    </simplelist>

    <para><emphasis>Parents:</emphasis></para>

    <simplelist type="vert">
        <member>- <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link></member>

    </simplelist>


    <para><emphasis>Attributes:</emphasis></para>
    <simplelist type="vert">
        <member>- <link linkend="itsm_org"><code>its:org</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_orgRef"><code>its:orgRef</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_person"><code>its:person</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_personRef"><code>its:personRef</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_revOrg"><code>its:revOrg</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_revOrgRef"><code>its:revOrgRef</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_revPerson"><code>its:revPerson</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_revPersonRef"><code>its:revPersonRef</code></link>,
            OPTIONAL</member>
        <member>- <link linkend="itsm_revTool"><code>its:revTool</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_revToolRef"><code>its:revToolRef</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_tool"><code>its:tool</code></link>, OPTIONAL</member>
        <member>- <link linkend="itsm_toolRef"><code>its:toolRef</code></link>, OPTIONAL</member>

    </simplelist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>At least one of the following MUST be set:</para>
            <itemizedlist>
                <listitem>
                    <para>
                        <link linkend="itsm_org"><code>its:org</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_orgRef"><code>its:orgRef</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_person"><code>its:person</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_personRef"><code>its:personRef</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revOrg"><code>its:revOrg</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revOrgRef"><code>its:revOrgRef</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revPerson"><code>its:revPerson</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revPersonRef"><code>its:revPersonRef</code></link>,
                    </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revTool"><code>its:revTool</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_revToolRef"><code>its:revToolRef</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_tool"><code>its:tool</code></link>, </para>
                </listitem>
                <listitem>
                    <para>
                        <link linkend="itsm_toolRef"><code>its:toolRef</code></link>, </para>
                </listitem>

            </itemizedlist>
        </listitem>


    </itemizedlist>

    <itemizedlist>

        <title>Processing Requirements</title>
        <listitem>
            <para> For all Agents, when any of the attributes <link linkend="itsm_org"><code>its:org</code></link>, <link linkend="itsm_orgRef"><code>its:orgRef</code></link>, <link linkend="itsm_person"><code>its:person</code></link>, <link linkend="itsm_personRef"><code>its:personRef</code></link>, <link linkend="itsm_revOrg"><code>its:revOrg</code></link>, <link linkend="itsm_revOrgRef"><code>its:revOrgRef</code></link>, <link linkend="itsm_revPerson"><code>its:revPerson</code></link>, <link linkend="itsm_revPersonRef"><code>its:revPersonRef</code></link>, <link linkend="itsm_revTool"><code>its:revTool</code></link>, <link linkend="itsm_revToolRef"><code>its:revToolRef</code></link>, <link linkend="itsm_tool"><code>its:tool</code></link>, or <link linkend="itsm_toolRef"><code>its:toolRef</code></link> are declared on the <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element, these apply to the respective structural elements' content or the marker
                delimited inline spans of <link linkend="provenanceAnnotation">ITS Provenance Annotation</link>, from which
                their enclosing <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element is referenced. </para>
        </listitem>
    </itemizedlist>
</section>
    <section id="itsm_provenanceRecords">
  <title>provenanceRecords</title>
  <para>Provenance Records - a standoff wrapper element to group any number of single Provenance
    Record elements related to the same span of source or target content.</para>
  <para><emphasis>Contains:</emphasis></para>
  <simplelist type="vert">
    <member>- One or more <link linkend="itsm_provenanceRecord"><code>&lt;itsm:provenanceRecord></code></link>
      elements</member>

  </simplelist>

  <para><emphasis>Parents:</emphasis></para>

  <simplelist type="vert">
    <member>- <link linkend="unit"><code>&lt;unit></code></link></member>
    <member>- <link linkend="group"><code>&lt;group></code></link></member>
    <member>- <link linkend="file"><code>&lt;file></code></link></member>
  </simplelist>


  <para><emphasis>Attributes:</emphasis></para>
  <simplelist type="vert">
    <member>- <link linkend="itsm_id"><code>xml:id</code></link>, REQUIRED </member>
  </simplelist>
  
  <itemizedlist>
    <title>Constraints</title>
    <listitem>
      <para>Each <link linkend="itsm_provenanceRecords">provenanceRecords</link> element SHOULD be
        referenced by at least one <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute
        from the common parent element or one of the common parent's descendants as per Constraints
        for the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link>
        attribute.</para>
    </listitem>
  </itemizedlist>
  <itemizedlist>
    <title>Processing Requirements</title>
    <listitem>
      <para>Modifiers detecting an orphaned <link linkend="itsm_provenanceRecords">provenanceRecords</link> element MAY delete that <link linkend="itsm_provenanceRecords">provenanceRecords</link> element.</para>
    </listitem>
  </itemizedlist>

</section>
    
  </section>
  <section>
    <title>Module Attributes</title>
    <para>The <link linkend="ITS-module">ITS Module</link> uses the following attributes from the
        <code>http://www.w3.org/2005/11/its</code> namespace: <link linkend="itsm_allowedCharacters"><code>allowedCharacters</code></link>, <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link>, <link linkend="itsm_localeFilterList"><code>localeFilterList</code></link>, <link linkend="itsm_localeFilterType"><code>localeFilterType</code></link>, <link linkend="itsm_locQualityIssueComment"><code>locQualityIssueComment</code></link>, <link linkend="itsm_locQualityIssueEnabled"><code>locQualityIssueEnabled</code></link>, <link linkend="itsm_locQualityIssueProfileRef"><code>locQualityIssueProfileRef</code></link>,
        <link linkend="itsm_locQualityIssuesRef"><code>locQualityIssuesRef</code></link>, <link linkend="itsm_locQualityIssueSeverity"><code>locQualityIssueSeverity</code></link>,
        <link linkend="itsm_locQualityIssueType"><code>locQualityIssueType</code></link>, <link linkend="itsm_locQualityRatingProfileRef"><code>locQualityRatingProfileRef</code></link>,
        <link linkend="itsm_locQualityRatingScore"><code>locQualityRatingScore</code></link>, <link linkend="itsm_locQualityRatingScoreThreshold"><code>locQualityRatingScoreThreshold</code></link>, <link linkend="itsm_locQualityRatingVote"><code>locQualityRatingVote</code></link>, <link linkend="itsm_locQualityRatingVoteThreshold"><code>locQualityRatingVoteThreshold</code></link>, 
      <link linkend="itsm_mtConfidence"><code>mtConfidence</code></link>, <link linkend="itsm_org"><code>org</code></link>, <link linkend="itsm_orgRef"><code>orgRef</code></link>, <link linkend="itsm_person"><code>person</code></link>, <link linkend="itsm_personRef"><code>personRef</code></link>, <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link>, <link linkend="itsm_revOrg"><code>revOrg</code></link>, <link linkend="itsm_revOrgRef"><code>revOrgRef</code></link>, <link linkend="itsm_revPerson"><code>revPerson</code></link>, <link linkend="itsm_revPersonRef"><code>revPersonRef</code></link>, <link linkend="itsm_revTool"><code>revTool</code></link>, <link linkend="itsm_revToolRef"><code>revToolRef</code></link>, <link linkend="itsm_taClassRef"><code>taClassRef</code></link>, <link linkend="itsm_taConfidence"><code>taConfidence</code></link>, <link linkend="itsm_taIdent"><code>taIdent</code></link>, <link linkend="itsm_taIdentRef"><code>taIdentRef</code></link>, <link linkend="itsm_taSource"><code>taSource</code></link>, <link linkend="itsm_termConfidence"><code>termConfidence</code></link>, <link linkend="itsm_tool"><code>tool</code></link>, <link linkend="itsm_toolRef"><code>toolRef</code></link>, and <link linkend="itsm_version"><code>version</code></link>
    </para>
    <para>The attributes defined in the <link linkend="ITS-module">ITS Module</link> that belong to
      the <code>urn:oasis:names:tc:xliff:itsm:2.1</code> namespace are: <link linkend="itsm_domains"><code>domains</code></link> and <link linkend="itsm_lang"><code>lang</code></link>. </para>
    <para> The <link linkend="ITS-module">ITS Module</link> also uses the <link linkend="itsm_id"><code>xml:id</code></link> attribute. </para>
    

    <section id="itsm_allowedCharacters">
    <title>Allowed Characters</title>
    
    <para>AllowedCharacters - the <code>allowedCharacters</code> attribute is the
            <link linkend="ITS20">[ITS]</link> defined
            <code>allowedCharacters</code> attribute. See the <ulink url="https://www.w3.org/TR/its20/#allowedchars-local">allowedCharacters</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification for details on the purpose of the attribute and permitted values.</para>
    <para><emphasis>Value description:</emphasis> See the <ulink url="https://www.w3.org/TR/its20/#allowedchars-local">allowedCharacters</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification.</para>
    <para><emphasis>Default value:</emphasis> none.</para>
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>
    
    
    <para>See the <link linkend="allowedCharactersAnnotation">ITS Allowed Characters Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    
</section>
    <section id="itsm_annotatorsRef">
    <title>annotatorsRef</title>

    <para>Annotators Reference - the <code>annotatorsRef</code> attribute holds provenance
        information about tools that produced <link linkend="ITS20">[ITS]</link> metadata. See <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/2013/REC-its20-20131029/#its-tool-annotation                 ">Tools Annotation</ulink> mechanism.</para>


    <para><emphasis>Value description:</emphasis> Text. </para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>) or any of the elements defined in the
                    <link linkend="ITS-module">ITS                    Module</link>:</para>
            <para>The value of the <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> attribute of its parent element (which can be
                undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>


            <para>The value of the <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>

        </listitem>
        <listitem>
            <para> When used in top level module elements (<link linkend="match"><code>&lt;mtc:match></code></link>) :</para>
            <para>The value is undefined.</para>

        </listitem>


    </itemizedlist>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>All Constraints that follow from <link linkend="ITS20">[ITS]</link>
                <ulink url="https://www.w3.org/TR/its20/#its-tool-annotation">Tools
                    Annotation</ulink>.</para>
        </listitem>

    </itemizedlist>

    <note>
        <para>The IRI part of the value string is used as the annotator identifier. The semantics of
            how the IRI identifies the ITS producing tool is not prescribed. Possible mechanisms are
            for instance: to encode information directly in the IRI, as parameters or similar; to
            reference an external resource that provides such information, an XML file, an RDF
            declaration and so on; or to reference another part of the document that provides such
            information.</para>
    </note>

    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
            <link linkend="match"><code>&lt;mtc:match></code></link>, <remark><code>&lt;ctr:revisions></code></remark>, or <remark><code>&lt;ctr:revision></code></remark>.</para>

    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>All Processing Requirements that follow from <link linkend="ITS20">[ITS]</link>
                <ulink url="https://www.w3.org/TR/its20/#its-tool-annotation">Tools
                    Annotation</ulink>.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="toolsAnnotation">ITS Tools Annotation</link> for the normative usage description of this attribute
        inline.</para>

</section>
    <section id="itsm_domains">
    <title>itsm:domains</title>
    
    <para>Domains - the <code>itsm:domains</code> attribute expresses the <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#domain">Domain</ulink> data category.</para>
    
    
    <para><emphasis>Value description:</emphasis>
        The value is a text string, however commas if present separate distinct domain values within the string.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>
            
            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_domains"><code>domains</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers
                <link linkend="mrk"><code>&lt;mrk></code></link> or
                <link linkend="sm"><code>&lt;sm></code></link>:</para>
            
            
            <para>The value of the <link linkend="itsm_domains"><code>domains</code></link> attribute of the innermost
                <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>
            
        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
        and <link linkend="match"><code>&lt;mtc:match></code></link>.</para>
    
    <para>See the <link linkend="domainsAnnotation">ITS Domain Annotation</link> for the normative usage description of this attribute inline.</para>
    <warning>
        <para>This attribute belongs to the <code>urn:oasis:names:tc:xliff:itsm:2.1</code>
            namespace that is being prefixed with <code>itsm:</code> throughout this
            specification, unlike the original W3C ITS namespace
            <code>http://www.w3.org/2005/11/its</code> that is being prefixed with
            <code>its:</code>.</para>
    </warning>
    
</section>

    

    <section id="itsm_id">
  <title>xml:id</title>

  <para>Identifier - the <code>id</code> attribute from the <code>http://www.w3.org/XML/1998/</code>
    namespace is used to identify a <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link> or <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element.</para>

  <para><emphasis>Value description:</emphasis> xs:ID</para>

  <para><emphasis>Default value:</emphasis> undefined</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link> and <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>.</para>
  <warning>
    <para>Since the ITS Module reuses the W3C namespace <code>http://www.w3.org/2005/11/its</code>
      it cannot use <code>xs:NMTOKEN</code> identifiers as the XLIFF Core or
      other Modules. Implementers need to be aware that <code>xs:ID</code>
      has to be globally unique.</para>
  </warning>


</section>

    <section id="itsm_lang">
    <title>itsm:lang</title>

    <para>Inline language information - the <code>itsm:lang</code> attribute specifies <emphasis>an
            inline foreign language span</emphasis> within the source or target content of the
        otherwise bilingual XLIFF document. For example: <code>itsm:lang="fr-FR"</code> indicates
        the French language as spoken in France.</para>
    <note>
        <para>This is NEVER used on structural elements that have their Language Information set by
            the XLIFF Core <link linkend="srcLang"><code>xlf:srcLang</code></link> and <link linkend="trgLang"><code>xlf:trgLang</code></link> attributes. It is not advisable
            to use this attribute on structural elements even outside of XLIFF where the Language
            Information is typically given by the <code>xml:lang</code> attribute.</para>
    </note>

    <para><emphasis>Value description:</emphasis> A language code as described in <link linkend="bcp47">[BCP 47]</link>.</para>

    <para><emphasis>Default value:</emphasis></para>


    <para>The value of the <link linkend="xml_lang"><code>xml:lang</code></link> or <code>itsm:lang</code> attribute set or inherited on
        the parent element of the <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link> element in question.</para>


    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>
    <para>See the <link linkend="langAnnotation">ITS Language Information Annotation</link> for the normative
        usage description of this attribute.</para>

    <para>
        <note>
            <para>
                <code>itsm:lang</code> is an attribute analogical to <link linkend="xml_lang"><code>xml:lang</code></link>.
                Unlike <link linkend="xml_lang"><code>xml:lang</code></link>, it is allowed on XLIFF inline <link linkend="annotations">Annotations</link>.
                The normative behavior of this attribute results from the XLIFF Core behavior as
                further specified by the <link linkend="langAnnotation">ITS Language Information Annotation</link>.</para>
        </note>
        <warning>
            <para>This attribute belongs to the <code>urn:oasis:names:tc:xliff:itsm:2.1</code>
                namespace that is being prefixed with <code>itsm:</code> throughout this
                specification, unlike the original W3C ITS namespace
                    <code>http://www.w3.org/2005/11/its</code> that is being prefixed with
                    <code>its:</code>.</para>
        </warning>
    </para>
</section>
    <section id="itsm_localeFilterList">
    <title>localeFilterList</title>
    
    <para>LocaleFilterList - the <code>localeFilterList</code> attribute is the
            <link linkend="ITS20">[ITS]</link> defined
            <code>localeFilterList</code> attribute. See the <ulink url="https://www.w3.org/TR/its20/#localefilter-local">localeFilterList</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification for details on the purpose of the attribute and permitted values.</para>
    <para><emphasis>Value description:</emphasis> See the <ulink url="https://www.w3.org/TR/its20/#localefilter-local">localeFilterList</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification.</para>
    <para><emphasis>Default value:</emphasis> "*".</para>
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>
    
    
    <para>See the <link linkend="localeFilterAnnotation">ITS Locale Filter  Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    
</section>
    <section id="itsm_localeFilterType">
    <title>localeFilterType</title>
    
    <para>LocaleFilterType - the <code>localeFilterType</code> attribute is the
            <link linkend="ITS20">[ITS]</link> defined
            <code>localeFilterType</code> attribute. See the <ulink url="https://www.w3.org/TR/its20/#localefilter-local">localeFilterType</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification for details on the purpose of the attribute and permitted values.</para>
    <para><emphasis>Value description:</emphasis> See the <ulink url="https://www.w3.org/TR/its20/#localefilter-local">localeFilterType</ulink>
        definition in the <link linkend="ITS20">[ITS]</link>
        specification.</para>
    <para><emphasis>Default value:</emphasis> "include".</para>
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>
    
    
    <para>See the <link linkend="localeFilterAnnotation">ITS Locale Filter Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    
</section>
    <section id="itsm_locQualityIssueComment">
    <title>locQualityIssueComment</title>

    <para>Localization Quality Issue Comment - the <code>locQualityIssueComment</code> attribute is
        the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityIssueComment</code> attribute.</para>
    <para> This attribute is intended for human readable comments pertaining to or guidance how to
        address a specific Localization Quality Issue.</para>


    <para><emphasis>Value description:</emphasis> Text string. </para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>, or in <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>.</para>


    <para>See the <link linkend="lqiAnnotation">ITS Localization Issue Annotation</link> for the normative
        usage description of this attribute when used inline; advanced Constraints follow from that
        normative usage description.</para>
    <para>See <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for standoff
        usage Constraints.</para>

</section>
    <section id="itsm_locQualityIssueEnabled">
    <title>locQualityIssueEnabled</title>
    
    <para>Localization Quality Issue Enabled - the <code>locQualityIssueEnabled</code> attribute
        is the <link linkend="ITS20">[ITS]</link>
        defined <code>locQualityIssueEnabled</code> attribute. </para>
    <para> This is a flag to enable or disable a particular issue.</para>
    
    <para><emphasis>Value description:</emphasis>
        <code>yes</code> when issue enabled , <code>no</code> otherwise. </para>
        
    <para><emphasis>Default value:</emphasis> <code>yes</code>.</para>
    
    <note><para>The attribute <link linkend="itsm_locQualityIssueEnabled">locQualityIssueEnabled</link> set
            to <code>no</code> can be used for instance to disable false positives that were
            produced by an automated QA tool.</para> </note>
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and
        <link linkend="sm"><code>&lt;sm></code></link>, or in <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>.</para>
    
    
    <para>See the <link linkend="lqiAnnotation">ITS Localization Issue Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description. See <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for standoff
        usage Constraints.</para>
</section>
    <section id="itsm_locQualityIssueProfileRef">
    <title>locQualityIssueProfileRef</title>
    
    <para>Localization Quality Issue Quality Model Profile Reference - the <code>locQualityIssueProfileRef</code> attribute
        is the <link linkend="ITS20">[ITS]</link>
        defined <code>locQualityIssueProfileRef</code> attribute. </para>
    <para> This attribute references a quality model that has been used to identify and evaluate a particular issue.</para>
    
    <para><emphasis>Value description:</emphasis> IRI.</para>
        
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    <note><para>It is strongly advised that the IRI value of the 
        <link linkend="itsm_locQualityIssueProfileRef">locQualityIssueProfileRef</link> attribute is
            resolvable, so that human evaluators can find out about the referenced Quality Model.</para> </note>
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and
        <link linkend="sm"><code>&lt;sm></code></link>, or in <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>.</para>
    
    
    <para>See the <link linkend="lqiAnnotation">ITS Localization Issue Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for standoff
        usage Constraints.</para>
</section>
    <section id="itsm_locQualityIssuesRef">
    <title>locQualityIssuesRef</title>

    <para>Localization Quality Standoff Reference - the <code>locQualityIssuesRef</code> attribute
        is the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityIssuesRef</code> attribute.</para>
    <para>This attribute references the collection of Localization Issues that pertain to the
        content span from where the reference is declared.</para>

    <para><emphasis>Value description:</emphasis> IRI</para>

    <para><emphasis>Default value:</emphasis> undefined.</para>


    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>.</para>


    <para>See the <link linkend="lqiAnnotation">ITS Localization Issue Annotation</link> for the normative
        usage description of this attribute. </para>
    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>The IRI value of the <link linkend="itsm_locQualityIssuesRef">locQualityIssuesRef</link> attribute MUST be an IRI referencing a <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link>
                element within the same <link linkend="unit"><code>&lt;unit></code></link>.</para>
        </listitem>
        <listitem>
            <para>Multiple <link linkend="itsm_locQualityIssuesRef">locQualityIssuesRef</link>
                attributes MAY reference the same <link linkend="itsm_locQualityIssues"><code>&lt;locQualityIssues></code></link>
                element.</para>
        </listitem>
    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Modifiers removing the last <link linkend="itsm_locQualityIssuesRef"><code>locQualityIssuesRef</code></link> attribute referencing a <link linkend="itsm_locQualityIssues"><code>locQualityIssues</code></link> element MUST delete that <link linkend="itsm_provenanceRecords"><code>locQualityIssues</code></link> element.</para>
        </listitem>

    </itemizedlist>
</section>
    <section id="itsm_locQualityIssueSeverity">
    <title>locQualityIssueSeverity</title>

    <para>Localization Quality Issue Severity - the <code>locQualityIssueSeverity</code> attribute
        is the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityIssueSeverity</code> attribute. </para>
    <para> This attribute provides the severity score for a particular issue, the higher the number
        the higher the severity. Tools are expected to interpret this score within their own
        severity rating system.</para>

    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>

    <warning>
        <para>The <link linkend="itsm_locQualityIssueSeverity">locQualityIssueSeverity</link>
            attribute is intended to be used in concert with the <link linkend="itsm_locQualityIssueProfileRef"><code>locQualityIssueProfileRef</code></link> attribute that is to provide
            information on the applicable Quality Model. Without providing quality model
            information, the severity score between 0 and 100 is very likely to be useless and not
            interoperable.</para>
    </warning>


    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and <link linkend="sm"><code>&lt;sm></code></link>, or in <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>.</para>


    <para>See the <link linkend="lqiAnnotation">ITS Localization Quality Issue Annotation</link> for the
        normative usage description of this attribute when used inline; advanced Constraints follow
        from that normative usage description.</para>
    <para>See <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for standoff
        usage Constraints.</para>
</section>
    <section id="itsm_locQualityIssueType">
    <title>locQualityIssueType</title>
    
    <para>Localization Quality Issue Type - the <code>locQualityIssueType</code> attribute is the
            <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityIssueType</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> A text string, exactly one value from the
        following list:</para>
    <para> <simplelist type="vert">
    
        <member><code>terminology</code></member>
        <member><code>mistranslation</code></member>
        <member><code>omission</code></member>
        <member><code>untranslated</code></member>
        <member><code>addition</code></member>
        <member><code>duplication</code></member>
        <member><code>inconsistency</code></member>
        <member><code>grammar</code></member>
        <member><code>legal</code></member>
        <member><code>register</code></member>
        <member><code>locale-specific-content</code></member>
        <member><code>locale-violation</code></member>
        <member><code>style</code></member>
        <member><code>characters</code></member>
        <member><code>misspelling</code></member>
        <member><code>typographical</code></member>
        <member><code>formatting</code></member>
        <member><code>inconsistent-entities</code></member>
        <member><code>numbers</code></member>
        <member><code>markup</code></member>
        <member><code>pattern-problem</code></member>
        <member><code>whitespace</code></member>
        <member><code>internationalization</code></member>
        <member><code>length</code></member>
        <member><code>non-conformance</code></member>
        <member><code>uncategorized</code></member>
        <member><code>other</code></member>
        
        
        
        
    </simplelist></para>
    <para>For normative usage description and informative guidance for the above values, see <link linkend="ITS20">[ITS]</link>
        <ulink url="http://www.w3.org/TR/its20/#lqissue-typevalues">http://www.w3.org/TR/its20/#lqissue-typevalues</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link> and
        <link linkend="sm"><code>&lt;sm></code></link>, or in <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link>.</para>
    
    
    <para>See the <link linkend="lqiAnnotation">ITS Localization Issue Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="itsm_locQualityIssue"><code>&lt;locQualityIssue></code></link> for standoff
        usage Constraints.</para>
    
</section>


    <section id="itsm_locQualityRatingProfileRef">
    <title>locQualityRatingProfileRef</title>
    
    <para>Localization Quality Rating Quality Model Profile Reference - the
            <code>locQualityRatingProfileRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityRatingProfileRef</code> attribute. </para>
    <para> This attribute references a quality assessment model that has been used for the rating
        (either scoring or voting).</para>
    
    <para><emphasis>Value description:</emphasis> IRI.</para>
        
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>
            
            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_locQualityRatingProfileRef"><code>locQualityRatingProfileRef</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers
                <link linkend="mrk"><code>&lt;mrk></code></link> or
                <link linkend="sm"><code>&lt;sm></code></link>:</para>
            
            
            <para>The value of the <link linkend="itsm_locQualityRatingProfileRef"><code>locQualityRatingProfileRef</code></link> attribute of the innermost
                    <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>
            
        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>
        
        
        
    </itemizedlist>
    
    <note><para>It is strongly advised that the IRI value of the <link linkend="itsm_locQualityRatingProfileRef">locQualityRatingProfileRef</link> attribute
            is resolvable, so that human evaluators can find out about the referenced Quality Assessment
            Model.</para> </note>
    
    
    <para><emphasis>Used in:</emphasis>
        
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>,
        
        <link linkend="mrk"><code>&lt;mrk></code></link>,
        <link linkend="sm"><code>&lt;sm></code></link>,
        and the <link linkend="match"><code>&lt;mtc:match></code></link> element..</para>
    
    
    <para>See the <link linkend="lqrAnnotation">ITS Localization Rating Annotation</link> for the normative usage description of this
        attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="Localization_Quality_Rating_Structural"><code>Localization Quality Rating on
                Structural Elements</code></link> for advanced Constraints when used on structural
        elements (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>).</para>
    <para>See <link linkend="Localization_Quality_Rating_Matches"><code>Localization Quality Rating in
            Translation Candidates Module</code></link> for advanced Constraints when used within the
        <link linkend="candidates">Translation Candidates Module</link>.</para>
</section>
    <section id="itsm_locQualityRatingScore">
    <title>locQualityRatingScore</title>

    <para>Localization Quality Rating Score - the <code>locQualityRatingScore</code> attribute is
        the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityRatingScore</code> attribute. </para>
    <para> This attribute provides the quality rating score pertaining to a structural or inline
        portion of target text, the higher the number the better the quality rating. Tools are
        expected to interpret this score within their own quality rating system.</para>

    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_locQualityRatingScore"><code>locQualityRatingScore</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
            <para>The value of the <link linkend="itsm_locQualityRatingScore"><code>locQualityRatingScore</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, in which the marker in
                question is located (which can be undefined).</para>
            <para>In the special case that the parent element of the marker is a <link linkend="match"><code>&lt;mtc:match></code></link> element, the value is inherited from
                the <link linkend="matchQuality"><code>mtc:matchQuality</code></link> attribute of the
                parent <link linkend="match"><code>&lt;mtc:match></code></link> (which can be undefined).</para>
        </listitem>



    </itemizedlist>

    <warning>
        <para>The <link linkend="itsm_locQualityRatingScore">locQualityRatingScore</link> attribute
            is intended to be used in concert with the <link linkend="itsm_locQualityRatingProfileRef">locQualityRatingProfileRef</link>
            attribute that is to provide information on the applicable Quality Assessment Model and
            with the <link linkend="itsm_locQualityRatingScoreThreshold">locQualityRatingScoreThreshold</link> attribute. Without providing quality
            assessment model information and/or an acceptance threshold, the score between 0 and 100
            is very likely to be useless and not interoperable.</para>
    </warning>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>
    <para>See the <link linkend="lqrAnnotation">ITS Localization Quality Rating Annotation</link> for the normative usage description
        of this attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="Localization_Quality_Rating_Structural"><code>Localization Quality Rating on
                Structural Elements</code></link> for advanced Constraints when used on structural
        elements (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>).</para>
    <para>See <link linkend="Localization_Quality_Rating_Matches"><code>Localization Quality Rating in
                Translation Candidates Module</code></link> for advanced Constraints when used
        within the <link linkend="candidates">Translation Candidates Module</link>.</para>


</section>
    <section id="itsm_locQualityRatingScoreThreshold">
    <title>locQualityRatingScoreThreshold</title>

    <para>Localization Quality Rating Score Threshold - the
            <code>locQualityRatingScoreThreshold</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityRatingScoreThreshold</code> attribute. </para>
    <para>This attribute provides the quality rating score threshold pertaining to any <link linkend="itsm_locQualityRatingScore"><code>locQualityRatingScore</code></link> attribute in scope. Scores under the
        given threshold indicate a quality check fail.</para>

    <para><emphasis>Value description:</emphasis> A decimal number between 0.0 and 100.0.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_locQualityRatingScoreThreshold"><code>locQualityRatingScoreThreshold</code></link> attribute of its parent
                element (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>


            <para>The value of the <link linkend="itsm_locQualityRatingScoreThreshold"><code>locQualityRatingScoreThreshold</code></link> attribute of the
                innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>

        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>



    </itemizedlist>

    <warning>
        <para>The <link linkend="itsm_locQualityRatingScoreThreshold">locQualityRatingScoreThreshold</link> attribute is intended to be used in concert
            with the <link linkend="itsm_locQualityRatingProfileRef">locQualityRatingProfileRef</link>
            attribute that is to provide information on the applicable Quality Assessment Model.
            Without providing quality assessment model information behind the acceptance threshold,
            the score between 0 and 100 is very likely to be useless and not interoperable.</para>
    </warning>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>


    <para>See the <link linkend="lqrAnnotation">ITS Localization Quality Rating Annotation</link> for the normative usage description
        of this attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="Localization_Quality_Rating_Structural">Localization Quality Rating on        Structural Elements</link> for advanced Constraints when used on structural elements
            (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>).</para>
    <para>See <link linkend="Localization_Quality_Rating_Matches">Localization Quality Rating in            Translation Candidates Module</link> for advanced Constraints when used within the
            <link linkend="candidates">Translation Candidates Module</link>.</para>



</section>
    <section id="itsm_locQualityRatingVote">
    <title>locQualityRatingVote</title>

    <para>Localization Quality Rating Vote - the <code>locQualityRatingVote</code> attribute is the
            <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityRatingVote</code> attribute. </para>
    <para> This attribute provides the quality rating voting (crowd assessment) results pertaining
        to a structural or inline portion of target text, the higher the number the more positive
        votes or the better margin of positive votes over negative votes. Tools are expected to
        interpret this value within their own quality rating system.</para>

    <para><emphasis>Value description:</emphasis> An Integer.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_locQualityRatingVote"><code>locQualityRatingVote</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>


            <para>The value of the <link linkend="itsm_locQualityRatingVote"><code>locQualityRatingVote</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>

        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>



    </itemizedlist>

    <warning>
        <para>The <link linkend="itsm_locQualityRatingVote">locQualityRatingVote</link> attribute is
            intended to be used in concert with the <link linkend="itsm_locQualityRatingScoreThreshold">locQualityRatingScoreThreshold</link> attribute, that encodes the vote's success
            or failure criteria and ideally also the <link linkend="itsm_locQualityRatingProfileRef">locQualityRatingProfileRef</link>
            attribute that is to provide information on the applicable Quality Assessment Model.
            Without providing a success threshold or quality assessment model information, the
            integer encoding the voting (crowd assessment) results is very likely to be useless and
            not interoperable.</para>
    </warning>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
        and <link linkend="match"><code>&lt;mtc:match></code></link>.</para>


    <para>See the <link linkend="lqrAnnotation">ITS Localization Quality Rating Annotation</link> for the normative usage description
        of this attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="Localization_Quality_Rating_Structural"><code>Localization Quality Rating on
                Structural Elements</code></link> for advanced Constraints when used on structural
        elements (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>).</para>
    <para>See <link linkend="Localization_Quality_Rating_Matches"><code>Localization Quality Rating in
                Translation Candidates Module</code></link> for advanced Constraints when used
        within the <link linkend="candidates">Translation Candidates Module</link>.</para>


</section>
    <section id="itsm_locQualityRatingVoteThreshold">
    <title>locQualityRatingVoteThreshold</title>

    <para>Localization Quality Rating Vote Threshold - the
            <code>locQualityRatingVoteThreshold</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>locQualityRatingVoteThreshold</code> attribute. </para>
    <para> This attribute provides the minimum passing vote threshold for any Localization Quality
        Rating Votes that are in scope of the <link linkend="itsm_locQualityRatingVoteThreshold"><code>locQualityRatingVoteThreshold</code></link> attribute.</para>

    <para><emphasis>Value description:</emphasis> An Integer.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link>:</para>

            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_locQualityRatingVoteThreshold"><code>locQualityRatingVoteThreshold</code></link> attribute of its parent
                element (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>


            <para>The value of the <link linkend="itsm_locQualityRatingVoteThreshold"><code>locQualityRatingVoteThreshold</code></link> attribute of the
                innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>

        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>



    </itemizedlist>

    <warning>
        <para>The <link linkend="itsm_locQualityRatingVoteThreshold">locQualityRatingVoteThreshold</link> attribute is intended to be used in concert
            with the <link linkend="itsm_locQualityRatingProfileRef">locQualityRatingProfileRef</link>
            attribute that is to provide information on the applicable Quality Assessment Model.
            Without providing the quality assessment model information, the voting threshold integer
            is very likely to be useless and not interoperable.</para>
    </warning>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
        and <link linkend="match"><code>&lt;mtc:match></code></link>.</para>


    <para>See the <link linkend="lqrAnnotation">ITS Localization Quality Rating Annotation</link> for the normative usage description
        of this attribute when used inline; advanced Constraints follow from that normative usage
        description.</para>
    <para>See <link linkend="Localization_Quality_Rating_Structural"><code>Localization Quality Rating on
                Structural Elements</code></link> for advanced Constraints when used on structural
        elements (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, and <link linkend="unit"><code>&lt;unit></code></link>).</para>
    <para>See <link linkend="Localization_Quality_Rating_Matches"><code>Localization Quality Rating in
                Translation Candidates Module</code></link> for advanced Constraints when used
        within the <link linkend="candidates">Translation Candidates Module</link>.</para>


</section>


    

    <section id="itsm_mtConfidence">
    <title>mtConfidence</title>

    <para>Machine Translation Confidence - the <code>mtConfidence</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>mtConfidence</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Floating point number between 0 and 1.</para>
    <para>The number represents the self reported confidence of the application or service providing
        the <ulink url="http://www.w3.org/TR/its20/#mtconfidence">MT Confidence</ulink> metadata,
        the higher the better.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>When the attribute <link linkend="itsm_mtConfidence"><code>mtConfidence</code></link> is set, the element where it is set MUST be in
                the scope of an <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> attribute with
                the <link linkend="ITS20">[ITS]</link><ulink url="https://www.w3.org/TR/its20/#datacategories-overview">Data category
                    identifier</ulink> part of exactly one list value equal to the string
                    <code>mt-confidence</code>.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="MTConfidenceAnnotation">ITS MT Confidence Annotation</link> for the full
        normative usage description of this attribute. Other advanced Constraints follow from that
        normative usage description.</para>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Writers MUST use the <link linkend="matchQuality"><code>mtc:matchQuality</code></link> attribute to
                express the <link linkend="itsm_mtConfidence"><code>MTConfidence</code></link>
                attribute on an <link linkend="match"><code>&lt;mtc:match></code></link> element.</para>
            <itemizedlist>
                <listitem>
                    <para>The floating point number between 0 and 1 MUST be expressed as a decimal
                        number between 0.0 and 100.0 [%].</para>
                </listitem>
                <listitem>
                    <para>The <link linkend="matchQuality"><code>mtc:matchQuality</code></link> attribute
                        used by the Writer to express the <link linkend="itsm_mtConfidence"><code>MTConfidence</code></link> attribute MUST be in scope of an
                            <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link>
                        attribute with the <link linkend="ITS20">[ITS]</link><ulink url="https://www.w3.org/TR/its20/#datacategories-overview">Data category
                            identifier</ulink> part of exactly one list value equal to the string
                            <code>mt-confidence</code>.</para>
                </listitem>
            </itemizedlist>
        </listitem>
        <listitem>
            <para>Modifiers MAY use this <link linkend="itsm_mtConfidence"><code>MTConfidence</code></link> attribute, when populating the XLIFF Core
                    <link linkend="target"><code>&lt;target></code></link> elements with exact unmodified MT matches
                from <link linkend="match"><code>&lt;mtc:match></code></link> elements with the <link linkend="matchQuality"><code>mtc:matchQuality</code></link> attribute set and in scope of an
                    <link linkend="itsm_annotatorsRef"><code>annotatorsRef</code></link> attribute with
                the <link linkend="ITS20">[ITS]</link><ulink url="https://www.w3.org/TR/its20/#datacategories-overview">Data category
                    identifier</ulink> part of exactly one list value equal to the string
                    <code>mt-confidence</code>.</para>
            <itemizedlist>
                <listitem>
                    <para>The decimal number between 0.0 and 100.0 [%] MUST be expressed as a
                        floating point number between 0 and 1.</para>
                </listitem>
            </itemizedlist>
        </listitem>
    </itemizedlist>

</section>

    <section id="itsm_org">
    <title>org</title>
    
    <para>Organization - the <code>org</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>org</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify an organizational translation agent as per <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Organizational provenance information</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_org"><code>org</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> element with the <link linkend="itsm_org"><code>org</code></link> attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element (which can be undefined).</para>
            
        </listitem>
        
        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>
              
            
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>
            
            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_org"><code>org</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
            <para>The value of the <link linkend="itsm_org"><code>org</code></link> attribute
                        of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
        </listitem>
        
        </itemizedlist>
        </listitem>
        
        
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
            <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>
    
    
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative usage description of this attribute on inline elements. Advanced Constraints follow from that normative usage description.</para>
    
</section>
    <section id="itsm_orgRef">
    <title>orgRef</title>

    <para>Organization Reference - the <code>orgRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>orgRef</code>
        attribute.</para>


    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Organizational provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_orgRef"><code>orgRef</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_orgRef"><code>orgRef</code></link> attribute
                set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_orgRef"><code>orgRef</code></link>
                        attribute of its parent element (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_orgRef"><code>orgRef</code></link>
                        attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>

    <section id="itsm_person">
    <title>person</title>
    
    <para>Person - the <code>person</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>person</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify a human translation agent as per <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Human provenance information</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_person"><code>person</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> element with the <link linkend="itsm_person"><code>person</code></link> attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element (which can be undefined).</para>
            
        </listitem>
        
        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>
              
            
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>
            
            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_person"><code>person</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
            <para>The value of the <link linkend="itsm_person"><code>person</code></link> attribute
                        of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
        </listitem>
        
        </itemizedlist>
        </listitem>
        
        
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
            <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>
    
    
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative usage description of this attribute on inline elements. Advanced Constraints follow from that normative usage description.</para>
    
</section>
    <section id="itsm_personRef">
    <title>personRef</title>
    
    <para>Person Reference - the <code>personRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>personRef</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Human provenance information</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_personRef"><code>personRef</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> element with the <link linkend="itsm_personRef"><code>personRef</code></link> attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element (which can be undefined).</para>
            
        </listitem>
        
        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>
            
            
            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>
                    
                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_personRef"><code>personRef</code></link> attribute of its parent element
                        (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_personRef"><code>personRef</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>
                
            </itemizedlist>
        </listitem>
        
        
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, 
        <link linkend="mrk"><code>&lt;mrk></code></link>,
        <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>.
    </para>
    
    
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative usage description of this attribute on inline elements. Advanced Constraints follow from that normative usage description.</para>
    
</section>
    <section id="itsm_provenanceRecordsRef">
    <title>provenanceRecordsRef</title>

    <para>Provenance Records Standoff Reference - the <code>provenanceRecordsRef</code> attribute is
        the <link linkend="ITS20">[ITS]</link> defined
            <code>provenanceRecordsRef</code> attribute.</para>
    <para>This attribute references the collection of Provenance Records that pertain to the content
        span or structural element content from where the reference is declared.</para>

    <para><emphasis>Value description:</emphasis> IRI</para>

    <para><emphasis>Default value:</emphasis> undefined.</para>


    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
            <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>

    <para>See the <link linkend="provenanceAnnotation">ITS Localization Issue Annotation</link> for the
        normative usage description of this attribute inline. </para>
    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>Multiple <link linkend="itsm_provenanceRecordsRef">provenanceRecordsRef</link>
                attributes MAY reference the same <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element.</para>
        </listitem>
        <listitem>
            <para>In case the <link linkend="itsm_provenanceRecordsRef">provenanceRecordsRef</link>
                attribute is used on an <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link> element, <itemizedlist>
                    <listitem>
                        <para>The value of the <link linkend="itsm_provenanceRecordsRef">provenanceRecordsRef</link> attribute MUST be an IRI referencing a
                                <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element within the
                            innermost enclosing <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>element. </para>
                    </listitem>
                </itemizedlist></para>

        </listitem>

        <listitem>
            <para>In case the <link linkend="itsm_provenanceRecordsRef">provenanceRecordsRef</link>
                attribute is used on a <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, or <link linkend="unit"><code>&lt;unit></code></link> element, <itemizedlist>
                    <listitem>
                        <para>The value of the <link linkend="itsm_provenanceRecordsRef">provenanceRecordsRef</link> attribute MUST be an IRI referencing a
                                <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element within the
                            same element or its ancestor element. </para>
                    </listitem>
                </itemizedlist></para>

        </listitem>

    </itemizedlist>
    <itemizedlist>
        <title>Processing Requirements</title>
        <listitem>
            <para>Modifiers removing the last <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute referencing a <link linkend="itsm_provenanceRecords"><code>provenanceRecords</code></link> element MUST delete that <link linkend="itsm_provenanceRecords"><code>provenanceRecords</code></link> element.</para>
        </listitem>

    </itemizedlist>
</section>
    <section id="itsm_revOrg">
    <title>revOrg</title>

    <para>Organization - the <code>revOrg</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>revOrg</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify an organizational translation agent as per <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Organizational provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revOrg"><code>revOrg</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_revOrg"><code>revOrg</code></link> attribute
                set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_revOrg"><code>revOrg</code></link>
                        attribute of its parent element (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_revOrg"><code>revOrg</code></link>
                        attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>
    <section id="itsm_revOrgRef">
    <title>revOrgRef</title>
    
    <para>Revision Organization Reference - the <code>revOrgRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>revOrgRef</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Organizational revision provenance
            information</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revOrgRef"><code>revOrgRef</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> element with the <link linkend="itsm_revOrgRef"><code>revOrgRef</code></link> attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element (which can be undefined).</para>
            
        </listitem>
        
        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>
            
            
            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>
                    
                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_revOrgRef"><code>revOrgRef</code></link> attribute of its parent element
                        (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_revOrgRef"><code>revOrgRef</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>
                
            </itemizedlist>
        </listitem>
        
        
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
            <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>
    
    
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative usage description of this attribute on inline elements. Advanced Constraints follow from that normative usage description.</para>
    
</section>
    <section id="itsm_revPerson">
    <title>revPerson</title>

    <para>Revision Person - the <code>revPerson</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>revPerson</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify a human translation revision agent as per <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Human revision provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revPerson"><code>revPerson</code></link>
                attribute of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_revPerson"><code>revPerson</code></link>
                attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_revPerson"><code>revPerson</code></link> attribute of its parent element (which
                        can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_revPerson"><code>revPerson</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>
    <section id="itsm_revPersonRef">
    <title>revPersonRef</title>

    <para>Revision Person Reference - the <code>revPersonRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>revPersonRef</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Human revision provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revPersonRef"><code>revPersonRef</code></link> attribute of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_revPersonRef"><code>revPersonRef</code></link>
                attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_revPersonRef"><code>revPersonRef</code></link> attribute of its parent element
                        (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_revPersonRef"><code>revPersonRef</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>
    <section id="itsm_revTool">
    <title>revTool</title>
    
    <para>Revision Tool - the <code>revTool</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>revTool</code>
        attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify a software tool translation revision agent as per
            <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Tool-related revision
            provenance information</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revTool"><code>revTool</code></link> attribute
                of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link> element with the <link linkend="itsm_revTool"><code>revTool</code></link> attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link> element (which can be undefined).</para>
            
        </listitem>
        
        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>
              
            
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>
            
            <para>The value is undefined.</para>
        </listitem>
        <listitem>
            <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_revTool"><code>revTool</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
            <para>The value of the <link linkend="itsm_revTool"><code>revTool</code></link> attribute
                        of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
        </listitem>
        
        </itemizedlist>
        </listitem>
        
        
        
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, 
        <link linkend="mrk"><code>&lt;mrk></code></link>,
        <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>.
    </para>
    
    
    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative usage description of this attribute on inline elements. Advanced Constraints follow from that normative usage description.</para>
    
</section>
    <section id="itsm_revToolRef">
    <title>revToolRef</title>

    <para>Revision Tool Reference - the <code>revToolRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>revToolRef</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Tool-related revision provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_revToolRef"><code>revToolRef</code></link>
                attribute of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_revToolRef"><code>revToolRef</code></link>
                attribute set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_revToolRef"><code>revToolRef</code></link> attribute of its parent element (which
                        can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_revToolRef"><code>revToolRef</code></link> attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>

    <section id="itsm_taClassRef">
    <title>taClassRef</title>
    
    <para>Text Analysis Class Reference - the <code>taClassRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>taClassRef</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="http://www.w3.org/TR/its20/#textAnalysis-info-pieces">Entity type / concept class</ulink> information.</para>
    
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and
        <link linkend="sm"><code>&lt;sm></code></link>.</para>
    
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the normative usage description of this attribute. Advanced Constraints follow from that normative usage description.</para>
    
</section>

    <section id="itsm_taConfidence">
    <title>taConfidence</title>

    <para>Text Analysis Confidence - the <code>taConfidence</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>taConfidence</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Floating point number between 0 and 1.</para>
    <para>The number represents the self reported confidence of the application or service providing
        the <ulink url="http://www.w3.org/TR/its20/#textanalysis">Text Analysis</ulink> metadata,
        the higher the better.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>When the attribute <link linkend="itsm_taConfidence"><code>taConfidence</code></link> is set, the element where it is set MUST be in
                the scope of an <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute
                with the <link linkend="ITS20">[ITS]</link><ulink url="https://www.w3.org/TR/its20/#datacategories-overview">Data category
                    identifier</ulink> part of exactly one list value equal to the string
                    <code>text-analysis</code>.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the full normative usage description of this
        attribute. Other advanced Constraints follow from that normative usage description.</para>

</section>
    <section id="itsm_taIdent">
    <title>taIdent</title>

    <para>Text Analysis Concept Identifier - the <code>taIdent</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>taIdent</code>
        attribute.</para>


    <para><emphasis>Value description:</emphasis> Text string</para>
    <para>The text string is supposed to be a human or machine readable identifier of a concept
        within a collection of text analysis concept resources, in the sense of an <ulink url="http://www.w3.org/TR/its20/#textAnalysis-info-pieces">identifier of the concept in
            the collection</ulink>.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>When the attribute <link linkend="itsm_taIdent"><code>taIdent</code></link> is
                set, the <link linkend="itsm_taSource"><code>taSource</code></link> attribute MUST be set as well.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the full normative usage description of this
        attribute. Other advanced Constraints follow from that normative usage description.</para>

</section>
    <section id="itsm_taIdentRef">
    <title>taIdentRef</title>
    
    <para>Text Analysis Identifier - the <code>taIdentRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>taIdentRef</code> attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to reference an external resource for the disambiguated entity in the
        sense of <ulink url="http://www.w3.org/TR/its20/#textAnalysis-info-pieces">identifier of the text analysis target</ulink>.</para>
    
    <para><emphasis>Default value:</emphasis> undefined</para>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and
        <link linkend="sm"><code>&lt;sm></code></link>.</para>
    
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the normative usage description of this attribute. Advanced Constraints follow from that normative usage description.</para>
    
</section>

    <section id="itsm_taSource">
    <title>taSource</title>

    <para>Text Analysis Source - the <code>taSource</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>taSource</code>
        attribute.</para>


    <para><emphasis>Value description:</emphasis> Text string</para>
    <para>The text string is supposed to be a human or machine readable name of a collection of text
        analysis concept resources, in the sense of an <ulink url="http://www.w3.org/TR/its20/#textAnalysis-info-pieces"> identifier of the collection
            source</ulink>.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>When the attribute <link linkend="itsm_taSource"><code>taSource</code></link> is
                set, the <link linkend="itsm_taIdent"><code>taIdent</code></link> attribute MUST be set as well.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="taAnnotation">ITS Text Analysis Annotation</link> for the full normative usage description of this
        attribute. Other advanced Constraints follow from that normative usage description.</para>

</section>
    <section id="itsm_termConfidence">
    <title>termConfidence</title>

    <para>Terminology Confidence - the <code>termConfidence</code> attribute is the <link linkend="ITS20">[ITS]</link> defined
            <code>termConfidence</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Floating point number between 0 and 1.</para>
    <para>The number represents the self reported confidence of the application or service providing
        the <ulink url="http://www.w3.org/TR/its20/#terminology">Terminology</ulink> metadata, the
        higher the better.</para>

    <para><emphasis>Default value:</emphasis> undefined</para>



    <para><emphasis>Used in:</emphasis>
        <link linkend="mrk"><code>&lt;mrk></code></link>, and <link linkend="sm"><code>&lt;sm></code></link>.</para>

    <itemizedlist>
        <title>Constraints</title>
        <listitem>
            <para>When the attribute <link linkend="itsm_termConfidence"><code>termConfidence</code></link> is set, the element where it is set MUST be
                in the scope of an <link linkend="itsm_annotatorsRef"><code>its:annotatorsRef</code></link> attribute
                with the <link linkend="ITS20">[ITS]</link><ulink url="https://www.w3.org/TR/its20/#datacategories-overview">Data category
                    identifier</ulink> part of exactly one list value equal to the string
                    <code>terminology</code>.</para>
        </listitem>
    </itemizedlist>
    <para>See the <link linkend="nonTermAnnotation">ITS Terminology Annotation</link> for the full normative
        usage description of this attribute. Other advanced Constraints follow from that normative
        usage description.</para>

</section>

    <section id="itsm_tool">
    <title>tool</title>

    <para>Tool - the <code>tool</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>tool</code> attribute.</para>


    <para><emphasis>Value description:</emphasis> Text</para>
    <para>The text string is supposed to identify a software tool translation agent as per <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Tool-related provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_tool"><code>tool</code></link> attribute of
                the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_tool"><code>tool</code></link> attribute set
                within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_tool"><code>tool</code></link>
                        attribute of its parent element (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_tool"><code>tool</code></link>
                        attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>
    <section id="itsm_toolRef">
    <title>toolRef</title>

    <para>Tool Reference - the <code>toolRef</code> attribute is the <link linkend="ITS20">[ITS]</link> defined <code>toolRef</code>
        attribute.</para>


    <para><emphasis>Value description:</emphasis> IRI</para>
    <para>The IRI is supposed to resolve as human or machine readable <ulink url="https://www.w3.org/TR/its20/#provenanceDefs">Tool-related provenance
            information</ulink>.</para>

    <para><emphasis>Default value:</emphasis> default values for this attribute depend on the
        element in which it is used:</para>

    <itemizedlist>
        <listitem>
            <para>When used in any admissible element WITH the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The value of the <link linkend="itsm_toolRef"><code>toolRef</code></link>
                attribute of the first <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>
                element with the <link linkend="itsm_toolRef"><code>toolRef</code></link> attribute
                set within the referenced <link linkend="itsm_provenanceRecords"><code>&lt;provenanceRecords></code></link>
                element (which can be undefined).</para>

        </listitem>

        <listitem>
            <para>When used in any admissible element WITHOUT the <link linkend="itsm_provenanceRecordsRef"><code>provenanceRecordsRef</code></link> attribute set:</para>
            <para>The default values depending on the element in which it is used:</para>


            <itemizedlist>
                <listitem>
                    <para>When used in <link linkend="file"><code>&lt;file></code></link> or <remark><code>&lt;its:provencanceRecord></code></remark>:</para>

                    <para>The value is undefined.</para>
                </listitem>
                <listitem>
                    <para>When used in any other admissible structural element (<link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
                    <para>The value of the <link linkend="itsm_toolRef"><code>toolRef</code></link>
                        attribute of its parent element (which can be undefined).</para>
                </listitem>
                <listitem>
                    <para>When used in annotations markers <link linkend="mrk"><code>&lt;mrk></code></link> or <link linkend="sm"><code>&lt;sm></code></link>:</para>
                    <para>The value of the <link linkend="itsm_toolRef"><code>toolRef</code></link>
                        attribute of the innermost <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, or <remark><code>&lt;ctr:revision></code></remark>
                        element, in which the marker in question is located (which can be
                        undefined).</para>
                </listitem>

            </itemizedlist>
        </listitem>





    </itemizedlist>



    <para><emphasis>Used in:</emphasis>
        <link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>,
            <link linkend="sm"><code>&lt;sm></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;provenanceRecord></code></link>, <link linkend="match"><code>&lt;mtc:match></code></link>, and <remark><code>&lt;ctr:revision></code></remark>. </para>


    <para>See the <link linkend="provenanceAnnotation">ITS Provenance Annotation</link> for the normative
        usage description of this attribute on inline elements. Advanced Constraints follow from
        that normative usage description.</para>

</section>

    <section id="itsm_version">
    <title>version</title>
    
    <para>ITS Version - the <code>version</code> attribute is the <link linkend="ITS20">[ITS]</link>
        <ulink url="https://www.w3.org/TR/its20/#its-version-attribute"><code>version</code></ulink>
        attribute.</para>
    
    
    <para><emphasis>Value description:</emphasis> The value is a text string restricted to the string <code>2.0</code>.</para>
    
    <para><emphasis>Default value:</emphasis> default values for this attribute
        depend on the element in which it is used:</para>
    
    <itemizedlist>
        <listitem>
            <para>When used in <link linkend="xliff"><code>&lt;xliff></code></link>:</para>
            <para>The value is undefined.</para>
        </listitem>
        
        <listitem>
            <para>When used in any other admissible XLIFF Core structural element (<link linkend="file"><code>&lt;file></code></link>, <link linkend="group"><code>&lt;group></code></link> or <link linkend="unit"><code>&lt;unit></code></link>):</para>
            <para>The value of the <link linkend="itsm_version"><code>version</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        <listitem>
            <para>When used in annotations markers
                <link linkend="mrk"><code>&lt;mrk></code></link> or
                <link linkend="sm"><code>&lt;sm></code></link>:</para>
            
            
            <para>The value of the <link linkend="itsm_version"><code>version</code></link> attribute of the innermost
                <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="unit"><code>&lt;unit></code></link>, or <link linkend="match"><code>&lt;mtc:match></code></link> element, element, in which the marker
                in question is located (which can be undefined). </para>
            
        </listitem>
        <listitem>
            <para> When used in the <link linkend="match"><code>&lt;mtc:match></code></link> element:</para>
            <para>The value is undefined.</para>
        </listitem>
        
        <listitem>
            <para> When used in any of the <link linkend="ITS_Module_Elements">ITS Module defined elements</link>:</para>
            <para>The value of the <link linkend="itsm_version"><code>version</code></link> attribute of its parent element
                (which can be undefined).</para>
        </listitem>
        
        
    </itemizedlist>
    
    
    
    <para><emphasis>Used in:</emphasis>
        <link linkend="xliff"><code>&lt;xliff></code></link>, 
        <link linkend="file"><code>&lt;file></code></link>
        <link linkend="group"><code>&lt;group></code></link>
        <link linkend="unit"><code>&lt;unit></code></link>, <link linkend="mrk"><code>&lt;mrk></code></link>, <link linkend="sm"><code>&lt;sm></code></link>,
        <link linkend="match"><code>&lt;mtc:match></code></link>, <link linkend="itsm_locQualityIssue"><code>&lt;its:locQualityIssue></code></link>, <link linkend="itsm_locQualityIssues"><code>&lt;its:locQualityIssues></code></link>, <link linkend="itsm_provenanceRecord"><code>&lt;its:provenanceRecord></code></link>, and <link linkend="itsm_provenanceRecords"><code>&lt;its:provenanceRecords></code></link>.</para>
    
    
    
</section>
    
  </section>
  <section>
    <title>Example file</title>
    <example>
      <title>ITS Data Categories Example</title>
      <para>The following example file includes markup related to several ITS 2.0 data
        categories.</para>
      <programlisting format="linespecific">&lt;!-- xliff-its-example.xlf: Example file that shows several features of
using ITS 2.0 as part of XLIFF 2.2
Version: 0.2.1 
Date: 04 April 2017 -->

&lt;xliff version="2.2" xmlns="urn:oasis:names:tc:xliff:document:2.2"
    srcLang="en" trgLang="fr"
    xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"
    xmlns:itsm="urn:oasis:names:tc:xliff:itsm:2.1">
  &lt;!-- Each unit in the file element shows one ITS data category. -->
  &lt;!-- The its:annotatorsRef attribute inherits through the whole file
      but is only relevant for some elements-->
  &lt;file id="f1" 
        its:annotatorsRef="allowed-characters|http://example.com/myAllowedCharactersAnnotationTool
        terminology|http://example.com/mytermTool
        localization-quality-issue|http://example.com/anotherQualityChecker">
    &lt;unit id="u1">
      &lt;its:locQualityIssues xml:id="lqi1">
        &lt;its:locQualityIssue locQualityIssueType="misspelling"
            locQualityIssueComment="'c'es' is unknown. Could be 'c'est'"
            locQualityIssueSeverity="50"/>
        &lt;its:locQualityIssue locQualityIssueType="grammar"
            locQualityIssueComment="Sentence is not capitalized"
            locQualityIssueSeverity="30"/>
      &lt;/its:locQualityIssues>
      &lt;its:provenanceRecords xml:id="prov1">
        &lt;its:provenanceRecord revPerson="Franta Kocourek"
            revOrg="Kocourkov s.r.o."/>
        &lt;its:provenanceRecord person="Honza Novák"
            org="Překlady Novák, sro" tool="GreatCATTool"/>
        &lt;its:provenanceRecord tool="Microsoft Hub"/>
      &lt;/its:provenanceRecords>
      &lt;its:provenanceRecords xml:id="prov2">
        &lt;its:provenanceRecord revPerson="Květoň Zřídkaveselý"
            revOrg="CoolCopy"/>
        &lt;its:provenanceRecord revTool="ACME QA Checker"
            revOrg="CoolCopy"/>
        &lt;its:provenanceRecord revPerson="Franta Kocourek"
            revOrg="Kocourkov s.r.o."/>
        &lt;its:provenanceRecord person="Honza Novák"
            org="Preklady Novák, sro" tool="GreatCATTool"/>
        &lt;its:provenanceRecord tool="Microsoft Hub"/>
      &lt;/its:provenanceRecords>
      &lt;notes>
        &lt;note id="1" priority="1">Check with terminology engineer
            &lt;/note>
      &lt;/notes>

      &lt;!-- Example for allowed characters data category -->

      &lt;segment>
        &lt;source>
          &lt;mrk id="m1" type="its:generic"
              its:allowedCharacters="[a-ZA-Z]">Text&lt;/mrk>
        &lt;/source>
      &lt;/segment>

      &lt;!-- Example for domain data category -->

      &lt;segment>
        &lt;source>Text in the domain domain1&lt;/source>
      &lt;/segment>

      &lt;!-- Example for locale filter data category -->

      &lt;segment>
        &lt;source>Text &lt;pc id="2">&lt;mrk id="m2" type="its:generic"
            its:localeFilterList="fr" its:localeFilterType="exclude">
            text&lt;/mrk>&lt;/pc>&lt;/source>
      &lt;/segment>

      &lt;!-- Example for localization quality issue data category. The
          standoff information in its:locQualityIssues has the
          annotatorsRef information from this element: &lt;mrk id="m1"
          type="its:generic" its:locQualityIssuesRef="#its=lqi1"
          its:annotatorsRef="localization-quality-issue|http://example.com/myQualityChecker">.
      -->

      &lt;segment>
        &lt;source>This is the content&lt;/source>
        &lt;target>
          &lt;mrk id="m3" type="its:generic" its:locQualityIssuesRef="#its=lqi1"
           its:annotatorsRef="localization-quality-issue|http://qa.com/Checker">
             c'esle contenu&lt;/mrk>
        &lt;/target>
      &lt;/segment>

      &lt;!-- Example for localization quality rating data category -->

      &lt;segment>
        &lt;source>Some text and a term&lt;/source>
        &lt;target>Du texte et un &lt;mrk id="m4" type="its:generic"
            its:locQualityRatingVote="37"
            its:locQualityRatingVoteThreshold="15"
            its:locQualityRatingProfileRef="http://example.org/qaModel
                /v13">terme&lt;/mrk>&lt;/target>
      &lt;/segment>

      &lt;!-- Example for text analytics data category -->

      &lt;segment>
        &lt;source>
          &lt;mrk id="m5" type="its:generic"
              its:taClassRef="http://nerd.eurecom.fr/ontology#Place"
              its:taIdentRef="http://dbpedia.org/resource/Arizona">
              Arizona&lt;/mrk>
        &lt;/source>
      &lt;/segment>

      &lt;!-- Example for terminology data category, expressed via native 
           XLIFF markup -->

      &lt;segment>
        &lt;source>This is a &lt;mrk id="m6" type="comment" ref="#n=1">
            motherboard&lt;/mrk>.&lt;/source>
      &lt;/segment>

      &lt;!-- Example for terminology data category, expressed via native XLIFF 
          markup, but with its:termConfidence attribute -->

      &lt;segment>
        &lt;source>Text with a &lt;pc id="3">&lt;mrk id="m7" type="term"
            ref="http://en.wikipedia.org/wiki/Terminology"
            its:termConfidence="0.9">term&lt;/mrk>&lt;/pc>.&lt;/source>
      &lt;/segment>

      &lt;!-- Example for language information data category -->

      &lt;segment>
        &lt;source>Span of text &lt;pc id="4">&lt;mrk id="m8" itsm:lang="fr"
            type="its:generic">en français&lt;/mrk>&lt;/pc>.&lt;/source>
      &lt;/segment>

      &lt;!-- Example for provenance information data category -->

      &lt;segment>
        &lt;source>Economy has been growing in 2016.&lt;/source>
        &lt;target>
          &lt;mrk id="m9" type="its:generic"
              its:provenanceRecordsRef="#its=prov1">Hospodářství v průbehu
              roku 2016 rostlo. &lt;/mrk>
        &lt;/target>
      &lt;/segment>
      &lt;segment>
        &lt;source>Prognosis for 2017 is unclear.&lt;/source>
        &lt;target>
           &lt;mrk id="m10" type="its:generic"
               its:provenanceRecordsRef="#its=prov2">Předpověď očekávaného růstu
               pro rok 2017 je nejasná. &lt;/mrk>
        &lt;/target>
      &lt;/segment>

      &lt;!-- Example for MT confidence data category -->

      &lt;segment>
        &lt;source>
          &lt;mrk id="m11" type="its:generic" its:mtConfidence="0.8982"
              its:annotatorsRef="mt-confidence|MTServices-XYZ">Some
              Machine Translated text.&lt;/mrk>
        &lt;/source>
      &lt;/segment>

      &lt;!-- Example for Translate data category, expressed via native XLIFF markup -->

      &lt;segment>
        &lt;source>&lt;mrk translate="no" id="m12">Non-translatable text
            &lt;/mrk>&lt;/source>
      &lt;/segment>

    &lt;/unit>
  &lt;/file>
&lt;/xliff>
</programlisting>
    </example>
  </section>

</section>
    
    <section id="plural_gender_select_module">
  <title>Plural, Gender, and Select Module</title>

  <section>
    <title>Introduction</title>

    <para>This module provides an XLIFF capability to store information needed to represent and
      process messages with variants. This includes plural &amp; gender variants, and a generic
      select.</para>

    <para>We have all seen messages like this: <emphasis>“You have 12 day(s).”</emphasis></para>

    <para>This was a common way to deal with plural in English, but didn’t sound natural in English,
      and didn’t translate well in other languages.</para>

    <para>Sometimes developers tried to make things more natural with some help from code:</para>

    <programlisting format="linespecific">if (count == 1)
    message = "You have {count} day"
else
    message = "You have {count} days"</programlisting>

    <para>However, this does not work for all languages. The plural rules are different between
      locales. French uses singular for zero and one (<emphasis>“0 jour”</emphasis>, <emphasis>“1
        jour”</emphasis>, <emphasis>“2 jours”</emphasis>), most Slavic languages have four plural
      forms (Czech: <emphasis>“1 den”</emphasis>, <emphasis>“2 dny”</emphasis>, <emphasis>“1,5
        dne”</emphasis>, <emphasis>“5 dní”</emphasis>), Chinese has no plurals at all, etc.</para>

    <para>This sounds very unusual to many English speakers, but it is in fact very similar to the
      way English handles ordinals: <emphasis>“21<superscript>st</superscript> place”</emphasis>,
          <emphasis>“32<superscript>nd</superscript> place”</emphasis>,
          <emphasis>“23<superscript>rd</superscript> place”</emphasis>,
          <emphasis>“25<superscript>th</superscript> place”</emphasis>.</para>

    <para>The <link linkend="biblio_cldr_plural_spec">[CLDR Plural Spec]</link> project collected the plural
      rules (both cardinal and ordinal) for many languages.</para>

    <para>Many technologies and internationalization libraries already support such advanced plural
      rules, including: <ulink url="https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html">gettext</ulink>, <ulink url="https://developer.apple.com/documentation/xcode/localizing-strings-that-contain-plurals">macOS and iOS</ulink>, <ulink url="https://developer.android.com/guide/topics/resources/string-resource#Plurals">Android</ulink>, <ulink url="https://unicode-org.github.io/icu/userguide/format_parse/messages/#complex-argument-types">ICU (International Components for Unicode)</ulink> and <ulink url="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules">ECMAScript Intl</ulink>.</para>

    <para>The main challenge with these kinds of messages for localization (and XLIFF) is how to map
      between the plural variants, when the source and target language don’t have the same number of
      variants.</para>

    <para>When the two English forms (<emphasis>“{count} day”</emphasis> / <emphasis>“{count}
        days”</emphasis>) to four Czech forms (<emphasis>“{count} den”</emphasis>, <emphasis>“{count}
        dny”</emphasis>, <emphasis>“{count} dne”</emphasis>, <emphasis>“{count} dní”</emphasis>? Or
      Arabic (5 forms), or Chinese one form?</para>

    <para>This kind of n-to-m mapping is difficult, because many localization systems are designed
      with a one-to-one mapping in mind (one string in the source language results in one string in
      the target language).</para>

    <para>Gender represents a similar challenge (when translating <emphasis>“red {item}”</emphasis>
      the form of “red” should change depending on the gender (and number, and case) of the
      item.</para>

    <para>Combinations of these two concepts are even more challenging:</para>

    <itemizedlist>
      <listitem>
        <para><emphasis>“{host_name} invited {count} guest to <emphasis role="bold">her</emphasis>
            party”</emphasis></para>
      </listitem>

      <listitem>
        <para><emphasis>“{host_name} invited {count} guest to <emphasis role="bold">his</emphasis>
            party”</emphasis></para>
      </listitem>

      <listitem>
        <para><emphasis>“{host_name} invited {count} guest to <emphasis role="bold">their</emphasis>
            party”</emphasis></para>
      </listitem>

      <listitem>
        <para><emphasis>“{host_name} invited {count} guest<emphasis role="bold">s</emphasis> to
              <emphasis role="bold">her</emphasis> party”</emphasis></para>
      </listitem>

      <listitem>
        <para><emphasis>“{host_name} invited {count} guest<emphasis role="bold">s</emphasis> to
              <emphasis role="bold">his</emphasis> party”</emphasis></para>
      </listitem>

      <listitem>
        <para><emphasis>“{host_name} invited {count} guest<emphasis role="bold">s</emphasis> to
              <emphasis role="bold">their</emphasis> party”</emphasis></para>
      </listitem>
    </itemizedlist>

    <para>This XLIFF extension is designed to represent such concepts, already supported by several
      technologies.</para>
  </section>

  <section>
    <title>Module Namespace and Validation Artifacts</title>

    <para>The namespace for the Plural, Gender, and Select module is:
        <code>urn:oasis:names:tc:xliff:pgs:1.0</code>.</para>

    <para>XML Schema for this module is available at <ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/plural_gender_select.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/plural_gender_select.xsd</ulink>.</para>
  </section>

  <section>
    <title>Module Fragment Identification Prefix</title>

    <para>The fragment identification prefix for the Plural, Gender, and Select module is:
        <code>pgs</code>.</para>
  </section>

  <section>
    <title>Module Elements</title>

    <para>None.</para>
  </section>

  <section>
    <title>Module Attributes</title>

    <para>The attributes defined in the Plural, Gender, and Select module are: <link linkend="pgs_switch"><code>switch</code></link>, and <link linkend="pgs_case"><code>case</code></link>.</para>

    <section id="pgs_switch">
  <title>switch</title>

  <para>Indicates the variable(s) used to select the message variant, and the
  kind of “selector” that will be used.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para>The text contains a space-separated list of items, each item
  containing a selector keyword, followed by colon (<code>:</code>), and followed by
  the variable name used for selection.</para>

  <para><emphasis>List of allowed selector keywords:</emphasis>
  <code>plural</code>, <code>ordinal</code>, <code>gender</code>,
  <code>select</code>. No other selector keywords are allowed.</para>

  <para><emphasis>Used in:</emphasis> <link linkend="unit"><code>&lt;unit></code></link>.</para>

  <para><emphasis>Example:</emphasis> <programlisting format="linespecific">&lt;unit id="tu1" <emphasis role="bold">pgs:switch="plural:count gender:host_gender"</emphasis>>
...
&lt;/unit></programlisting></para>
</section>

    <section id="pgs_case">
  <title>case</title>

  <para>Indicates the value(s) that the <code>switch</code> variable(s) should have in order to
    select the message variant “annotated” with this element.</para>

  <para><emphasis>Value description:</emphasis> Text.</para>

  <para>The text contains a space-separated list of values forming a “tuple” used for
    selection.</para>

  <para><emphasis>Used in:</emphasis>
    <link linkend="segment"><code>&lt;segment></code></link>.</para>

  <para><emphasis>Example:</emphasis>
    <programlisting format="linespecific">&lt;unit id="tu1" <emphasis role="bold">pgs:switch="plural:count gender:host_gender"</emphasis>>
   &lt;segment id="seg1" <emphasis role="bold">pgs:case="1 feminine"</emphasis>>...&lt;/segment>
&lt;/unit></programlisting></para>

  <para><emphasis>Constraints:</emphasis> the number of space-separated items (variables) in the
      <code>switch</code> attribute of the unit MUST match the number of space-separated values in
    the <code>case</code> attribute.</para>

  <para>Also, each value in case should also match the type of selector in the <code>switch</code>
    attribute.</para>

  <para><emphasis>Valid matching:</emphasis>
    <itemizedlist>
      <listitem>
        <para><code>plural</code> and <code>ordinal</code>: a <emphasis>numeric_value</emphasis> or
          a <emphasis>plural_keyword</emphasis>
          <itemizedlist>
            <listitem>
              <para><emphasis>numeric_value</emphasis>: integer (0, 7, 365) or decimal (3.14)
                value</para>
            </listitem>

            <listitem>
              <para><emphasis>plural_keyword</emphasis>: <code>zero</code>, <code>one</code>,
                  <code>two</code>, <code>few</code>, <code>many</code>, <code>other</code></para>
            </listitem>
          </itemizedlist></para>
      </listitem>

      <listitem>
        <para><code>gender</code>: <code>feminine</code>, <code>masculine</code>,
            <code>neuter</code>, <code>other</code>, anything else (see <emphasis>"More than three
            grammatical genders"</emphasis> section at <link linkend="biblio_wikipedia_genders">[Grammatical Genders]</link>)</para>
      </listitem>

      <listitem>
        <para><code>select</code>: the values can be anything, or the <code>other</code>
          keyword</para>
      </listitem>
    </itemizedlist></para>
</section>
  </section>

  <section>
    <title>Examples</title>

    <section>
      <title>Plural</title>

      <para><link linkend="biblio_icu_mf">[ICU          MessageFormat]</link> example: <programlisting format="linespecific">{file_count, plural,
       =0 {You deleted no file.}
       =1 {You deleted one file.}
    other {You deleted # files.}
}</programlisting></para>

      <para>XLIFF:
        <programlisting format="linespecific">&lt;unit id="tu1" <emphasis role="bold">pgs:switch="plural:file_count"</emphasis>>
  &lt;segment id="seg1" <emphasis role="bold">pgs:case="0"</emphasis>>
    &lt;source>You deleted no file.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg2" <emphasis role="bold">pgs:case="1"</emphasis>>
    &lt;source>You deleted one file.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg3" <emphasis role="bold">pgs:case="other"</emphasis>>
    &lt;source>You deleted &lt;ph id="1" disp="file_count"/> files.&lt;/source>
  &lt;/segment>
&lt;/unit></programlisting></para>
    </section>

    <section>
      <title>Ordinal</title>

      <para><programlisting format="linespecific">&lt;unit id="tu1" <emphasis role="bold">pgs:switch="ordinal:place"</emphasis>>
  &lt;!-- For English ordinals "one" is NOT the same as "1" -->
  &lt;segment id="seg1" <emphasis role="bold">pgs:case="one"</emphasis>>
    &lt;source>You won &lt;ph id="1" disp="place"/>st place&lt;/source>
  &lt;/segment>
  &lt;segment id="seg2" <emphasis role="bold">pgs:case="two"</emphasis>>
    &lt;source>You won &lt;ph id="1" disp="place"/>nd place&lt;/source>
  &lt;/segment>
  &lt;segment id="seg3" <emphasis role="bold">pgs:case="few"</emphasis>>
    &lt;source>You won &lt;ph id="1" disp="place"/>rd place&lt;/source>
  &lt;/segment>
  &lt;segment id="seg4" <emphasis role="bold">pgs:case="other"</emphasis>>
    &lt;source>You won &lt;ph id="1" disp="place"/>th place&lt;/source>
  &lt;/segment>
&lt;/unit></programlisting></para>
    </section>

    <section>
      <title>Gender</title>

      <para><programlisting format="linespecific">&lt;unit id="seg1" <emphasis role="bold">pgs:switch="gender:host_gender"</emphasis>>
  &lt;segment id="seg1" <emphasis role="bold">pgs:case="feminine"</emphasis>>
    &lt;source>You are invited to her party&lt;/source>
  &lt;/segment>
  &lt;segment id="seg2" <emphasis role="bold">pgs:case="masculine"</emphasis>>
    &lt;source>You are invited to his party&lt;/source>
  &lt;/segment>
  &lt;segment id="seg3" <emphasis role="bold">pgs:case="other"</emphasis>>
    &lt;source>You are invited to their party&lt;/source>
  &lt;/segment>
&lt;/unit></programlisting></para>

      <para>Gender also allows for cases other than <code>feminine</code> / <code>masculine</code> /
          <code>neuter</code> / <code>other</code> in order to support languages with more than 3
        genders (see <emphasis>"More than three grammatical genders"</emphasis> section at <link linkend="biblio_wikipedia_genders">[Grammatical Genders]</link>).</para>
    </section>

    <section>
      <title>Combinations</title>

      <para><programlisting format="linespecific">&lt;unit id="seg1" <emphasis role="bold">pgs:switch="gender:host_gender plural:guest_count"</emphasis>>
  &lt;segment id="seg1" <emphasis role="bold">pgs:case="feminine 0"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> did not invite
        anyone to her party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg2" <emphasis role="bold">pgs:case="feminine 1"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        one guest to her party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg3" <emphasis role="bold">pgs:case="feminine other"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        &lt;ph id="2" disp="guest_count"/> guests to her party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg4" <emphasis role="bold">pgs:case="masculine 0"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> did not invite
        anyone to his party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg5" <emphasis role="bold">pgs:case="masculine 1"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        one guest to his party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg6" <emphasis role="bold">pgs:case="masculine other"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        &lt;ph id="2" disp="guest_count"/> guests to his party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg7" <emphasis role="bold">pgs:case="other 0"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> did not invite
        anyone to their party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg8" <emphasis role="bold">pgs:case="other 1"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        one guest to their party.&lt;/source>
  &lt;/segment>
  &lt;segment id="seg9" <emphasis role="bold">pgs:case="other other"</emphasis>>
    &lt;source>&lt;ph id="1" disp="host_name"/> invited
        &lt;ph id="2" disp="guest_count"/> guests to their party.&lt;/source>
  &lt;/segment>
&lt;/unit></programlisting></para>
    </section>
  </section>

  <section>
    <title>Recommended practices</title>

    <para>There are a few things that an implementer can do to help applications that are not aware
      of this module.</para>

    <section>
      <title>Generate “translator-friendly” identifiers</title>

      <para>This can be done by combining a “normal” message ID with information from the
        case.</para>

      <para>Using the short representation (and <code>#</code> for identifiers):
        <programlisting format="linespecific">segment "$host_name invited @subFlow(tu2 tu3)
         to @subFlow(tu4 tu5 tu6) party." <emphasis role="bold">#msgid</emphasis>
unit <emphasis role="bold">#g_msgid_plural_gender</emphasis> <emphasis>@switch(plural:guest_count gender:host_gender)</emphasis>
  unit <emphasis role="bold">#g_msgid_plural_guest_count</emphasis> <emphasis>@switch(plural:guest_count)</emphasis>
    segment "one guest"           <emphasis role="bold">#msgid_guest_count_1</emphasis>     <emphasis>@case(1)</emphasis>
    segment "$guest_count guests" <emphasis role="bold">#msgid_guest_count_other</emphasis> <emphasis>@case(other)</emphasis>
  unit <emphasis role="bold">#g_msgid_gender_host_gender</emphasis> <emphasis>@switch(gender:host_gender)</emphasis>
    segment: "her"        <emphasis role="bold">#msgid_host_gender_feminine</emphasis>  <emphasis>@case(feminine)</emphasis>
    segment: "his"        <emphasis role="bold">#msgid_host_gender_masculine</emphasis> <emphasis>@case(masculine)</emphasis>
    segment: "their"      <emphasis role="bold">#msgid_host_gender_other</emphasis>     <emphasis>@case(other)</emphasis></programlisting></para>

      <para>So if the older system shows the identifiers to the translators then they can get an
        idea of what is going on.</para>

      <para>Also, using a consistent way of generating identifiers one can improve the
        leverage.</para>

      <para>Translation Memories that give priority to a text-id match vs text-only match will be
        able to properly leverage even if the English string is the same.</para>

      <para>For example:
        <programlisting format="linespecific">&lt;unit id="<emphasis role="bold">tu1</emphasis>" pgs:switch="plural:file_count">
  &lt;segment id="<emphasis role="bold">tu1_file_count_1</emphasis>" pgs:case="1">
    &lt;source>You deleted one file.&lt;/source>
    &lt;target xml:lang="ro">Ați șters un fișier.&lt;/target>
  &lt;/segment>
  &lt;segment id="<emphasis role="bold">tu1_file_count_few</emphasis>" pgs:case="few">
    &lt;source>You deleted &lt;ph id="1" disp="file_count"/> files.&lt;/source>
    &lt;target xml:lang="ro">Ați șters
        &lt;ph id="1" disp="file_count"/> fișiere.&lt;/target>
  &lt;/segment>
  &lt;segment id="<emphasis role="bold">tu1_file_count_other</emphasis>" pgs:case="other">
    &lt;source>You deleted &lt;ph id="1" disp="file_count"/> files.&lt;/source>
    &lt;target xml:lang="ro">Ați șters
        &lt;ph id="1" disp="file_count"/> de fișiere.&lt;/target>
  &lt;/segment>
&lt;/unit></programlisting></para>
    </section>

    <section>
      <title>Keep the same order of the selectors</title>

      <para>By keeping the generated text segments in the same order we can improve Translation
        Memory leveraging that relies on context (the text before and after the current
        segment).</para>

      <para>Proposed order: <itemizedlist>
          <listitem>
            <para>Plural, ordinal <itemizedlist>
                <listitem>
                  <para>exact selectors firsts, sorted by numerical value (<code>=0</code>,
                      <code>=1</code>, <code>=2</code>, …)</para>
                </listitem>

                <listitem>
                  <para>the predefined keywords in this order: <code>zero</code>, <code>one</code>,
                      <code>two</code>, <code>few</code>, <code>many</code>,
                    <code>other</code></para>
                </listitem>
              </itemizedlist></para>
          </listitem>

          <listitem>
            <para>Gender <itemizedlist>
                <listitem>
                  <para>the “free form” selectors in alpha order</para>
                </listitem>

                <listitem>
                  <para>followed by the predefined keywords in this order: <code>feminine</code>,
                      <code>masculine</code>, <code>neuter</code>, <code>other</code></para>
                </listitem>
              </itemizedlist></para>
          </listitem>

          <listitem>
            <para>Selection <itemizedlist>
                <listitem>
                  <para>the selectors in alpha order</para>
                </listitem>
              </itemizedlist></para>
          </listitem>
        </itemizedlist></para>

      <para>Keeping a consistent order (the one suggested above or a different one) will improve the
        leveraging of Translation Memory tools that rely on context (what is before and after the
        segment) to improve the result.</para>
    </section>

    <section>
      <title>Generate “translator-friendly” notes for plurals</title>

      <para>Native speakers intuitively know what the correct plural form is.</para>

      <para>But will have a difficult time explaining what the rules are. And even fewer will be
        able to map those rules to the predefined plural keywords (<code>zero</code>,
          <code>one</code>, <code>two</code>, <code>few</code>, <code>many</code>).</para>

      <para>So generating a note can help a lot.</para>

      <para>The notes refer to the segments, so they need a <code>ref</code> attribute pointing to
        the segment. And since they contain examples for the target language, not the source, they
        also need an <code>appliesTo="target"</code> attribute.</para>

      <para>Romanian example:
        <programlisting format="linespecific">&lt;unit id="<emphasis role="bold">tu1</emphasis>" pgs:switch="plural:file_count">
  <emphasis role="bold">&lt;notes>
    &lt;note appliesTo="target" ref="tu1_file_count_1"
        category="plural_examples">1&lt;/note>
    &lt;note appliesTo="target" ref="tu1_file_count_few"
        category="plural_examples">0, 2~16, 102, 1002&lt;/note>
    &lt;note appliesTo="target" ref="tu1_file_count_other"
        category="plural_examples">20~35, 100, 1000, 10000, 100000&lt;/note>
  &lt;/notes></emphasis>
  &lt;segment id="<emphasis role="bold">tu1_file_count_1</emphasis>" pgs:case="1">
    &lt;source>You deleted one file.&lt;/source>
    &lt;target xml:lang="ro">Ați șters un fișier.&lt;/target>
  &lt;/segment>
  &lt;segment id="<emphasis role="bold">tu1_file_count_few</emphasis>" pgs:case="few">
    &lt;source>You deleted &lt;ph id="1" disp="file_count"/> files.&lt;/source>
    &lt;target xml:lang="ro">Ați șters
        &lt;ph id="1" disp="file_count"/> fișiere.&lt;/target>
  &lt;/segment>
  &lt;segment id="<emphasis role="bold">tu1_file_count_other</emphasis>" pgs:case="other">
    &lt;source>You deleted &lt;ph id="1" disp="file_count"/> files.&lt;/source>
    &lt;target xml:lang="ro">Ați șters
        &lt;ph id="1" disp="file_count"/> de fișiere.&lt;/target>
  &lt;/segment>
&lt;/unit></programlisting></para>

      <para>The examples are available from CLDR, in XML formal, or using the ICU library.</para>

      <para>A browser friendly table with all the supported rules for all languages, including
        examples, is available at <link linkend="biblio_cldr_plural_lang">[CLDR Plural Lang]</link>.</para>

      <para><emphasis role="bold">Warning:</emphasis> these examples are language dependent. This
        means one cannot just send a single XLIFF to be translated into several languages (see next
        item).</para>
    </section>

    <section>
      <title>Generate separate localization packages for each language</title>

      <para>Depending on the degree of automation this might mean just a small change in a
        configuration, or a lot of manual work.</para>

      <para>Some companies already use workflows doing this because they pre-populate the
          <code>&lt;target></code>, pre-leverage, include translation candidates or glossary
        info, partial Translation Memories, etc.</para>

      <para>Having such a workflow means that the tools can add the missing plural cases depending
        on the target language.</para>

      <para>So even if the source language only has <code>=1</code> / <code>other</code> cases, the
        tooling can add the missing ones (<code>few</code> for Romanian, <code>one</code> /
          <code>few</code> / <code>many</code> for Russian, etc.)</para>

      <para>The list of selectors needed for each locale are available from CLDR or ICU APIs.</para>
    </section>
  </section>
</section>
  </section>

  <section id="Conformance">
    <title>Conformance</title>

    <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem id="DocumentConformance">
            <orderedlist continuation="restarts" inheritnum="ignore">
                <title> Document Conformance</title>
                <listitem>
                    <para>XLIFF is an XML vocabulary, therefore conformant XLIFF Documents MUST be
                        well formed and valid <link linkend="bib_XML">[XML]</link> documents.</para>
                </listitem>
                <listitem>

                    <para>Conformant XLIFF documents MUST be valid instances of the official Core
                        XML Schema (<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/xliff_core_2.2.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/xliff_core_2.2.xsd</ulink>) that is a part of this
                        multipart Work Product.</para>
                </listitem>
                <listitem>

                    <para> As not all aspects of the XLIFF specification can be expressed in terms
                        of XML Schemas, conformant XLIFF documents MUST also comply with all
                        relevant elements and attributes definitions, normative usage descriptions,
                        and Constraints specified in this specification document.</para>
                </listitem>
                <listitem>
                    <para>XLIFF documents MAY contain custom extensions, as defined in the <link linkend="extensions">Extension Mechanisms</link> section. </para>
                </listitem>
            </orderedlist>
        </listitem>
        <listitem id="ApplicationConformance">
            <orderedlist continuation="restarts" inheritnum="ignore">
                <title> Application Conformance</title>
                <listitem>
                    <para>XLIFF Writers MUST create conformant XLIFF Documents to be considered
                        XLIFF compliant.</para>
                </listitem>
                <listitem>
                    <para> Agents processing conformant XLIFF Documents that contain custom
                        extensions are not REQUIRED to understand and process non-XLIFF elements or
                        attributes. However, conformant applications SHOULD preserve existing custom
                        extensions when processing conformant XLIFF documents, provided that the
                        elements that contain custom extensions are not removed according to XLIFF
                        Processing Requirements or the extension's own processing
                        requirements.</para>
                </listitem>
                <listitem>
                    <para>All Agents MUST comply with Processing Requirements for otherwise
                        unspecified Agents or without a specifically set target Agent.</para>
                </listitem>

                <listitem>
                    <para> Specialized Agents defined in this specification - this is Extractor,
                        Merger, Writer, Modifier, and Enricher Agents - MUST comply with the
                        Processing Requirements targeting their specifically defined type of Agent
                        on top of Processing Requirements targeting all Agents as per point c.
                        above.</para>
                </listitem>
                <listitem>
                    <para>XLIFF is a format explicitly designed for exchanging data among various
                        Agents. Thus, a conformant XLIFF application MUST be able to accept XLIFF
                        Documents it had written after those XLIFF Documents were Modified or
                        Enriched by a different application, provided that:</para>
                    <orderedlist continuation="restarts" inheritnum="ignore">
                        <listitem>
                            <para>The processed files are conformant XLIFF Documents,</para>
                        </listitem>
                        <listitem>
                            <para>in a state compliant with all relevant Processing
                                Requirements.</para>
                        </listitem>
                    </orderedlist>

                </listitem>


            </orderedlist>
        </listitem>
        <listitem>
            <orderedlist continuation="restarts" inheritnum="ignore">
                <title> Backwards Compatibility</title>
                <listitem>
                    <para>Conformant applications are REQUIRED to support XLIFF 2.0, 2.1 and 2.2.</para>
                </listitem>
                <listitem>
                    <para>Conformant applications are NOT REQUIRED to support XLIFF 1.2 or previous
                        versions. </para>
                </listitem>
            </orderedlist>
        </listitem>
    </orderedlist>

    <note>
        <para>XLIFF documents conformant to this specification are not and cannot be conformant to
            XLIFF 1.2 or earlier versions. If an application needs to support for whatever business
            reason both XLIFF 2.x and XLIFF 1.2 or earlier, these will need to be supported as
            separate functionalities. </para>
    </note>
</section>

  
  <appendix id="references">
    <title>References</title>

    <para>This appendix contains the normative and informative references that are used in this
        document. While any hyperlinks included in this appendix were valid at the time of
        publication, OASIS cannot guarantee their long-term validity. </para>

    <section>
        <title>Normative References</title>

        <para>The following documents are referenced in such a way that some or all of their content
            constitutes requirements of this document.</para>

        <bibliography>
            <title/>
            
            <bibliomixed id="rfc2119"><abbrev>RFC 2119</abbrev> (BCP 14) S. Bradner, <title>Key
                words for use in RFCs to Indicate Requirement Levels</title>, <citetitle>
                    <ulink url="https://www.rfc-editor.org/rfc/rfc2119">https://www.rfc-editor.org/rfc/rfc2119</ulink>
                </citetitle> IETF (Internet Engineering Task Force) RFC 2119, March
                1997.</bibliomixed>
            
            <bibliomixed id="rfc8174"><abbrev>RFC 8174</abbrev> B. Leiba, <title>Ambiguity of
                Uppercase vs Lowercase in RFC 2119 Key Words</title>, <citetitle><ulink url="https://www.rfc-editor.org/rfc/rfc8174">https://www.rfc-editor.org/rfc/rfc8174</ulink></citetitle></bibliomixed>
            
            <bibliomixed id="bcp47"><abbrev>BCP 47</abbrev> M. Davis, <title>Tags for Identifying
                    Languages</title>, <citetitle>
                    <ulink url="https://www.rfc-editor.org/info/rfc5646">https://www.rfc-editor.org/info/rfc5646</ulink>
                </citetitle> IETF (Internet Engineering Task Force).</bibliomixed>

            <bibliomixed id="HTML5"><abbrev>HTML5</abbrev> Ian Hickos, Robin Berjon, Steve Faulkner,
                Travis Leithead, Erika Doyle Navara, Edward O'Connor, Silvia Pfeiffer <title>HTML5.
                    A vocabulary and associated APIs for HTML and XHTML</title>, <citetitle>
                    <ulink url="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</ulink>
                </citetitle> W3C Recommendation 28 October 2014.</bibliomixed>

            <bibliomixed id="ITS20"><abbrev>ITS</abbrev> David Filip, Shaun McCance, Dave Lewis,
                Christian Lieske, Arle Lommel, Jirka Kosek, Felix Sasaki, Yves Savourel
                    <title>Internationalization Tag Set (ITS) Version 2.0</title>, <citetitle>
                    <ulink url="http://www.w3.org/TR/its20/">http://www.w3.org/TR/its20/</ulink>
                </citetitle> W3C Recommendation 29 October 2013.</bibliomixed>

            <bibliomixed id="bib_datetime"><abbrev>NOTE-datetime</abbrev> M. Wolf, C. Wicksteed,
                    <title>Date and Time Formats</title>, <citetitle>
                    <ulink url="http://www.w3.org/TR/NOTE-datetime">http://www.w3.org/TR/NOTE-datetime</ulink>
                </citetitle> W3C Note, 15th September 1997.</bibliomixed>

            <bibliomixed id="rfc3987"><abbrev>RFC 3987</abbrev> M. Duerst and M. Suignard,
                    <title>Internationalized Resource Identifiers (IRIs)</title>, <citetitle>
                    <ulink url="https://www.ietf.org/rfc/rfc3987.txt">https://www.ietf.org/rfc/rfc3987.txt</ulink>
                </citetitle> IETF (Internet Engineering Task Force) RFC 3987, January
                2005.</bibliomixed>

            <bibliomixed id="rfc7303"><abbrev>RFC 7303</abbrev> H. Thompson and C. Lilley,
                    <title>XML Media Types</title>, <citetitle>
                    <ulink url="https://www.tools.ietf.org/html/rfc7303">
                        https://www.tools.ietf.org/html/rfc7303</ulink>
                </citetitle> IETF (Internet Engineering Task Force) RFC 7303, July
                2014.</bibliomixed>

            <bibliomixed id="uax9"><abbrev>UAX #9</abbrev> M. Davis, A. Lanin, A. Glass,
                    <title>UNICODE BIDIRECTIONAL ALGORITHM</title>, <citetitle>
                    <ulink url="http://www.unicode.org/reports/tr9/tr9-35.html">http://www.unicode.org/reports/tr9/tr9-35.html</ulink>
                </citetitle> Unicode Bidirectional Algorithm, May 18, 2016.</bibliomixed>

            <bibliomixed id="uax15"><abbrev>UAX #15</abbrev> M. Davis, K. Whistler, <title>UNICODE
                    NORMALIZATION FORMS</title>, <citetitle>
                    <ulink url="http://www.unicode.org/reports/tr15/tr15-44.html">http://www.unicode.org/reports/tr15/tr15-44.html</ulink>
                </citetitle> Unicode Normalization Forms, February 24, 2016.</bibliomixed>

            <bibliomixed id="Unicode"><abbrev>Unicode</abbrev> The Unicode Consortium, <title>The
                    Unicode Standard</title>, <citetitle>
                    <ulink url="http://www.unicode.org/versions/Unicode9.0.0/">http://www.unicode.org/versions/Unicode9.0.0/</ulink>
                </citetitle> Mountain View, CA: The Unicode Consortium, June 21, 2016.</bibliomixed>

            <bibliomixed id="bib_XML"><abbrev>XML</abbrev> W3C, <title>Extensible Markup Language
                    (XML) 1.0</title>, <citetitle>
                    <ulink url="http://www.w3.org/TR/xml/">http://www.w3.org/TR/xml/</ulink>
                </citetitle> (Fifth Edition) W3C Recommendation 26 November 2008.</bibliomixed>
            <bibliomixed id="xml_namespace"><abbrev>XML namespace</abbrev> W3C, <title>Schema
                    document for namespace http://www.w3.org/XML/1998/namespace</title>
                <citetitle><ulink url="http://www.w3.org/2001/xml.xsd">http://www.w3.org/2001/xml.xsd</ulink></citetitle> [<edition><ulink url="http://www.w3.org/2009/01/xml.xsd">http://www.w3.org/2009/01/xml.xsd</ulink>]</edition>. at <edition><ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/informativeCopiesOf3rdPartySchemas/w3c/xml.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/informativeCopiesOf3rdPartySchemas/w3c/xml.xsd</ulink></edition>
                in this distribution</bibliomixed>

            <bibliomixed id="XMLCatalogs"><abbrev>XML Catalogs</abbrev> Norman Walsh, <title>XML
                    Catalogs</title>, <citetitle>
                    <ulink url="https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html">https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html</ulink>
                </citetitle> OASIS Standard V1.1, 07 October 2005.</bibliomixed>


            <bibliomixed id="XMLSchema"><abbrev>XML Schema</abbrev> W3C, <title>XML Schema</title>,
                    <citetitle> refers to the two part standard comprising <link linkend="XMLSchema1">[XML Schema Structures]</link> and <link linkend="XMLSchema2">[XML Schema Datatypes]</link>
                </citetitle> (Second Editions) W3C Recommendations 28 October 2004.</bibliomixed>

            <bibliomixed id="XMLSchema2"><abbrev>XML Schema Datatypes</abbrev> W3C, <title>XML
                    Schema Part 2: Datatypes</title>, <citetitle>
                    <ulink url="http://www.w3.org/TR/xmlschema-2/">http://www.w3.org/TR/xmlschema-2/</ulink>
                </citetitle> (Second Edition) W3C Recommendation 28 October 2004.</bibliomixed>

            <bibliomixed id="XMLSchema1"><abbrev>XML Schema Structures</abbrev> W3C, <title>XML
                    Schema Part 1: Structures</title>, <citetitle>
                    <ulink url="https://www.w3.org/TR/xmlschema-1/">https://www.w3.org/TR/xmlschema-1/</ulink>
                </citetitle> (Second Edition) W3C Recommendation 28 October 2004.</bibliomixed>


        </bibliography>
    </section>

    <section>
        <title>Informative References</title>

        <para>The following referenced documents are not required for the application of this
            document but may assist the reader with regard to a particular subject area.</para>

        <bibliography>
            <title/>

            <bibliomixed id="biblio_ldml"><abbrev>LDML</abbrev>
                <title>Unicode Locale Data Markup Language</title>
                <citetitle>
                    <ulink url="http://unicode.org/reports/tr35/">http://unicode.org/reports/tr35/</ulink>
                </citetitle></bibliomixed>
            
            <bibliomixed id="biblio_srx"><abbrev>SRX</abbrev>
                <title>Segmentation Rules eXchange</title>
                <citetitle>
                    <ulink url="http://www.unicode.org/uli/pas/srx/">http://www.unicode.org/uli/pas/srx/</ulink>
                </citetitle></bibliomixed>

            <bibliomixed id="uax29"><abbrev>UAX #29</abbrev> M. Davis, <title>UNICODE TEXT
                    SEGMENTATION</title>, <citetitle>
                    <ulink url="http://www.unicode.org/reports/tr29/">http://www.unicode.org/reports/tr29/</ulink>
                </citetitle> Unicode text Segmentation.</bibliomixed>

            <bibliomixed id="biblio_xmli18nbp"><abbrev>XML I18N BP</abbrev>
                <title>Best Practices for XML Internationalization</title>, 13 February 2008, <citetitle>
                    <ulink url="http://www.w3.org/TR/xml-i18n-bp/">http://www.w3.org/TR/xml-i18n-bp/</ulink>
                </citetitle> W3C Working Group.</bibliomixed>

            <bibliomixed id="biblio_icu_mf"><abbrev>ICU MessageFormat</abbrev>
                <title>ICU MessageFormat Class</title>
                <citetitle>
                    <ulink url="https://unicode-org.github.io/icu/userguide/format_parse/messages/#messageformat">https://unicode-org.github.io/icu/userguide/format_parse/messages/#messageformat</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_wikipedia_genders">
                <abbrev>Grammatical Genders</abbrev>
                <title>List of languages by type of grammatical genders</title>
                <citetitle>
                    <ulink url="https://en.wikipedia.org/wiki/List_of_languages_by_type_of_grammatical_genders#More_than_three_grammatical_genders">https://en.wikipedia.org/wiki/List_of_languages_by_type_of_grammatical_genders#More_than_three_grammatical_genders</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_cldr_plural_spec"><abbrev>CLDR Plural Spec</abbrev>
                <title>The CLDR spec for Plural Rules:</title>
                <citetitle>
                    <ulink url="https://cldr.unicode.org/index/cldr-spec/plural-rules">https://cldr.unicode.org/index/cldr-spec/plural-rules</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_cldr_plural_lang"><abbrev>CLDR Plural Lang</abbrev>
                <title>Language Plural Rules (all languages):</title>
                <citetitle>
                    <ulink url="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html">http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_cldr_plural"><abbrev>CLDR Plural</abbrev>
                <title>CLDR plural files (<code>plurals.xml</code> &amp; <code>ordinals.xml</code>
                    in <code>core.zip</code>):</title>
                <citetitle>
                    <ulink url="https://www.unicode.org/Public/cldr/44/">https://www.unicode.org/Public/cldr/44/</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_icu4c_api"><abbrev>ICU4C API</abbrev>
                <title>ICU4C APIs:</title>
                <citetitle>
                    <ulink url="https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1PluralRules.html">https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1PluralRules.html</ulink>
                </citetitle>
            </bibliomixed>

            <bibliomixed id="biblio_icu4j_api"><abbrev>ICU4J API</abbrev>
                <title>ICU4J APIs:</title>
                <citetitle>
                    <ulink url="https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/text/PluralRules.html">https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/text/PluralRules.html</ulink>
                </citetitle>
            </bibliomixed>

        </bibliography>
    </section>

</appendix>
  <appendix id="mediaType" role="normative">
    <title>MIME Type for XLIFF Version 2.0 and Later Releases</title>

    <para>A MIME type (Multipurpose Internet Mail Extensions type) is a two-part identifier for file
        formats and format content transmitted on the Internet. The MIME type is the mechanism used
        to tell a client application the type of document being transferred from a server. It is
        important that servers are set up correctly so that the correct MIME type is transferred
        with each document.</para>

    <para>XLIFF is registered in the <ulink url="https://www.iana.org/assignments/media-types/media-types.xhtml">IANA Media Types
            Registry</ulink> as <code>application/xliff+xml</code>.</para>

</appendix>
  <appendix id="coreValidation">
    <title>XLIFF Grammar Files</title>
    <para>The basic grammar and structure of XLIFF 2.2 is defined using several XML Schemas
        and one XML catalog. The module schemas are specifically referenced from their
        respective modules.</para>

    <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem id="CoreSchema">
            <para>XLIFF Core <link linkend="XMLSchema">[XML Schema]</link>,</para>
            <para><ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/xliff_core_2.2.xsd">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/xliff_core_2.2.xsd</ulink></para>

        </listitem>
        <listitem id="XLIFFCatalog">
            <para><link linkend="XMLCatalogs">[XML                    Catalog]</link> of XLIFF Defined XML Schemas,</para>
            <para><ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/catalog.xml">https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/catalog.xml</ulink></para>
        </listitem>

        <listitem>
            <para>XML Schemas of XLIFF Modules are referenced from those modules.</para>
        </listitem>
    </orderedlist>


    <section id="schema_tree">
        <title>XML Schemas Tree</title>
        
        <programlisting format="linespecific">
    
<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/xliff_core_2.2.xsd"><code>Core XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/matches.xsd"><code>Candidates Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/glossary.xsd"><code>Glossary Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/fs.xsd"><code>Format Style Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/metadata.xsd"><code>Metadata Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/resource_data.xsd"><code>Resource Data Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/size_restriction.xsd"><code>Size and Length Restriction Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/validation.xsd"><code>Validation Module XML Schema</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/its.xsd"><code>ITS Module XML Schema (W3C namespace subset)</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/itsm.xsd"><code>ITS Module XML Schema (additional attributes)</code></ulink>
    |
    +---<ulink url="https://docs.oasis-open.org/xliff/xliff-core/v2.2/csd03/schemas/plural_gender_select.xsd">Plural, Gender, and Select Module</ulink>
  
 
</programlisting>
        
    </section>

</appendix>
  <appendix id="specChangeTracking" role="informative">
    <title>Specification Change Tracking</title>

    <para>This is to facilitate human tracking of changes between XLIFF Versions 2.2 and
        2.1. </para>


    <orderedlist continuation="restarts" inheritnum="ignore">
        
        <listitem>
            <para>Produced two versions of the specification: </para>
            <simplelist type="vert">
                <member><emphasis>Part 1: Core</emphasis> - simplified version that does not include
                    optional modules.</member>
                <member><emphasis>Part 2: Extended</emphasis> - complete version, including all
                    modules.</member>
            </simplelist>
        </listitem>
        <listitem>
            <para>Changed namespace for the core module to
                    <code>urn:oasis:names:tc:xliff:document:2.2</code>.</para>
        </listitem>
        <listitem>
            <para>Added an optional <link linkend="ref"><code>ref</code></link> attribute to <link linkend="note"><code>&lt;note></code></link> element.</para>
        </listitem>
        <listitem>
            <para>Changed the type of <link linkend="version"><code>version</code></link> attribute to an enumeration
                containing 2.0, 2.1 and 2.2 as valid values.</para>
        </listitem>
        <listitem>
            <para>Allowed an optional <link linkend="notes"><code>&lt;notes></code></link> element at the start of <link linkend="xliff"><code>&lt;xliff></code></link>.</para>
        </listitem>
        <listitem>
            <para>Allowed an optional <link linkend="metadata"><code>&lt;mda:metadata></code></link> element at the start
                of <link linkend="xliff"><code>&lt;xliff></code></link>.</para>
        </listitem>
        <listitem>
            <para>Removed references to Schematron, NVDL and Test Suite from this
                specification.</para>

        </listitem>
        <listitem>
            <para>Updated import references to XLIFF Core Schema in <code>matches.xsd</code>,
                    <code>resource_data.xsd</code> and <code>validation.xsd</code>.</para>
        </listitem>
        <listitem>
            <para>Removed the informative Change Tracking Extension. This module had been already
                demoted in the previous XLIFF version (2.1) but left in the specification for
                informative purposes. During the development of XLIFF 2.2, the TC did not work on
                this item. Therefore a decision was taken to remove it completely from the current
                specification to reduce its volume.</para>
        </listitem>
        <listitem>
            <para>Added new <link linkend="plural_gender_select_module">Plural, Gender, and Select                    Module</link>. </para>
        </listitem>
        <listitem>
            <para>Updated <link linkend="mediaType">Appendix B</link>
                with the official MIME type listed in IANA Media Type Registry.</para>
        </listitem>
        <listitem>
            <para>Allowed an optional <link linkend="notes"><code>&lt;notes></code></link> element in <link linkend="res_resourceItem"><code>&lt;res:resourceItem></code></link>.</para>
        </listitem>
        <listitem>
            <para>Removed references to third-party XML Schemas from <link linkend="coreValidation">XLIFF Grammar                    Files</link>.</para>
        </listitem>
    </orderedlist>
    <para>In spite of the above mentioned changes, fixes, clarifications, and additions, the
        practical workings of the previous versions of the XLIFF Core have not been affected.</para>
    <para>All valid XLIFF 2.0 and 2.1 files are valid XLIFF 2.2 files. The changes introduced in
        version 2.2 are designed to maintain compatibility with versions 2.0 and 2.1.</para>
    <note>
        <para>NVDL and Schematron files used in previous versions of XLIFF are available at <ulink url="https://github.com/oasis-tcs/xliff-xliff-22/tree/master/xliff-21">https://github.com/oasis-tcs/xliff-xliff-22/tree/master/xliff-21</ulink>.</para>
    </note>
</appendix>
  <appendix id="acknowledgements">
    <title>Acknowledgements</title>
    <para>The following individuals have participated in the creation of this specification and are
        gratefully acknowledged:</para>
    
    <itemizedlist spacing="compact">
        <listitem>
            <para>Filip, David - Huawei Technologies Co., Ltd. </para>
        </listitem>
        <listitem>
            <para>Morado Vázquez, Lucía - University of Geneva </para>
        </listitem>
        <listitem>
            <para>Nita, Mihai - Google Inc.</para>
        </listitem>
        <listitem>
            <para>Raya, Rodolfo M. - Individual </para>
        </listitem>
        <listitem>
            <para>Schnabel, Bryan - Individual </para>
        </listitem>
        <listitem>
            <para>Souto Pico, Manuel - cApStAn SA</para>
        </listitem>
        <listitem>
            <para>Umaoka, Yoshito - IBM </para>
        </listitem>
    </itemizedlist>
    
</appendix>
  <appendix id="revisionHistory">
    <title>Revision History</title>
    <table>
        <title>Tracking of changes in response to the 1<superscript>st</superscript> Public
            Review</title>
        <tgroup cols="4">
            <thead>
                <row>
                    <entry>Revision</entry>
                    <entry>Date</entry>
                    <entry>Editor</entry>
                    <entry>Changes Made</entry>
                </row>
            </thead>
            <tbody>
                <row>
                    <entry>CSD02</entry>
                    <entry>12 November, 2024</entry>
                    <entry>Rodolfo M. Raya</entry>
                    <entry>
                        <itemizedlist>
                            <listitem>
                                <para>Updated <link linkend="specChangeTracking">Specification Change                                        Tracking</link> appendix with additional information about
                                    the removal of the informative Change Tracking Extension.</para>
                            </listitem>
                            <listitem>
                                <para>Removed compact form (non-XLIFF) examples from <link linkend="plural_gender_select_module">Plural, Gender, and                                        Select Module</link> module to avoid potential
                                    confusions.</para>
                            </listitem>
                            <listitem>
                                <para>Corrected link to grammar file in <link linkend="plural_gender_select_module">Plural, Gender, and                                        Select Module</link>.</para>
                            </listitem>
                        </itemizedlist>
                    </entry>
                </row>
            </tbody>
        </tgroup>
    </table>
    <table>
        <title>Tracking of changes in response to the 2<superscript>nd</superscript> Public
            Review</title>
        <tgroup cols="4">
            <thead>
                <row>
                    <entry>Revision</entry>
                    <entry>Date</entry>
                    <entry>Editor</entry>
                    <entry>Changes Made</entry>
                </row>
            </thead>
            <tbody>
                <row>
                    <entry>CSD03</entry>
                    <entry>17 February, 2025</entry>
                    <entry>Rodolfo M. Raya</entry>
                    <entry>
                        <itemizedlist>
                            <listitem>
                                <para>Updated <link linkend="specChangeTracking">Specification Change                                        Tracking</link> to add the removal of third-party XML
                                    Schemas from this specification.</para>
                            </listitem>
                            <listitem>
                                <para>Corrected links to third-party XML Schemas in the grammar
                                    files listed in <link linkend="coreValidation">XLIFF Grammar                                    Files</link>.</para>
                            </listitem>
                        </itemizedlist>
                    </entry>
                </row>
            </tbody>
        </tgroup>
    </table>
</appendix>
  <appendix id="notices">
    <title>Notices</title>
    <para>Copyright © OASIS Open 2025. All Rights Reserved.</para>
    <para>All capitalized terms in the following text have the meanings assigned to them in the
        OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full <ulink url="https://www.oasis-open.org/policies-guidelines/ipr/">Policy</ulink> may be found at
        the OASIS website: [<ulink url="https://www.oasis-open.org/policies-guidelines/ipr/">https://www.oasis-open.org/policies-guidelines/ipr/</ulink>].</para>
    <para>This document and translations of it may be copied and furnished to others, and derivative
        works that comment on or otherwise explain it or assist in its implementation may be
        prepared, copied, published, and distributed, in whole or in part, without restriction of
        any kind, provided that the above copyright notice and this section are included on all such
        copies and derivative works. However, this document itself may not be modified in any way,
        including by removing the copyright notice or references to OASIS, except as needed for the
        purpose of developing any document or deliverable produced by an OASIS Technical Committee
        (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy,
        must be followed) or as required to translate it into languages other than English.</para>
    <para>The limited permissions granted above are perpetual and will not be revoked by OASIS or
        its successors or assigns.</para>
    <para>This document and the information contained herein is provided on an "AS IS" basis and
        OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
        WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR
        ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. OASIS AND ITS
        MEMBERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES
        ARISING OUT OF ANY USE OF THIS DOCUMENT OR ANY PART THEREOF.</para>
    <para>As stated in the OASIS IPR Policy, the following three paragraphs in brackets apply to
        OASIS Standards Final Deliverable documents (Committee Specifications, OASIS Standards, or
        Approved Errata).</para>
    <para>[OASIS requests that any OASIS Party or any other party that believes it has patent claims
        that would necessarily be infringed by implementations of this OASIS Standards Final
        Deliverable, to notify OASIS TC Administrator and provide an indication of its willingness
        to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of
        the OASIS Technical Committee that produced this deliverable.]</para>
    <para>[OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim
        of ownership of any patent claims that would necessarily be infringed by implementations of
        this OASIS Standards Final Deliverable by a patent holder that is not willing to provide a
        license to such patent claims in a manner consistent with the IPR Mode of the OASIS
        Technical Committee that produced this OASIS Standards Final Deliverable. OASIS may include
        such claims on its website, but disclaims any obligation to do so.]</para>
    <para>[OASIS takes no position regarding the validity or scope of any intellectual property or
        other rights that might be claimed to pertain to the implementation or use of the technology
        described in this OASIS Standards Final Deliverable or the extent to which any license under
        such rights might or might not be available; neither does it represent that it has made any
        effort to identify any such rights. Information on OASIS' procedures with respect to rights
        in any document or deliverable produced by an OASIS Technical Committee can be found on the
        OASIS website. Copies of claims of rights made available for publication and any assurances
        of licenses to be made available, or the result of an attempt made to obtain a general
        license or permission for the use of such proprietary rights by implementers or users of
        this OASIS Standards Final Deliverable, can be obtained from the OASIS TC Administrator.
        OASIS makes no representation that any information or list of intellectual property rights
        will at any time be complete, or that any claims in such list are, in fact, Essential
        Claims.]</para>
    <para>The name "OASIS" is a trademark of <ulink url="https://www.oasis-open.org/">OASIS</ulink>,
        the owner and developer of this document, and should be used only to refer to the
        organization and its official outputs. OASIS welcomes reference to, and implementation and
        use of, documents, while reserving the right to enforce its marks against misleading uses.
        Please see <ulink url="https://www.oasis-open.org/policies-guidelines/trademark/">https://www.oasis-open.org/policies-guidelines/trademark/</ulink> for above
        guidance.</para>


</appendix>

</article>