[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [xliff] XLIFF validation on invalid XML character using <cp>
rmraya@maxprograms.com>-------- Original Message --------
Subject: [xliff] XLIFF validation on invalid XML character using <cp>
From: "Yoshito Umaoka" <yoshito_umaoka@us.ibm.com>
Date: Wed, May 26, 2021 2:30 pm
To: "Rodolfo M. Raya" <rmraya@maxprograms.com>
Cc: <xliff@lists.oasis-open.org>
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]