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

Re: DOM Level 3+normalizeDocument

From: John Cowan <jcowan@reutershealth.com>
Date: Mon, 23 Sep 2002 12:00:57 -0400 (EDT)
Message-Id: <200209231612.MAA06650@mail2.reutershealth.com>
To: keshlam@us.ibm.com (Joseph Kesselman)
Cc: pavithran.a@ap.sony.com (Pavithran), plh@w3.org, www-dom@w3.org

Joseph Kesselman scripsit:

> <![CDATA[The trick is to divide the token so it isn't entirely within a 
> single CDATA block. One solution would be ]]]]><![CDATA[>, where we've 
> split it right before the > character. Obviously you could divide the two 
> ]'s instead. Or drop out of CDATA markup entirely for a moment, like so: 
> ]]>]]> or ]]&gt;<![CDATA[. Anything which correctly represents the text 
> and is legal XML is an acceptable solution. Take your pick.]]>

Almost.  ]]>]]> will not work, because ]]> is illegal in ordinary character
content; you must write ]]&gt;, which indeed is why the gt entity exists.

-- 
There is / One art                      John Cowan <jcowan@reutershealth.com>
No more / No less                       http://www.reutershealth.com
To do / All things                      http://www.ccil.org/~cowan
With art- / Lessness                     -- Piet Hein
Received on Monday, 23 September 2002 12:02:08 GMT

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