W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2008

problem with occurence of elements

From: Andreas Peter <info@minimag.de>
Date: Sun, 09 Mar 2008 23:35:00 +0100
Message-ID: <47D46614.6000107@minimag.de>
To: XML Schema List <xmlschema-dev@w3.org>

Hello schema-users,

I have as I hope a very simple problem. Unfortunately not for me:

This is my complexType:

    <xs:complexType name="chapterType">
            <xs:element name="title"/>
                    <xs:element name="subtitle"/>
                    <xs:element name="author"/>
                    <xs:element name="para"/>
                    <xs:element name="sect1"/>

I try to realise, that after the required title-element the author-, 
para- and sect1-element can occure unboundedly and the subtitle-element 
can occure only once. There should also be the restriction that if an 
sect1-element occures the para-, author- or subtitle-element should not 

Is this possible using schema? I would be very thankful for every hint 
solving my problem.

Received on Sunday, 9 March 2008 22:35:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:14 UTC