[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3 basic XML questions on: non-determism, reserved symbols,and xml:lang
- From: Mike Brown <email@example.com>
- To: Eric Bohlman <firstname.lastname@example.org>
- 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. "]]>" 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 j. brown, software engineer at | xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA | personal: http://hyperreal.org/~mike/