OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[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



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
_____________________________________________________________________________
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal: http://hyperreal.org/~mike/