XML Filter: CDATA content is XML-escaped when using inlineCdata option
Issue #1024
resolved
Attached: sample file, sample config. The config includes this:
<okp:options escapeGT="no" escapeQuotes="no" inlineCdata="yes"/>
Roundtrip through Okapi:
$ tikal.sh -fc okf_xml@test.fprm -x test.xml -codeattrs
$ tikal.sh -fc okf_xml@test.fprm -m test.xml.xlf
The CDATA markers are imported as tags, and everything looks fine. (The <br/>
tag is protected via codefinder.)
However, on output, the CDATA markers are restored, but XML escaping is still applied to their contents:
<string><![CDATA[Sentence 1.<br />Sentence 2.]]></string>
This is incorrect.
Comments (7)
-
reporter -
reporter - edited description
-
reporter Looks like the problem is that the cdata ctype is serialized as
x-cdata
, but that isn’t correctly mapped toCode.TYPE_CDATA
. -
reporter -
reporter - changed status to resolved
-
reporter - changed milestone to 1.42.0
-
reporter -
assigned issue to
-
assigned issue to
- Log in to comment
This unittest does a simple roundtrip and passes. However, the same behavior isn’t seen when doing a real merge (for example with tikal, as above).