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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: ]]> within a CDATA marked section ?

[ Lists Home | Date Index | Thread Index ]
  • From: James Clark <jjc@jclark.com>
  • To: "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Thu, 27 Nov 1997 10:28:34 -0500

Jarle Stabell wrote:

> BTW: Do people think XML parsers generally will/should complain about a ]]> when it for *compatibility* should be ]]&gt; ?
> (Or do I misinterpret the draft text:
> 
> 'and must for compatibility, be escaped using "&gt;" or a character reference when it appears in the string "]]>", when that string is not marking the end of a CDATA section'
> 
> Does it mean that the user should better use "&gt;" to be compatible with SGML, or that the XML parser should report this as an error if not escaped using "&gt;"?)

A conforming XML parser *must* report this as an error.  "For
compatibility" just gives the rationale for the requirement; it doesn't
lessen the requirement on parsers to report the error. The spec's
definition of "for compatibility" makes this clear:

for compatibility 
     A feature of XML included solely to ensure that XML remains
compatible with SGML. 

Note that "for compatibility" is quite different from "for
interoperability".

James



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