W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Derivation by restriction Q?

From: <Jakub.Valenta@Deio.net>
Date: Thu, 11 Oct 2001 17:17:09 +0300
To: xmlschema-dev@w3.org
Message-ID: <OFBF3E2DDF.4D5EFF2F-ONC2256AE2.004D72C4@e-know.net>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT