RE: error in xml specs: PubidLiteral

Frank Thommen wrote:
> [12]  PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"
>
>
> since the delimiter itself must not be included in the
> literal, the definition
> should be:
>
> [12]  PubidLiteral ::= '"' (PubidChar - '"')* '"' | "'"
> (PubidChar - "'")* "'"

If you look at production [13] PubidChar, you'll find that it does not allow
the double quote ".  Consequently, (PubidChar - '"')* and PubidChar* match
the same thing and that excludes the " in both cases.

--
François Yergeau

Received on Tuesday, 20 June 2000 11:19:09 UTC