Skip to content

Commit

Permalink
Make metadata content model consistent with specification (#1169).
Browse files Browse the repository at this point in the history
  • Loading branch information
skynavga committed Oct 4, 2019
1 parent 7784b1e commit 41ebedd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/rnc/ttml2-metadata.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ TTAF.External.class =

TTAF.metadata.content.extra = empty
TTAF.metadata.content =
(TTAF.MetadataItems.class |
(TTAF.data |
TTAF.MetadataItems.class |
TTAF.External.class |
TTAF.metadata.content.extra)*

Expand Down
6 changes: 5 additions & 1 deletion spec/xsd/ttml2-metadata.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
<xs:include schemaLocation="ttml2-core-attribs.xsd"/>
<xs:import namespace="http://www.w3.org/ns/ttml#metadata"
schemaLocation="ttml2-metadata-items.xsd"/>
<xs:include schemaLocation="ttml2-embedded.xsd"/>
<xs:attributeGroup name="metadata.attlist">
<xs:attributeGroup ref="tt:Core.attrib.class"/>
<xs:attributeGroup ref="tt:Core.Condition.attrib.class"/>
<xs:attributeGroup ref="ttm:Metadata.attrib.class"/>
</xs:attributeGroup>
<xs:complexType name="metadata.eltype">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="tt:Data.class"/>
<xs:any namespace="##other" processContents="lax"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="tt:metadata.attlist"/>
</xs:complexType>
Expand Down

0 comments on commit 41ebedd

Please sign in to comment.