CharData

Chris Maden crism at ora.com
Tue Dec 16 17:21:26 GMT 1997


[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 at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list