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.
Coverage increased (+0.003%) to 85.148% when pulling f6fcbb45d834c770845e7e304c0a9d9e54f8b40b on issue-524-require-region-in-layout into 599252fdd94e12a56d18545b68034fceaea9b305 on release/3.0.
Updates the XSD to match the spec, which requires that if a
layout
element is present, it must have at least oneregion
child. In Part 3 thelayout
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 noregion
children, thelayout
element itself is removed.Closes #524.