W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

name conflict

From: andrea Boriero <aboriero@hoc.elet.polimi.it>
Date: Wed, 27 Feb 2002 06:16:09 -0500 (EST)
Message-ID: <015701c1bf80$14a19f20$1aa7af83@pi45.cpi.polimi.it>
To: <xmlschema-dev@w3.org>
i have a problem with name conflict, i do not understand if this schema document is valid or not:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="pippo">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="d">
                    <xs:complexType>
                    </xs:complexType> 
                </xs:element>
                <xs:element name="a" type="xs:string"/>
                <xs:choice> 
                    <xs:element name="b" type="xs:string"/> 
                    <xs:element name="a" type="xs:byte"/> <!-- is it legal ? -->
                    <xs:element name="a" type="xs:byte"/> 
                </xs:choice>
                <xs:sequence>
                    <xs:element name="a"> <!-- and this ? -->
                         <xs:complexType>
                            
                         </xs:complexType>   
                </xs:sequence>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

thanks for your help
andrea boriero
Received on Thursday, 28 February 2002 12:29:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:27 GMT