W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 1998

Syntactic ambiguity in XML spec

From: Paul Abrahams <abrahams@acm.org>
Date: Wed, 22 Jul 98 18:16:12 -0400
Message-Id: <9807222216.AA0246@valinet.com>
To: xml-editor@w3.org
Cc: abrahams@acm.org
I've noticed a syntactic ambiguity in productions 49/50 that could be
troublesome for parsers even though it has an obvious interpretation.
If "children" has the form "(Name)", i.e., it's a singleton, then it can
be interpreted either as a choice or as a seq.  One cure would be to
replace the *s in P49/P50 by +s and to add a production P50A:
  singleton ::= '(' S? cp ')'
and modify P47 and P48 to include "singleton" in the list of choices for
Received on Wednesday, 22 July 1998 18:16:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:39 UTC