Re: Non-deterministic content model

Thanks for teaching me.
Now, I understand why my example is not allowed.

> > >> So, I think, the message is a warning, and the
> > >>instance is schema-valid. Is it right?
> > 
> > No, the schema language prohibits non-deterministic content models.

Let me show the real example, which is a part of P3P schema file.
Is there any way to write a `right` schema, which is 
compatible with the following example?

 <element name='DISPUTES'>
  <complexType content='elementOnly'>
   <element ref='p3p:EXTENSION' minOccurs='0' maxOccurs='unbounded'/>
   <element ref='p3p:LONG-DESCRIPTION' minOccurs='0' maxOccurs='1'/>
   <element ref='p3p:IMG' minOccurs='0' maxOccurs='1'/>
   <element ref='p3p:REMEDIES' minOccurs='0' maxOccurs='1'/>
   <element ref='p3p:EXTENSION' minOccurs='0' maxOccurs='unbounded'/>
  </complexType>
 </element>

-- 
Yuichi Koike (koike@w3.org)
World Wide Web Consortium (W3C)
Technology and Society Domain
http://www.w3.org/People/Koike/

Received on Thursday, 24 August 2000 12:15:20 UTC