W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2001

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

From: Dan Connolly <connolly@w3.org>
Date: Mon, 12 Mar 2001 11:16:32 -0600
Message-ID: <3AAD0470.5469C753@w3.org>
To: Matti Koskivirta <matti.koskivirta@jsop.fi>
CC: xml-editor@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:31 GMT