[rfc-i] Fwd: New Version Notification for draft-hoffman-xml2rfc-06.txt
tony at att.com
Mon Apr 28 12:34:03 PDT 2014
On 4/28/14, 2:16 PM, Paul Hoffman wrote:
> Greetings again. As always, thanks for the input on the v3 draft. The changes include:
> - Pointing out that artwork that contains the string "]]>" also needs to be protected in a CDATA structure
Good start on this. Unfortunately, it's a bit more tricky than you describe.
The string "]]>" is problematic both in and out of a CDATA structure.
The string is not allowed in XML and is a terminator for CDATA, so it
cannot exist either place.
The solution is to break the string up, such as using multiple CDATA
blocks, as in this example:
(the first two ]] are before the end of the first CDATA block, and the
trailing > is the first character of the next CDATA block), or escaping
one of the characters, such as just the ">"
- Tony Hansen
More information about the rfc-interest