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.


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'>
        <hl7:pr>(@NULL or REF) and not(@NULL and REF)</hl7:pr>
        <hl7:pr>@NULL or @MT</hl7:pr>
      <xsd:extension base='v3dt:base'>
          <xsd:element name='REF' type='v3dt:TEL' minOccurs='0' maxOccurs
          <xsd:element name='TN' minOccurs='0' maxOccurs='1'>
                <xsd:restriction base='v3dt:ED'>
                    <xsd:element name='REF' type='v3dt:TEL' minOccurs='0'
                    <xsd:element name='TN' type='v3dt:ED' minOccurs='0'
Received on Thursday, 11 October 2001 10:16:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC