Re: XML1.1 (and 1.0) Descriptive Inconsistency - Section 2.4

> 
> Section 2.4 contains the following language in the 4th para:
> 
> <quote>
> In the content of elements, character data is any string of 
> characters which does not contain the start-delimiter of any
> markup. In a CDATA section, character data is any string of
> characters not including the CDATA-section-close delimiter,
> "]]>".
> </quote>
> 
> This is followed by production [14], which has:
> 
> [14]    CharData    ::=    [^<&]* - ([^<&]* ']]>' [^<&]*)
> 
> The descriptive inconsistency is that the above quoted 4th
> para does not agree with this production and is also somewhat
> misleading since Section 2.7 separately treats the content
> of a CDATA section.
> 
> I would suggest the 4th para be modified to read as follows:
> 
> "In the content of elements, character data is any string of 
> characters which does not contain the start-delimiter of any
> markup and does not include the CDATA-section-close delimiter,
> "]]>".

I agree that this would be a good change.

The sentence immediately prior to the quoted paragraph makes it
unambiguously clear that production 14 is (and always was) the intended
behaviour: eg this uri from the 2nd edition,

http://www.w3.org/TR/2000/REC-xml-20001006#syntax

  The right angle bracket (>) may be represented using the string "&gt;",
  and must, for compatibility, be escaped using "&gt;" or a character
  reference when it appears in the string "]]>" in content, when that
  string is not marking the end of a CDATA section


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Thursday, 15 January 2004 07:42:07 UTC