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

Schema Extension Element

From: Jeff Rafter <jeffrafter@definedweb.com>
Date: Sun, 1 Oct 2000 11:10:04 -0700
Message-ID: <001501c02bd2$d4050840$1f6ffea9@lazarus>
To: <xmlschema-dev@w3.org>
Is there a way to more explicitly control the sequence of an extended
complexType?  For example:

<complexType name="Foo">
  <complexContent>
    <sequence>
      <element name="bar" type="int">
    </sequence>
  </complexContent>
</complexType>

<complexType name="Foo2">
  <complexContent>
    <extension base="Foo">
      <sequence>
        <element name="bar2" type="int">
      </sequence>
    </extension>
  </complexContent>
</complexType>

=========================================
The result of the extension is:

<complexType name="Foo2">
  <complexContent>
    <sequence>
      <element name="bar" type="int">
      <element name="bar2" type="int">
    </sequence>
  </complexContent>
</complexType>

But is there anyway to control the sequence?  Is it possible to control the
order of the resultant sequence-- for example, alaways making the "bar"
element appear at the end of the sequence?

Thanks,
Jeff Rafter
Defined Systems, Inc
Received on Sunday, 1 October 2000 14:10:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:47 UTC