W3C home > Mailing lists > Public > www-html@w3.org > December 2002

Re: escaping escaping

From: Jim Correia <correia@barebones.com>
Date: Wed, 4 Dec 2002 22:52:08 -0500
To: www-html@w3.org
Message-Id: <ED0ECD92-0804-11D7-A046-000A27D7C068@barebones.com>

On Wednesday, December 4, 2002, at 10:47  PM, fantasai wrote:

> David Woolley wrote:
>>>  The XMP element works just like I want it to, but I haven't seen 
>>> that element in a spec... hmm... ever?  Its been awhile, at least.
>> That's because it's impossible to specify in an SGML DTD.  It's a 
>> hack.
> 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.

But because the CDATA section ends at the first occurence of </ any 
time you close an "element" within the xmp, you end the CDATA section.

Received on Wednesday, 4 December 2002 22:52:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:01 UTC