ebu / ebu-tt-xsd

A public repository with EBU-TT XML Schemas
1 stars 0 forks source link

tt:br doesn't allow @ttm:agent #5

Closed spoeschel closed 5 years ago

spoeschel commented 5 years ago

According to TTML, the tt:br element allows "any attribute in TT Metadata namespace". This includes also the attribute @ttm:agent, which is currently not allowed by the XSD on this element.

[it is of course questionable whether it makes sense to use this attribute here, but technically it is allowed there]

nigelmegitt commented 5 years ago

Just for posterity, Tech3350 v1.2 §2.2 says

Attributes in the TTML metadata namespace ("http://www.w3.org/ns/ttml#metadata") may appear on any TTML element where TTML 1 permits the use of attributes in that namespace. The content models of the elements tt:body, tt:div, tt:p, tt:span and tt:br allow the use of attributes in the TTML metadata namespace.

TTML1 says br can contain:

{any attribute in TT Metadata namespace}

And that namespace includes the attributes ttm:agent and ttm:role so both of those should be permitted on br.