Hi all,

(1) Does the XML Schema Standard allows a ComplexType A to extend or
restrict a base ComplexType B by a SimpleContent? If yes, what does A's
SimpleContent mean?

SCHEMA:
   <xsd:element "myA" type="A"/>

   <xsd:complexType name="B">
      <xsd:sequence>
                <xsd:element name="whatever" type="xsd:string"/>
      </xsd:sequence>
   </xsd:complexType>

   <xsd:complexType name="A">
      <xsd:simpleContent>
         <xsd:restriction base="Cat">
            <xsd:enumeration value="A"/>
            <xsd:enumeration value="D"/>
         </xsd:restriction>
      </xsd:simpleContent>
   </xsd:complexType>

(2) Does the XML Schema standard specifies that when a ComplexType X is a
SimpleContent extending or deriving from another ComplexType Y that the
ComplexType Y also is a SimpleContent extention or derivation from either a
SimpleType or another ComplexType following the same rule?

SCHEMA:
   <xsd:complexType name="">
      <xsd:complexContent>
           <xsd:extension base="MyZComplexType"/>
      </xsd:complexContent>
   </xsd:complexType>

   <xsd:complexType name="X">
      <xsd:simpleContent>
         <xsd:restriction base="Y">
            <xsd:enumeration value="A"/>
            <xsd:enumeration value="D"/>
         </xsd:restriction>
      </xsd:simpleContent>
   </xsd:complexType>


Thanks,

Yuri

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to