IRT-Open-Source / scf

Subtitling Conversion Framework
Apache License 2.0
52 stars 18 forks source link

EBU-TT2EBU-TT-D Subtitle content conversion fails if tt:metadata present #43

Closed andreastai closed 7 years ago

andreastai commented 7 years ago

The XSLT EBU-TT2EBU-TT-D calls only the first child of a tt:p element and then the child element applies templates to it's sibling. This works fine if the first child of the tt:p is a tt:span element (because the applied template follows this "sibling" strategy). But if the first child is for example tt:metadata this fails and no further content is processed. For a quick fix in the tt:metadata template the next sibling strategy needs to added. In the long run this sibling strategy needs to be factored out.