W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: Document cleanup suggestions

From: John Cowan <cowan@locke.ccil.org>
Date: Tue, 18 Aug 1998 10:35:26 -0400
Message-ID: <35D9912E.23955A68@locke.ccil.org>
To: DOM List <www-dom@w3.org>
Ray Whitmer wrote:

> Actually, I believe that it is Text-not-CData that needs to emit "]]>" as
> "]]&gt;" (see [14] in the XML spec, as referenced by [43]).
> 
> CData needs to replace "]]>" with something like "]]]]><![CDATA[>" because CDATA
> sections cannot nest.  Breaking up the section seems to be the only way to
> preserve the characters, since &gt; would not be interpreted inside the CDATA
> section (see section 2.7).

You are right on both counts.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)
Received on Tuesday, 18 August 1998 10:35:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT