Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minver/maxver attributes to enum values #406

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions EBMLSchema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
</xs:sequence>
<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
28 changes: 28 additions & 0 deletions specification.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,34 @@ The value represents data that **MAY** be stored within the EBML Element.

The `value` attribute is **REQUIRED**.

#### minver

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

The `minver` (minimum version) attribute stores a nonnegative integer that
represents the first version of the docType to support the enum value. The value
**MUST** be greater than or equal to the EBML Element's minimum version this enum belongs to.

The `minver` attribute is **OPTIONAL**. If the `minver`
attribute is not present, the enum's minimum version is the same as the
EBML Element's minimum version this enum 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, the enum's maximum version is the same as the
EBML Element's maximum version this enum belongs to.

### `<extension>` Element

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