W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

RE: Meaning of error in MSXML

From: Dare Obasanjo <dareo@microsoft.com>
Date: Wed, 24 Sep 2003 18:35:22 -0700
Message-ID: <830178CE7378FC40BC6F1DDADCFDD1D1173C32@RED-MSG-31.redmond.corp.microsoft.com>
To: <chris@publicbar.com>, <xmlschema-dev@w3.org>

You cannot have both a type attribute and an embedded complex type on an element declaration. 


From: xmlschema-dev-request@w3.org on behalf of chris@publicbar.com
Sent: Wed 9/24/2003 4:51 PM
To: xmlschema-dev@w3.org
Subject: Meaning of error in MSXML


Below is the error I get, I know its telling me that the type cannot be
simpleType or complexType.
But I don't understand why, I am obviously missing something.

./PRPA_MT101001.xsd#/schema[1]/complexType[position() = 1 and @name =
e[1]/element[position() = 7 and @name = 'assigningOrganization']
'type' cannot be present with either 'simpleType' or 'complexType'.

Inside PRPA_MT101001.xsd i have:
<xs:complexType name="PRPA_MT101001.IdentifiedPerson">


<xs:element name="effectiveTime" type="IVL_TS" minOccurs="0" maxOccurs="1"/>

<xs:element name="identifiedPerson" type="PRPA_MT101001.Person"
minOccurs="1" maxOccurs="1"/>

<xs:element name="assigningOrganization" minOccurs="1" maxOccurs="1"
nillable="true" type="COCT_MT150002.Organization"> <----*** problem



PRPA_MT101001.xsd  includes COCT_MT150002.xsd which defines


<xs:complexType name="COCT_MT150002.Organization">


<xs:element name="id" type="II" minOccurs="1" maxOccurs="unbounded"/>

<xs:element name="code" type="CE" minOccurs="0" maxOccurs="1">


effectiveTime and identifiedPerson doesn't seem to cause an error. Any tips




This email transmission is intended for the exclusive use of
the person, organisation, or corporation to which it is addressed,
and may contain information that is privileged or confidential. 
If the reader of this email transmission is not the intended
recipient, or an employee or agent responsible for delivering this
email transmission to the intended recipient, you are hereby notified
that any disclosure, distribution (forwarding) or copying of this
email transmission is prohibited and that the contents must be kept
strictly confidential. 

If you have received this email transmission in error, kindly notify us
immediately by return email or telephone and delete email immediately. 

Thank you.
Received on Wednesday, 24 September 2003 21:37:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC