Commit d84d60f5 authored by Thomas Dodds's avatar Thomas Dodds Committed by canterburym
Browse files

Had to build a simple type for GNbID length to restrict the integer length

parent 63a0f48c
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -318,11 +318,18 @@

  <xs:complexType name="GNbID">
    <xs:sequence>
      <xs:element name="BitLength" type="xs:integer" minInclusive="22" maxInclusive="32"/>
      <xs:element name="BitLength" type="GNbIDLength"/>
      <xs:element name="GNbValue" type="GNbValue"/>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="GNbIDLength">
    <xs:restriction base="xs:integer">
      <xs:minInclusive value="22"/>
      <xs:maxInclusive value="32"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="GNbValue">
    <xs:restriction base="xs:string">
      <xs:pattern value="([A-Fa-f0-9]{6,8})"/>