Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Hello

From: rschloss@--.---.---
To: 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...>


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent