W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2010

xs:all reuse

From: Karl Stubsjoen <kstubs@gmail.com>
Date: Tue, 1 Jun 2010 09:59:43 -0700
Message-ID: <AANLkTimIRdzKENhAAFae4_G3T30HrM1oRzllsMas_z_T@mail.gmail.com>
To: xmlschema-dev@w3.org
I have a complextype, which looks sort of like this:

<xs:complexType name="my complext type">
    <xs:element name="item1"/>
    <xs:element name="item2"/>
    <xs:element name="item3"/>
   <xs:element name="group">
        this group should refer to to this set of xs:all elements
        allowing a child, child, child ... relationship
  <xs:attributeGroup ref="common"/>
  <xs:attribute name="title"/>
  </xs:attribute name="name"/>

 Maybe not possible, but trying to understand. How could I accomplish
this?  So at the top most level I have an element defined as the type
"my complex type", which result in this element with attributes: <all
common attributes> + title, and name and the elements: item1, item2,
item3 and group.  I guess I don't understand how to define the set of
<xs:all> items as a type which I can then reuse to define  the element

Received on Wednesday, 2 June 2010 12:30:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:56 UTC