Re: [xml-dev] Ambiguous Content Models

From
David Carlisle <>
To
Date
2003-10-03T10:56:13Z
ID
<>
Thread
Re: [xml-dev] Ambiguous Content Models
You have

(GenericElements?,Person?,Location?)*,Person,(GenericElements?,Person?,Location?)*


which is ambiguous as you can't tell, the first time you get a Person,
whether you are still in the first ()* clause or whether it is your
mandatory middle Person.

You can re-write it as

(GenericElements,Location)*,Person,(GenericElements,Person,Location)*

Which isn't ambiguous.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________