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: "Don Park" <donpark@docuverse.com>
  • To: <xml-dev@ic.ac.uk>
  • Date: Sat, 27 Nov 1999 17:58:14 -0800

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

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


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

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