Derivation by restriction Q?

If the original type is complex and mixed.
The derived type has its complex content derived from the original type,
but does not define itself as being mixed.
Is the derived type also mixed or not.
I don't know if the mixed property behave as the attributes which are
ihnerited automatically if not stated otherwise,
or if the mixed propery behaves as sub elements which are not inherited
automatically if not stated otherwise.!?!

I would appreciate any help.

br,

Jakub Valenta

the following is the part of the XML schema I am dealing wiht, since the ED
is mixed and its child element TN is defined as restriction of the ED is it
also mixed?

<xsd:complexType name='ED' mixed='true'>
    <xsd:annotation>
      <xsd:appinfo>
        <hl7:datatype>ED</hl7:datatype>
        <hl7:pr>(@NULL or REF) and not(@NULL and REF)</hl7:pr>
        <hl7:pr>@NULL or @MT</hl7:pr>
      </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base='v3dt:base'>
        <xsd:sequence>
          <xsd:element name='REF' type='v3dt:TEL' minOccurs='0' maxOccurs
='1'>
            <xsd:annotation>
              <xsd:appinfo>
                <hl7:property>reference</hl7:property>
              </xsd:appinfo>
            </xsd:annotation>
          </xsd:element>
          <xsd:element name='TN' minOccurs='0' maxOccurs='1'>
            <xsd:annotation>
              <xsd:appinfo>
                <hl7:property>thumbnaili</hl7:property>
              </xsd:appinfo>
            </xsd:annotation>
            <xsd:complexType>
              <xsd:complexContent>
                <xsd:restriction base='v3dt:ED'>
                  <xsd:sequence>
                    <xsd:element name='REF' type='v3dt:TEL' minOccurs='0'
maxOccurs='1'/>
                    <xsd:element name='TN' type='v3dt:ED' minOccurs='0'
maxOccurs='0'/>
                  </xsd:sequence>
                </xsd:restriction>
              </xsd:complexContent>
            </xsd:complexType>
          </xsd:element>

Received on Thursday, 11 October 2001 10:16:32 UTC