OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Why no ']]>' in CharData?

[ Lists Home | Date Index | Thread Index ]
  • From: John Cowan <cowan@locke.ccil.org>
  • To: xml-dev@ic.ac.uk
  • Date: Sat, 27 Nov 1999 22:11:35 -0500 (EST)

Don Park scripsit:

> Hmm, I see now.  The relevant sentence is: "The right angle
> bracket (>) MAY be represented using the string "&gt;", and
> MUST, for compatibility, be escaped using "&gt;" 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@ccil.org
       I am a member of a civilization. --David Brin

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS