Re: XML Schema Structures

From the description of Model Group [1]:

        (all, (in which case {particles} is restricted 
        to contain local and global element declarations, 
        with {min occurs}=0 or 1, {max occurs}=1) 
        contain exactly zero or one of each element 
        specified in {particles}. The elements can 
        occur in any order. 

So, I believe that we have exactly the facility that you are requesting. 
Thank you.

[1] http://www.w3.org/TR/xmlschema-1/#Model_Group_details

------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------







Ivan Kurmanov <ivan@tm.minsk.by>
Sent by: www-xml-schema-comments-request@w3.org
06/05/00 11:06 AM
Please respond to Ivan Kurmanov

 
        To:     www-xml-schema-comments@w3.org
        cc:     (bcc: Noah Mendelsohn/CAM/Lotus)
        Subject:        XML Schema Structures

Dear Sirs,

I  am reading the XML Schema documentation (the latest available
Working  Draft from April 7, 2000) and I have question. I need to know
if it is possible with XML Schema language to define a
type, which will allow an element to contain several different elements,
some  of  which are required, and some of which are not, in no particular
order.

Something like the 'sequence' ModelGroup {compositor}, but without the 
ordering
restrictions?

Or something like the 'all' ModelGroup {compositor}, but without 
restriction
MaxOccur = MinOccur = 1.
 
If  you  could  just answer "YES, look there" or "NO", that will be quite
enough. Thanks a lot.


Ivan Kurmanov <ivan@tm.minsk.by>.

Received on Friday, 9 June 2000 20:31:02 UTC