Re: element directly in complexType ?

As I am a freshman in this group, I would like to know if it is 
necessary to send a mail with the discovered problem to 

www-xml-schema-comments@w3.org


or can I assume that if a problem appears on xmlschema-dev@w3.org, it
is sufficient to bring it into attention? 

Don Mullen wrote:
> 
> The example is incorrect.  A top-level <sequence> is required:
> 
> <xs:element name="contextOne">
>      <xs:complexType>
>         <xs:sequence>
>                  <xs:element name="myLocalelement" type="myFirstType"/>
>                  <xs:element ref="globalelement"/>
>         </xs:sequence>
>      </xs:complexType>
>  </xs:element>
> 
> Don Mullen
> TIBCO Extensibility
> 
> > -----Original Message-----
> > From: Miloslav Nic [mailto:nicmila@idoox.com]
> > Sent: Wednesday, October 11, 2000 4:53 AM
> > To: xmlschema-dev@w3.org
> > Subject: xsd:element directly in complexType ?
> >
> >
> > 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)* ,
> > anyAttribute?))))
> >
> >
> > but:
> >
> > in 4.3.2 XML Representation of Element Declaration Schema Components
> >
> > example:
> >
> > <xs:element name="contextOne">
> >     <xs:complexType>
> >         <xs:element name="myLocalelement" type="myFirstType"/>
> >         <xs:element ref="globalelement"/>
> >     </xs:complexType>
> > </xs:element>
> >
> >
> > 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
> > Definition?
> >
> > --
> > ******************************************
> > <firstName> Miloslav </firstName>
> > <surname>   Nic      </surname>
> >
> > <mail>    nicmila@idoox.com    </mail>
> > <support> http://www.zvon.org  </support>
> > <zvonMailingList>
> >     http://www.zvon.org/index.php?nav_id=4
> > </zvonMailingList>
> >

-- 
******************************************
<firstName> Miloslav </firstName>    
<surname>   Nic      </surname>     

<mail>    nicmila@idoox.com    </mail>   
<support> http://www.zvon.org  </support>
<zvonMailingList> 
    http://www.zvon.org/index.php?nav_id=4 
</zvonMailingList>

Received on Wednesday, 11 October 2000 09:24:38 UTC