Why no ']]>' in CharData?

Don Park donpark at docuverse.com
Sun Nov 28 01:55:57 GMT 1999


>On Sat, 27 Nov 1999, Don Park wrote:
>> What is the reason for special treatment of ']]>' in
>> character data?
>
>See the third paragraph of Section 2.4 of the Recommendation.  
>It's there
>for compatibility, i.e. so an SGML processor can parse an XML document.

Hmm, I see now.  The relevant sentence is: "The right angle
bracket (>) MAY be represented using the string ">", and
MUST, for compatibility, be escaped using ">" or a
character reference when it appears in the string "]]>" in
content, when that string is not marking the end of a CDATA
section."

'for compatibility' is defined as: "A feature of XML included
solely to ensure that XML remains compatible with SGML."

I think it is fairly safe to say that SML will not be
compatible with SGML.

Best,

Don Park    -   mailto:donpark at docuverse.com
Docuverse   -   http://www.docuverse.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list