{"action":"created","comment":{"url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/comments/46760075","id":46760075,"diff_hunk":"@@ -173,21 +173,55 @@ An EBML Stream is a file that consists of one or many EBML Documents that are co\n \n ## Elements semantic\n \n-### Element Template\n+### EBML Schema\n \n-Element Name:\n+An EBML Schema is an XML Document that defines the properties, arrangement, and usage of EBML Elements that compose a specific EBML Document Type. The relationship of an EBML Schema to an EBML Document may be considered analogous to the relationship of an XML Schema to an XML Document. An EBML Schema MUST be clearly associated with one or many EBML Document Types. An EBML Schema must be expressed as well-formed XML. An EBML Document Type is identified by a unique string stored within the EBML Header element called DocType; for example `matroska` or `webm`.\n \n-    Level:\n-    EBML ID:    []\n-    Mandatory:  [Mandatory]\n-    Multiple:   [For level 0 Elements, this attribute defines whether or not the Element may be used multiple times within an EBML Document. For Elements at Level 1 or greater, this attribute defines whether or not the Element may be used multiple times within its parent Element.]\n-    Range:\n-    Default:    [Default value if the element is not found]\n-    Element Type:\n-    Description:\n+As an XML Document the EBML Schema MUST use `<table>` as the top level element. The `<table>` element may contain `<element>` sub-elements. Each `<element>` node defines one EBML Element through the use of several attributes. Each attribute of the `<element>` node of the EBML Schema is defined here along with a note to say if the attribute is mandatory of not. EBML Schemas many contain additional attributes to extend the semantics but MUST not conflict is the definitions of the `<element>` attributes defined here.","path":"specification.markdown","position":18,"original_position":18,"commit_id":"4d9606b886fbd92f6a7a994d122b375a46a43325","original_commit_id":"4d9606b886fbd92f6a7a994d122b375a46a43325","user":{"login":"mjbshaw","id":1204698,"avatar_url":"https://avatars.githubusercontent.com/u/1204698?v=3","gravatar_id":"","url":"https://api.github.com/users/mjbshaw","html_url":"https://github.com/mjbshaw","followers_url":"https://api.github.com/users/mjbshaw/followers","following_url":"https://api.github.com/users/mjbshaw/following{/other_user}","gists_url":"https://api.github.com/users/mjbshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbshaw/subscriptions","organizations_url":"https://api.github.com/users/mjbshaw/orgs","repos_url":"https://api.github.com/users/mjbshaw/repos","events_url":"https://api.github.com/users/mjbshaw/events{/privacy}","received_events_url":"https://api.github.com/users/mjbshaw/received_events","type":"User","site_admin":false},"body":"\"mandatory **of** not\" → \"mandatory **or** not\"","created_at":"2015-12-05T16:29:13Z","updated_at":"2015-12-05T16:29:13Z","html_url":"https://github.com/Matroska-Org/ebml-specification/pull/40#discussion_r46760075","pull_request_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/comments/46760075"},"html":{"href":"https://github.com/Matroska-Org/ebml-specification/pull/40#discussion_r46760075"},"pull_request":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40","id":52748833,"html_url":"https://github.com/Matroska-Org/ebml-specification/pull/40","diff_url":"https://github.com/Matroska-Org/ebml-specification/pull/40.diff","patch_url":"https://github.com/Matroska-Org/ebml-specification/pull/40.patch","issue_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/40","number":40,"state":"open","locked":false,"title":"Ebml schema","user":{"login":"dericed","id":762604,"avatar_url":"https://avatars.githubusercontent.com/u/762604?v=3","gravatar_id":"","url":"https://api.github.com/users/dericed","html_url":"https://github.com/dericed","followers_url":"https://api.github.com/users/dericed/followers","following_url":"https://api.github.com/users/dericed/following{/other_user}","gists_url":"https://api.github.com/users/dericed/gists{/gist_id}","starred_url":"https://api.github.com/users/dericed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericed/subscriptions","organizations_url":"https://api.github.com/users/dericed/orgs","repos_url":"https://api.github.com/users/dericed/repos","events_url":"https://api.github.com/users/dericed/events{/privacy}","received_events_url":"https://api.github.com/users/dericed/received_events","type":"User","site_admin":false},"body":"This PR touches on many conversations within matroska-devel, github, and (soon) cellar. Please review the section on mandatory/default carefully.\n\nAlso note that the EBML Schema section currently defined the current instance of the Matroska which is a machine-readable XML definition of the Matroska EBML DocType as seen here https://github.com/Matroska-Org/foundation-source/blob/3414f292bb5b1ac5ee2fd99976b7274fd81e48ee/spectool/specdata.xml. I hope to advance specdata.xml more closely to practices used in XML Schemas, but syncing the existing documentation with the existing specdata.xml seems like a good place to start.","created_at":"2015-12-05T06:48:10Z","updated_at":"2015-12-05T16:29:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1f746e5b99671ce4f10311ea9f3299d8d433186","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40/commits","review_comments_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40/comments","review_comment_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/40/comments","statuses_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/statuses/4d9606b886fbd92f6a7a994d122b375a46a43325","head":{"label":"MediaArea:ebml-schema","ref":"ebml-schema","sha":"4d9606b886fbd92f6a7a994d122b375a46a43325","user":{"login":"MediaArea","id":7846736,"avatar_url":"https://avatars.githubusercontent.com/u/7846736?v=3","gravatar_id":"","url":"https://api.github.com/users/MediaArea","html_url":"https://github.com/MediaArea","followers_url":"https://api.github.com/users/MediaArea/followers","following_url":"https://api.github.com/users/MediaArea/following{/other_user}","gists_url":"https://api.github.com/users/MediaArea/gists{/gist_id}","starred_url":"https://api.github.com/users/MediaArea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MediaArea/subscriptions","organizations_url":"https://api.github.com/users/MediaArea/orgs","repos_url":"https://api.github.com/users/MediaArea/repos","events_url":"https://api.github.com/users/MediaArea/events{/privacy}","received_events_url":"https://api.github.com/users/MediaArea/received_events","type":"Organization","site_admin":false},"repo":{"id":34998353,"name":"ebml-specification","full_name":"MediaArea/ebml-specification","owner":{"login":"MediaArea","id":7846736,"avatar_url":"https://avatars.githubusercontent.com/u/7846736?v=3","gravatar_id":"","url":"https://api.github.com/users/MediaArea","html_url":"https://github.com/MediaArea","followers_url":"https://api.github.com/users/MediaArea/followers","following_url":"https://api.github.com/users/MediaArea/following{/other_user}","gists_url":"https://api.github.com/users/MediaArea/gists{/gist_id}","starred_url":"https://api.github.com/users/MediaArea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MediaArea/subscriptions","organizations_url":"https://api.github.com/users/MediaArea/orgs","repos_url":"https://api.github.com/users/MediaArea/repos","events_url":"https://api.github.com/users/MediaArea/events{/privacy}","received_events_url":"https://api.github.com/users/MediaArea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MediaArea/ebml-specification","description":"the specification for the EBML format","fork":true,"url":"https://api.github.com/repos/MediaArea/ebml-specification","forks_url":"https://api.github.com/repos/MediaArea/ebml-specification/forks","keys_url":"https://api.github.com/repos/MediaArea/ebml-specification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MediaArea/ebml-specification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MediaArea/ebml-specification/teams","hooks_url":"https://api.github.com/repos/MediaArea/ebml-specification/hooks","issue_events_url":"https://api.github.com/repos/MediaArea/ebml-specification/issues/events{/number}","events_url":"https://api.github.com/repos/MediaArea/ebml-specification/events","assignees_url":"https://api.github.com/repos/MediaArea/ebml-specification/assignees{/user}","branches_url":"https://api.github.com/repos/MediaArea/ebml-specification/branches{/branch}","tags_url":"https://api.github.com/repos/MediaArea/ebml-specification/tags","blobs_url":"https://api.github.com/repos/MediaArea/ebml-specification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MediaArea/ebml-specification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MediaArea/ebml-specification/git/refs{/sha}","trees_url":"https://api.github.com/repos/MediaArea/ebml-specification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MediaArea/ebml-specification/statuses/{sha}","languages_url":"https://api.github.com/repos/MediaArea/ebml-specification/languages","stargazers_url":"https://api.github.com/repos/MediaArea/ebml-specification/stargazers","contributors_url":"https://api.github.com/repos/MediaArea/ebml-specification/contributors","subscribers_url":"https://api.github.com/repos/MediaArea/ebml-specification/subscribers","subscription_url":"https://api.github.com/repos/MediaArea/ebml-specification/subscription","commits_url":"https://api.github.com/repos/MediaArea/ebml-specification/commits{/sha}","git_commits_url":"https://api.github.com/repos/MediaArea/ebml-specification/git/commits{/sha}","comments_url":"https://api.github.com/repos/MediaArea/ebml-specification/comments{/number}","issue_comment_url":"https://api.github.com/repos/MediaArea/ebml-specification/issues/comments{/number}","contents_url":"https://api.github.com/repos/MediaArea/ebml-specification/contents/{+path}","compare_url":"https://api.github.com/repos/MediaArea/ebml-specification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MediaArea/ebml-specification/merges","archive_url":"https://api.github.com/repos/MediaArea/ebml-specification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MediaArea/ebml-specification/downloads","issues_url":"https://api.github.com/repos/MediaArea/ebml-specification/issues{/number}","pulls_url":"https://api.github.com/repos/MediaArea/ebml-specification/pulls{/number}","milestones_url":"https://api.github.com/repos/MediaArea/ebml-specification/milestones{/number}","notifications_url":"https://api.github.com/repos/MediaArea/ebml-specification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MediaArea/ebml-specification/labels{/name}","releases_url":"https://api.github.com/repos/MediaArea/ebml-specification/releases{/id}","created_at":"2015-05-03T19:43:13Z","updated_at":"2015-05-03T17:48:36Z","pushed_at":"2015-12-05T06:45:29Z","git_url":"git://github.com/MediaArea/ebml-specification.git","ssh_url":"git@github.com:MediaArea/ebml-specification.git","clone_url":"https://github.com/MediaArea/ebml-specification.git","svn_url":"https://github.com/MediaArea/ebml-specification","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Matroska-Org:master","ref":"master","sha":"5592c22d687bbb2f1366032ab4411e4c6c44ccd5","user":{"login":"Matroska-Org","id":3148284,"avatar_url":"https://avatars.githubusercontent.com/u/3148284?v=3","gravatar_id":"","url":"https://api.github.com/users/Matroska-Org","html_url":"https://github.com/Matroska-Org","followers_url":"https://api.github.com/users/Matroska-Org/followers","following_url":"https://api.github.com/users/Matroska-Org/following{/other_user}","gists_url":"https://api.github.com/users/Matroska-Org/gists{/gist_id}","starred_url":"https://api.github.com/users/Matroska-Org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matroska-Org/subscriptions","organizations_url":"https://api.github.com/users/Matroska-Org/orgs","repos_url":"https://api.github.com/users/Matroska-Org/repos","events_url":"https://api.github.com/users/Matroska-Org/events{/privacy}","received_events_url":"https://api.github.com/users/Matroska-Org/received_events","type":"Organization","site_admin":false},"repo":{"id":34994967,"name":"ebml-specification","full_name":"Matroska-Org/ebml-specification","owner":{"login":"Matroska-Org","id":3148284,"avatar_url":"https://avatars.githubusercontent.com/u/3148284?v=3","gravatar_id":"","url":"https://api.github.com/users/Matroska-Org","html_url":"https://github.com/Matroska-Org","followers_url":"https://api.github.com/users/Matroska-Org/followers","following_url":"https://api.github.com/users/Matroska-Org/following{/other_user}","gists_url":"https://api.github.com/users/Matroska-Org/gists{/gist_id}","starred_url":"https://api.github.com/users/Matroska-Org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matroska-Org/subscriptions","organizations_url":"https://api.github.com/users/Matroska-Org/orgs","repos_url":"https://api.github.com/users/Matroska-Org/repos","events_url":"https://api.github.com/users/Matroska-Org/events{/privacy}","received_events_url":"https://api.github.com/users/Matroska-Org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Matroska-Org/ebml-specification","description":"the specification for the EBML format","fork":false,"url":"https://api.github.com/repos/Matroska-Org/ebml-specification","forks_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/forks","keys_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/teams","hooks_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/hooks","issue_events_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/events{/number}","events_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/events","assignees_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/assignees{/user}","branches_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/branches{/branch}","tags_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/tags","blobs_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/git/refs{/sha}","trees_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/statuses/{sha}","languages_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/languages","stargazers_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/stargazers","contributors_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/contributors","subscribers_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/subscribers","subscription_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/subscription","commits_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/commits{/sha}","git_commits_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/git/commits{/sha}","comments_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/comments{/number}","issue_comment_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/comments{/number}","contents_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/contents/{+path}","compare_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/merges","archive_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/downloads","issues_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues{/number}","pulls_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls{/number}","milestones_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/milestones{/number}","notifications_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/labels{/name}","releases_url":"https://api.github.com/repos/Matroska-Org/ebml-specification/releases{/id}","created_at":"2015-05-03T17:48:36Z","updated_at":"2015-12-03T09:31:36Z","pushed_at":"2015-12-05T06:48:10Z","git_url":"git://github.com/Matroska-Org/ebml-specification.git","ssh_url":"git@github.com:Matroska-Org/ebml-specification.git","clone_url":"https://github.com/Matroska-Org/ebml-specification.git","svn_url":"https://github.com/Matroska-Org/ebml-specification","homepage":null,"size":436,"stargazers_count":5,"watchers_count":5,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40"},"html":{"href":"https://github.com/Matroska-Org/ebml-specification/pull/40"},"issue":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/40"},"comments":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/Matroska-Org/ebml-specification/statuses/4d9606b886fbd92f6a7a994d122b375a46a43325"}}}}