chapters DTD: fix required ChapterLanguage & ChapLanguageIETF missing

This commit is contained in:
Moritz Bunkus 2022-10-09 12:34:44 +02:00
parent 944454a7fa
commit f8a87eea1f
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
3 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,8 @@
DTD.
* Chapters DTD: corrected the old name `EditionManaged` to
`EditionFlagOrdered`.
* Chapters DTD: fixed `ChapLanguageIETF` missing its element declaration &
`ChapterLanguage` being required.
* XML DTDs: fixed elements representing binary data not allowing the `format`
attribute.

View File

@ -30,7 +30,7 @@
<ChapterTimeStart>00:01:00.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>Act 1</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>0</ChapterSkipType>
</ChapterAtom>
@ -38,7 +38,7 @@
<ChapterTimeStart>00:05:30.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>Act 2</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>0</ChapterSkipType>
</ChapterAtom>
@ -47,7 +47,7 @@
<ChapterTimeEnd>00:12:55.000</ChapterTimeEnd>
<ChapterDisplay>
<ChapterString>Credits</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>2</ChapterSkipType>
</ChapterAtom>

View File

@ -39,7 +39,7 @@
<!ELEMENT ChapterDisplay (
ChapterString,
ChapterLanguage+,
ChapterLanguage*,
ChapLanguageIETF*,
ChapterCountry*)>
@ -73,4 +73,5 @@
<!ELEMENT ChapterString (#PCDATA)>
<!ELEMENT ChapterLanguage (#PCDATA)>
<!ELEMENT ChapLanguageIETF (#PCDATA)>
<!ELEMENT ChapterCountry (#PCDATA)>