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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: CharData

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Prescod <papresco@technologist.com>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 16 Dec 1997 10:44:28 -0500

Chris Maden wrote:
> You are correct; ']]>' is forbidden in element content, as it should
> be.  This is cruft from SGML; the msc/mdc combination (marked section
> close = ']]', markup declaration close = '>') is always recognized as
> a delimiter (see Figure 3, ISO 8879).  As a result, XML mandates that
> this combination always be escaped using ']]&gt;' unless it actually
> closes a marked section.

The reason for this is not just SGML compatibility, it is robustness. A
floating MDC is almost certainly an error in the document. If I
accidently end a CDATA marked section twice, I want to *know*.

 Paul Prescod



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/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe 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