![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Impact of the usage of unique identifier as URN into XML docu ment s ? [Thread Next] Re: HelloTo: xmlschema-dev@--.--- Date: 3/18/2004 9:28:00 PM
Is there any reason why myDCT is an invalid restriction of myCT?
Intuitively it seems it is not but there is verbiage that may imply that
it is.
<xs:schema elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Person">
<xs:sequence>
<xs:element name="FirstName" =
type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Emp">
<xs:complexContent>
<xs:extension base="Person">
<xs:sequence>
<xs:element name="LastName" =
type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="myCT">
<xs:sequence>
<xs:element name="Person" =
type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="myDCT">
<xs:complexContent>
<xs:restriction base="myCT">
<xs:sequence>
<xs:element name="Person" type="Emp"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
--
PITHY WORDS OF WISDOM
The first myth of management is that it exists.
This posting is provided "AS IS" with no warranties, and confers no
rights.
From rschloss@u... Wed Mar 17 22:28:58 2004
Return-Path: <rschloss@u...> | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
