Skip to content

Commit

Permalink
add a maxver attribute to enum values
Browse files Browse the repository at this point in the history
This could allow deprecating enum values.
  • Loading branch information
robUx4 committed Jun 6, 2021
1 parent 9ab12b2 commit b3d485c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions EBMLSchema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
<xs:attribute name="label"/>
<xs:attribute name="value" use="required"/>
<xs:attribute name="minver"/>
<xs:attribute name="maxver"/>
</xs:complexType>

<xs:complexType name="documentationType" mixed="true">
Expand Down
15 changes: 15 additions & 0 deletions specification.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,21 @@ The `minver` attribute is **OPTIONAL**. If the `minver`
attribute is not present, then the enum value has the same value as the `minver` attribute of the
EBML Element it belongs to.

#### maxver

Within an EBML Schema, the XPath of the `@value` attribute is
`/EBMLSchema/element/restriction/enum/@maxver`.

The `maxver` (maximum version) attribute stores a nonnegative integer that
represents the last or most recent version of the docType to support
the enum value. `maxver` **MUST** be greater than or equal to
the first version of the docType to support the enum value, whether it's set
in the `minver` attribute of the enum or implied.

The `maxver` attribute is **OPTIONAL**. If the `maxver` attribute is
not present, then the enum value's maximum version is the value
stored in the `version` attribute of <EBMLSchema>.

### `<extension>` Element

Within an EBML Schema, the XPath of the `<extension>`
Expand Down

0 comments on commit b3d485c

Please sign in to comment.