error in XML 1.0 Rec ???

Dear Editor,
I may be wrong... but my understanding is that in the XML recommandation,
production rule 51 should be written:

Mixed	::= 	'(' S? '#PCDATA' (S? '|' S? Name)+ S? ')*'
		| '(' S? '#PCDATA' S? ')'

Current production 51 (with a star instead of a plus) is ambiguous because
its first line can mean that (#PCDATA)* is a valid mixed-content.
The second line just says that (#PCDATA) is ALSO a valid one.

My understanding is that (#PCDATA)* should not be well-formed: it does not
make a lot a sense, is n't it?

I've noted that some well known parsers reject such declaration. Should
they accept it or should the Rec be corrected?

Regards
Alain Michard
INRIA

Received on Monday, 29 June 1998 17:03:24 UTC