Open spoeschel opened 5 years ago
This restriction enforces that only significant ttm:agent
elements can be created, specified in TTML:
A
ttm:agent
metadata item is considered to be significant only when specified as a child of thehead
element or as a child of ametadata
element child of thehead
element.
Note that this is a semantic restriction in TTML rather than a syntactic one, and it would indeed be conformant, though meaningless, to define ttm:agent
elements elsewhere.
I would like to keep this schema constraint because I think it is serving a useful purpose.
I'd be happy to note the divergence from the specification requirements, say in the README, if that would help?
The resolution to this will depend on ebu/ebu-tt-m-xsd#30.
The element
ttm:agent
is currently only allowed as child of//tt:head/tt:metadata
by the XSD. However TTML doesn't have such a restriction to thett:head
element (as parent oftt:metadata
) here.