[Home] [By Thread] [By Date] [Recent Entries]

  • From: Mike Brown <mike@s...>
  • To: Eric Bohlman <ebohlman@e...>
  • Date: Wed, 23 May 2001 14:26:40 -0600 (MDT)

Eric Bohlman wrote:
> >">" must be escaped when it follows "]]" and is character data, not markup
> >indicating the end of a CDATA section. This is supposedly for (SGML?)
> 
> Nope.  There's no way to escape a ">" in that situation, because CDATA sections aren't parsed for 
> entity references or character references.  "]]&gt;" in a CDATA section means character data 
> consisting of two left square brackets, an ampersand, the two letters "g" and "t", and a semicolon.

Well, you misread, and I also didn't fully qualify my statement.

">" must be escaped when it follows "]]" and is character data (i.e., when
it is not the markup that indicates the end of a CDATA section), and when it
is not actually in a CDATA section. (I forgot that last part).

http://www.w3.org/TR/REC-xml#syntax is quite clear on this.

   - Mike
_____________________________________________________________________________
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal: http://hyperreal.org/~mike/

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member