OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: XLIFF validation on invalid XML character using <cp>


Hi Rodolfo,

I was playing with XLIFF validation service today - https://dev.maxprograms.com/Validation/

---
<xliffxmlns="urn:oasis:names:tc:xliff:document:2.0"version="2.0"srcLang="en"trgLang="fr">
<fileid="f1">
  <unit id="u1">
    <segmentid="s1">
      <source>Test <cphex="D800"/></source>
    </segment>
  </unit>
</file>
</xliff>
---

The validation service returns

---
File "test-cp.xliff" is not valid XLIFF.

Reason: Valid XML character represented as <cp>

---

However, this content should be valid. Unicode code point U+D800 (to U+DB7F) is reserved as High Surrogates. The code point does not represent a valid XML character, so <cp hex="D800"/> should be valid. (Of course, <cp hex="D7FF"/> is invalid). I guess the validation service does not check the range properly.

Thanks,
Yoshito



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]