Uploaded image for project: 'OASIS XML Localisation Interchange File Format (XLIFF) TC'
  1. OASIS XML Localisation Interchange File Format (XLIFF) TC
  2. XLIFF-46

type for srcLang and trgLang not declared in the core xsd

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Declare srcLang and trgLang types as xs:language in core xsd
      Add full BCP47 validation to core schematron

      Show
      Declare srcLang and trgLang types as xs:language in core xsd Add full BCP47 validation to core schematron
    • Resolution:
      Hide

      Declared srcLang and trgLang types as xs:language in core xsd
      Full BCP47 validation would require Xpath 3 which is currently not available in Schematron

      Show
      Declared srcLang and trgLang types as xs:language in core xsd Full BCP47 validation would require Xpath 3 which is currently not available in Schematron

      Description

      When editing an XLIFF file by hand I realized that file

      <xliff version="2.1" xmlns="urn:oasis:names:tc:xliff:document:2.0"
      srcLang="" trgLang="">
      <file id="f1">
      <unit id="u1">
      <segment id="s1">
      <source>test</source>
      <target>test</target>
      </segment>
      </unit>
      </file>
      </xliff>

      does not report any error when validated against schemas. Note the
      srcLang="" trgLang="".

      The root cause seems to be in xliff_core_2.0.xsd:
      <xs:attribute name="srcLang" use="required"/>
      <xs:attribute name="trgLang" use="optional"/>
      where type is not defined.

        Attachments

          Activity

            People

            • Assignee:
              fsasaki Felix Sasaki [X] (Inactive)
              Reporter:
              DavidFilip David Filip [X] (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: