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

Grammar of XML1.1 ambiguous?

From: Sean Hayes <shayes@microsoft.com>
Date: Sun, 7 Mar 2004 18:32:29 -0000
Message-ID: <4B23D310E1AB5B49BC52CEE8D36B9600015632B9@EUR-MSG-03.europe.corp.microsoft.com>
To: <xml-editor@w3.org>
The opening production rule for XML1.1 seems wrong, although it's
difficult to tell exactly what the problem is

since the precedence of the - operator is not defined.

 

it might mean :

case 1 : - higher than concatentation:

document    ::=    prolog element (Misc*- Char*) RestrictedCharChar*

 

Thus no Misc content is now allowed, equivalent to 

document    ::=    prolog element RestrictedCharChar*

 

Or case 2, concatenation higher than -:

document    ::=    (prolog element Misc*) - (Char*  RestrictedCharChar*)

Eliminating all but the null document.

 

Or case 3

concatenation equal to -: (left associative)

document    ::=    ((prolog element Misc*) - Char*)  RestrictedCharChar*

Only a sequence of restricted chars allowed.

 

Or maybe something else. What was the actual intention?

 

 
Received on Sunday, 7 March 2004 13:33:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:46 UTC