[Fwd: An Errata for XML spec]

-------- 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 UTC