Why no ']]>' in CharData?

John Cowan cowan at locke.ccil.org
Sun Nov 28 02:11:51 GMT 1999

Don Park scripsit:

> 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."

What was the SGML reason for forbidding ]]> in parsed character data?

> '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.

Well, surely there will be some escape for < provided in SML.
Suppose it is &lt;, which is both XML and HTML.  In that case,
it wouldn't be much brain strain to require &gt; for >, thus
retaining XML-compatibility.

John Cowan                                   cowan at ccil.org
       I am a member of a civilization. --David Brin

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