Re: [Moderator Action] XML language, rule [14]: CharData

Matti Koskivirta wrote:
> 
> Dear Sir/Madam,
> 
> I'm referring to the definition of
> XML in  http://www.w3.org/TR/REC-xml
> 
> This defintion has a rule number 14:
> 
> [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
> 
> I think that this definition of CharData is somewhat odd
> since it accepts only strings that consist of
> "^", "<" and "&" characters (or a null string)
> and nothing else.

umm... no... ^ is special: [^<&] stands
for "all characters except < and &", not
"any of ^ < &".

There's a section on notation toward the end of the spec.
http://www.w3.org/TR/REC-xml#sec-notation

> Shouldn't it rather read:
> 
> [14] CharData ::= (BaseChar|Ideographic|CombiningChar|Extender)* - ([^<&]*
> ']]>' [^<&]*)
> 
> or something like that?

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Monday, 12 March 2001 12:16:47 UTC