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

[Erratum] The example in "5.8.8.2.2 Inline Elements" should extract the `alt` #22

Closed mihnita closed 1 year ago

mihnita commented 1 year ago

Specification Type

None

Revision

No response

Detailed Description

This issue can happens in the "5.8.8.2.2 Inline Elements" section in xliff-extended-v2.2wd.html

The html content being extracted is

    <p>Image: <img src="example.png" alt="Text for the image"></p>

and it is extracted as:

<unit id="1">
  <res:resourceData>
    <res:resourceItem id="r1" mimeType="image/png" context="no">
      <res:source href="example.png" />
    </res:resourceItem>
  </res:resourceData>
  <segment>
    <source>Image: <ph id="ph1" fs="img"
        subFs="src,example.png\alt,Text for the image" /></source>
  </segment>
</unit>

But the alt element is localisable, and "Text for the image" should be extracted in a subflow <unit>, as described in the "4.7.4 Sub-Flows" section.

rmraya commented 1 year ago

Fixed in Mihai's PR