dx:occurance

Element Information

Model

Children: dx:usage

Attributes

QName Type Fixed Default Use Inheritable Annotation
dx:cardinality dx:cardinalityType optional
dx:max restriction of xs:token optional
maximum occurance of parent element.
++ 0: Parent element is not present
++ 1: single item only
++ 4: upto 4 item only
++ 2: upto 2 item only
++ *: multiple items are possible
dx:min restriction of xs:token optional
minimum occurance of parent element
++ 0: parent element is not mandatory
++ 1: Parent element is mandatory
++ 2: Parent element MUST appear at least 2 times

Used By

Source

<xs:element name="occurance">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="dx:usage" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute ref="dx:cardinality">
      <xs:annotation>
        <xs:documentation>définition of occurance of parent element in standard format</xs:documentation>
        <xs:documentation>++ 0: not present</xs:documentation>
        <xs:documentation>++ 1: Mandatory and unique</xs:documentation>
        <xs:documentation>++ 0..1: Optional</xs:documentation>
        <xs:documentation>++ 0..*: Optional, multiple values are possible</xs:documentation>
        <xs:documentation>++ 1..*: Mandatory, multiple values are possible</xs:documentation>
        <xs:documentation>++ 1..4: Mandatory, upto 4 values are possible</xs:documentation>
        <xs:documentation>++ 1..2: Mandatory, upto 2 values are possible</xs:documentation>
        <xs:documentation>++ 2: MUST appear at least two times</xs:documentation>
        <!-- $Hist:JS:2012-11-27 #3340 for Duration (day and night) -->
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="min">
      <xs:annotation>
        <xs:documentation>minimum occurance of parent element</xs:documentation>
        <xs:documentation>++ 0: parent element is not mandatory</xs:documentation>
        <xs:documentation>++ 1: Parent element is mandatory</xs:documentation>
        <xs:documentation>++ 2: Parent element MUST appear at least 2 times</xs:documentation>
        <!-- $Hist:JS:2012-11-27 #3340 for Duration (day and night) -->
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
          <xs:enumeration value="2"/>
          <!-- $Hist:JS:2012-11-27 #3340 for Duration (day and night) -->
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="max">
      <xs:annotation>
        <xs:documentation>maximum occurance of parent element.</xs:documentation>
        <xs:documentation>++ 0: Parent element is not present</xs:documentation>
        <xs:documentation>++ 1: single item only</xs:documentation>
        <!-- $Hist:JS:2012-11-22 #3340 note 16 and 17 start -->
        <xs:documentation>++ 4: upto 4 item only</xs:documentation>
        <xs:documentation>++ 2: upto 2 item only</xs:documentation>
        <!-- $Hist:JS:2012-11-22 #3340 note 16 and 17 end -->
        <xs:documentation>++ *: multiple items are possible</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
          <xs:enumeration value="2"/>
          <xs:enumeration value="3"/>
          <xs:enumeration value="4"/>
          <xs:enumeration value="*"/>
          <!-- $Hist:JS:2012-11-22 #3340 note 16 and 17-->
          <!-- $Hist:JS:2012-11-22 #3340 note 16 and 17-->
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample