length

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
units restriction of xs:NMTOKEN required

Used By

Element programme

Source

<xs:element name="length">
  <xs:complexType mixed="true">
    <xs:attribute name="units" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="hours"/>
          <xs:enumeration value="minutes"/>
          <xs:enumeration value="seconds"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample