Re: CharData

Chris Maden (crism@ora.com)
Tue, 16 Dec 1997 12:25:50 -0500


[Paul Prescod]
> Chris Maden wrote:
> > You are correct; ']]>' is forbidden in element content, as it
> > should be.
>
> The reason for this is not just SGML compatibility, it is
> robustness. A floating MDC is almost certainly an error in the
> document.

That's true; but I find it easier to argue from standards than from
philosophy, especially in cases like this where others will disagree:

[Michael Kay]
> I don't think you're being particularly user-friendly here. The most
> likely reason for a floating "]]>" is that the software-writer was
> lazy and forgot to escape it.

Then the writer *must* be warned. See _The SGML FAQ Book_, question
2.9; the potential messy ramifications of stray marked section end
delimiters are many, and the potential damage quite high.

-Chris

-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>

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)