[Cellar] enumeration lists for EBML Schema

Dave Rice <dave@dericed.com> Thu, 02 February 2017 00:01 UTC

Return-Path: <dave@dericed.com>
X-Original-To: cellar@ietfa.amsl.com
Delivered-To: cellar@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B359B1295F8 for <cellar@ietfa.amsl.com>; Wed, 1 Feb 2017 16:01:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.12
X-Spam-Level:
X-Spam-Status: No, score=-1.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wj_mzXRAcTFt for <cellar@ietfa.amsl.com>; Wed, 1 Feb 2017 16:01:06 -0800 (PST)
Received: from s172.web-hosting.com (s172.web-hosting.com [68.65.122.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5077C12959A for <cellar@ietf.org>; Wed, 1 Feb 2017 16:01:06 -0800 (PST)
Received: from cpe-104-162-86-103.nyc.res.rr.com ([104.162.86.103]:37602 helo=[10.0.1.3]) by server172.web-hosting.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from <dave@dericed.com>) id 1cZ4pk-001J2y-M7 for cellar@ietf.org; Wed, 01 Feb 2017 19:01:05 -0500
From: Dave Rice <dave@dericed.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-Id: <8A89A5B6-BBDE-40F4-92C9-68FCF2881B21@dericed.com>
Date: Wed, 01 Feb 2017 19:01:02 -0500
To: Codec Encoding for LossLess Archiving and Realtime transmission <cellar@ietf.org>
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
X-Mailer: Apple Mail (2.3124)
X-OutGoing-Spam-Status: No, score=-2.9
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server172.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dericed.com
X-Get-Message-Sender-Via: server172.web-hosting.com: authenticated_id: dave@dericed.com
X-Authenticated-Sender: server172.web-hosting.com: dave@dericed.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/cellar/E4LBzYKAJwbHO0Y4LtYN3plPV-8>
Subject: [Cellar] enumeration lists for EBML Schema
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Codec Encoding for LossLess Archiving and Realtime transmission <cellar.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cellar>, <mailto:cellar-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cellar/>
List-Post: <mailto:cellar@ietf.org>
List-Help: <mailto:cellar-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cellar>, <mailto:cellar-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Feb 2017 00:01:08 -0000

Hi cellar,

These pull requests relate to an issue Steve opened at https://github.com/Matroska-Org/ebml-specification/issues/114 for defining an enumeration list for EBML Elements.

This pull request includes an update to the EBMLSchema.xsd to allow <enum> elements along with documentation in the EBML spec, https://github.com/Matroska-Org/ebml-specification/pull/130. And this updates the EBML Schema for Matroska accordingly: https://github.com/Matroska-Org/matroska-specification/pull/92. This is inspired by the restriction element of XML Schemas (http://www.w3schools.com/xml/schema_facets.asp).

So:

<element name="TrackType" path="1*1(\Segment\Tracks\TrackEntry\TrackType)" id="0x83" type="uinteger" minOccurs="1" maxOccurs="1" minver="1" range="1-254”>
  <documentation lang="en">A set of track types coded on 8 bits (1: video, 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, 0x12: buttons, 0x20: control).</documentation>
</element>

becomes:

<element name="TrackType" path="1*1(\Segment\Tracks\TrackEntry\TrackType)" id="0x83" type="uinteger" minOccurs="1" maxOccurs="1" minver="1" range="1-254">
  <documentation lang="en">A set of track types coded on 8 bits.</documentation>
  <restriction>
    <enum value="1" label="video" />
    <enum value="2" label="audio" />
    <enum value="3" label="complex" />
    <enum value="16" label="logo" />
    <enum value="17" label="subtitle" />
    <enum value="18" label="buttons" />
    <enum value="32" label="control" />
  </restriction>
</element>

This impacts the definition of the following Elements:

ChapterTranslateCodec
TrackType
TrackTranslateCodec
FlagInterlaced
FieldOrder
StereoMode
OldStereoMode
DisplayUnit
AspectRatioType
MatrixCoefficients
ChromaSitingHorz
ChromaSitingVert
Range
TransferCharacteristics
Primaries
ProjectionType
TrackPlaneType
ChapProcessTime

Comments welcome,
Dave