default

indicates whether or not this element is selected by default when its
parent is selected.

Attribute Information

Used By

Source

<xs:attribute name="default" default="false">
  <xs:annotation>
    <xs:documentation>indicates whether or not this element is selected by default when its parent is selected.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:enumeration value="true">
        <xs:annotation>
          <xs:documentation>This element is selected if its parent is selected</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="false">
        <xs:annotation>
          <xs:documentation>This element can only be selected explicitly, unless it is the only one of its kind, in which case it is selected if its parent is selected.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:attribute>

Sample