W3C home > Mailing lists > Public > xml-editor@w3.org > April to June 2002

[Fwd: An Errata for XML spec]

From: Eve L. Maler <eve.maler@sun.com>
Date: Wed, 17 Apr 2002 13:29:26 -0400
Message-ID: <3CBDB0F6.5000402@sun.com>
To: xml-editor@w3.org


-------- Original Message --------
Subject: An Errata for XML spec
Date: Thu, 18 Apr 2002 00:53:10 +0800
From: Ѯv <htliaw@mail.im.tku.edu.tw>
To: <tbray@textuality.com>
CC: <jeanpa@microsoft.com>, <cmsmcq@uic.edu>, <eve.maler@east.sun.com>

Dear Editors,

In studying the Specification of XML languages in
[http://www.w3.org/TR/2000/REC-xml-20001006]
, I found some problem.

In production rule

[43]  content ::= CharData ?
                         (
                            (element | Reference | CDSect | PI | Comment )
                            CharData ?
                         )*

, the non-terminal CharData is optional.

However, in production rule

[14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)

, we can find that the non-terminal CharData is nullable.


It implies that the two '?'s is not necessary in production rule [43].
More worse, they will causes the grammar to be ambiguous.

I recommend that the production rule [43] should be modified as

content ::= ( element | Reference | CDSect | PI | Comment | CharData )*


sincerely yours,

Heh-Tyan Liaw
Associate Prof.,
Tamkang University,
Taiwan




-- 
Eve Maler                                    +1 781 442 3190
Sun Microsystems XML Technology Center   eve.maler @ sun.com
Received on Wednesday, 17 April 2002 13:29:03 GMT

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