- From: David Woolley <david@djwhome.demon.co.uk>
- Date: Thu, 5 Dec 2002 06:45:45 +0000 (GMT)
- To: www-html@w3.org
> It *is* possible to specify <xmp> in an SGML DTD. (Whether it can > contain HTML code is a different matter. [1]) SGML DTDs can specify > element content to be CDATA, and that's exactly how <xmp> is defined. CDATA introduced that way is terminated by the first </ which makes it almost unusable for HTML content, and introduces a confusing rule for authors, who already have problems complying with this rule for scripts and the rule that requires &'s in attribute values to be represented by entities (e.g. in form-like URLs). Using an explicit CDATA section in XML is slightly better, because the terminator sequence won't be spoofed by normal HTML, athough it will be spoofed by XHTML with scripts or style sheets.
Received on Thursday, 5 December 2002 01:45:51 UTC