oasis-tcs / xliff-xliff-22

OASIS XLIFF TC: A repository designed for use in development of TC chartered work products and test suites
https://github.com/oasis-tcs/xliff-xliff-22
Other
10 stars 2 forks source link

[Core Proposal] Add examples to explain processing requirements of state attribute #14

Closed yumaoka closed 2 years ago

yumaoka commented 2 years ago

Authors

Yoshito Umaoka

Area of Changes

Detailed Description

XLIFF 2.1 specification section 4.3.1.31 state, defines the default value is "initial". In the processing requirements section, the following description is found.


Writers MUST NOT set the state attribute values to other than the default initial if and only if the segment element where the attribute is set doesn't have the child.


This description is hard to understand for implementors because "only if" with double negative. It is not really clear if following example is valid.

<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0"
    srcLang="en" trgLang="fr">
  <file id="f1">
    <unit id="u1">
      <segment id="s1" state="initial">
        <source>Hello World!</source>
        <target>Bonjour le Monde!</target>
      </segment>
    </unit>
  </file>
</xliff>

Example Use Case

No response

Compatibility Impacts

N/A

rmraya commented 2 years ago

Processing requirements for state have been clarified in the specification

yumaoka commented 2 years ago

b5612b464a013bd7c776d8db408394166eab6569 updated the description. I agree new text is much easier to understand.