ebu / ebu-tt-live-toolkit

Toolkit for supporting the EBU-TT Live specification
http://ebu.github.io/ebu-tt-live-toolkit/
BSD 3-Clause "New" or "Revised" License
25 stars 10 forks source link

Make region required in Part 3 docs #525

Open nigelmegitt opened 4 years ago

nigelmegitt commented 4 years ago

Updates the XSD to match the spec, which requires that if a layout element is present, it must have at least one region child. In Part 3 the layout element itself is optional, but in Part 1 it is required.

Also update the test XML templates to be valid: many of them had invalid empty layout elements.

Fix the Segmenter so that if a layout element has no region children, the layout element itself is removed.

Closes #524.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.003%) to 85.148% when pulling f6fcbb45d834c770845e7e304c0a9d9e54f8b40b on issue-524-require-region-in-layout into 599252fdd94e12a56d18545b68034fceaea9b305 on release/3.0.