W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2000

xsd:element directly in complexType ?

From: Miloslav Nic <nicmila@idoox.com>
Date: Wed, 11 Oct 2000 10:53:19 +0200
Message-ID: <39E42A7F.D678319F@idoox.com>
To: xmlschema-dev@w3.org
In XML Schema Part1:  

element is not listed as a permitted child of complexType:

XML Representation Summary:  complexType Element Information Item

Content: (annotation? , (simpleContent | complexContent | ((group | all
| choice |
              sequence)? , ((attribute | attributeGroup)* ,


in 4.3.2 XML Representation of Element Declaration Schema Components


<xs:element name="contextOne">
        <xs:element name="myLocalelement" type="myFirstType"/>
        <xs:element ref="globalelement"/>

I would personally prefer to have the possibility to use elements
directly in complexType and 
assume that there is implicitly assumed a sequence as the parent of all
of them.

Is the example wrong or was the xsd:element missed in Complex Type

<firstName> Miloslav </firstName>    
<surname>   Nic      </surname>     

<mail>    nicmila@idoox.com    </mail>   
<support> http://www.zvon.org  </support>
Received on Wednesday, 11 October 2000 04:53:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:47 UTC