Re: EBML Schema

Moritz Bunkus <[email protected]>
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <[email protected]>
Hey,

I have no objections, however I don't know a lot about XML schemas in
the first place (neither about DTDs, to be honest).

> I propose the specdata.xml file here
> https://github.com/Matroska-Org/foundation-source/blob/master/spectool/specdata.xml
> <https://github.com/Matroska-Org/foundation-source/blob/master/spectool/specdata.xml>
> is a good basis for the consideration of an EBML Schema. From what I
> can see, specdata.xml is an expression of the EBML + Matroska
> specifications to support automated creation of documentation, but the
> structure of this already shares a lot of similarity to XML Schemas.

For both documentation (e.g. the table on the matroska.org specs page is
generated from this file) and code (libMatroska's class hierarchy is
generated automatically from this file) actually.

> Is there a preference in handling the standardization of Matroska:
> documenting it in a similar fashion to our work in the EBML spec or to
> define what an EBML Schema is and consider matroska an expression of
> it?

I'm not sure whether or not I understand the implications. But my gut
feeling is that having a definition for an EBML Schema would benefit
other formats than Matroska, too, therefore the latter seems the way to
go.

> Are some changes to specdata.xml acceptable? Such as a filename change
> or changing the name of the <table> element of some attributes?

Well, like I said above the specdata.xml is used for generating both
documentation and code. Both should stay viable. If changes to it are
made then the accompanying tools must be updated as well.

> Neither the current EBML specs nor the specdata.xml specifically refer
> to the hierarchical arrangement of the elements, but this could be
> presumed by their ordering. For instance, could any level 3 element be
> a child of any level 2 Master-element? I presume not, but I don't
> think it's clear anywhere what parent-child relationships are
> feasible. Possibly specdata.xml and/or the EBML Schema Definition
> could define the relationship between levels of related elements
> similar to how an XML Schema (XSD) does.

So far it is understood that an element not marked as a global element
must only occur as a child of its parent. Its parent is the last element
located before the child element in the specdata file with a lower level
than the child element. Or something like that.

Kind regards,
mosu

_______________________________________________
Matroska-devel mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCAAGBQJV4ASQAAoJEHSvAK3y4yyFqvgQAJioMxjuEI4sqJkzjp8d1v/6
v9S/cDqpwXzEKj/FUgtUDYn2P4lhVj8ypOem8x6kHk5KyGpB7PF69XBwDWgueNg8
keTdWE2sBaAYvhRlgUMRFQXQ3cVQDMePvQ4dyEpM1mOzlAjHHSDwbxEXZtU1x0YJ
WNZ9bQ8xCIj+9+NPs5PFpdqnFhFhQ2thGnBV4RaHw5tXvNMhmr8ugx4XO68fqL3J
Q5AEAPqOLzuOBdCP0NevWTqeu1ZIg+cNpDsGR9oZe5BRL7vFziPz4sST8shLueG2
+VhheXIB7Fjl2VdBdHaxcIjbk0lP5izWLTJV2uYD7uGtEyJaq1x9q6hSNiWgKESC
JagKADjNsDqol85ggB0Jra99KS7cIrLRQSmDprOr1htGgnv7WnZo8F/aq2K9nYaw
Hk0/CJX3YscBPCOflr9b9CxkGlYx1URoS7S9xlaI4aAU7gDCwsGbMUiXEYEnuPZ6
Bn1wKLbGAdBe/rPgCB0+YI2HC7JZEcArBKuvWdvWCQ8JWZjt+8lEFArScLOt+S62
WSCZNtHeGAgTU7lJXjk10P2x68SkL0vU4Qv8YjFpE4VXe1iQNJZW8S4vo6HpzY5J
uuHBksQJW0zzNvQSUBeFUjmfNFIfXnNytvJTQVSiZ9m2qkQ7WHK4Fk1Aq8Tw+KXN
BsrXxK5+MLcLmZ3rjnPo
=hbhQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.