<?xml version="1.0" encoding="utf-8" ?>

<!-- ________________________________________________________ -->
<!--                                                          -->
<!-- jimaku is the top-level XML element for jimaku multilingual subtitles files.  -->
<!-- ________________________________________________________ -->

<!ELEMENT jimaku (titles, style?, head?, subtitles) >
<!-- ov = original language of the movie -->
<!-- languages = list of available subtitle languages in ISO 639-1 two letters code -->
<!ATTLIST jimaku
            version CDATA #FIXED "1.0"
            ov   CDATA #IMPLIED
            languages   CDATA #IMPLIED
>

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- titles contains the list of the titles of the movie in different languages -->
<!-- ______________________________________________________________ -->

<!ELEMENT titles (title+) >

<!-- _____________________________________________________________________ -->
<!--                                                                       -->
<!-- title contains the title of the movie in one language                 -->
<!-- _____________________________________________________________________ -->

<!ELEMENT title (#PCDATA) >
<!-- xml:lang attribute is the ISO 639-1 two letter code of the language -->
<!ATTLIST title
            xml:lang CDATA #IMPLIED
>

<!-- _____________________________________________________________________ -->
<!--                                                                       -->
<!-- style contains a css stylesheet representing the subtitles styles     -->
<!-- This element is equivalent to the HTML style element                  -->
<!-- _____________________________________________________________________ -->

<!ELEMENT style (#PCDATA) >
<!ATTLIST style
            type CDATA #FIXED "text/css"
>

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- head contains header information coming from various subtitles -->
<!-- formats like QuickTime of SubStation Alpha subtitles           -->
<!-- ______________________________________________________________ -->

<!ELEMENT head (#PCDATA) >

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- subtitles contains the list of subtitles                       -->
<!-- ______________________________________________________________ -->

<!ELEMENT subtitles (st+) >
<!-- class attribute refers to the CSS style like in HTML -->
<!-- this class attribute is the default style for all the subtitles -->
<!ATTLIST subtitles
            class CDATA #IMPLIED
>

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- st is a subtitle                                               -->
<!-- ______________________________________________________________ -->

<!ELEMENT st (n,start,end,txt+) >
<!-- n attribute is the subtitle number -->
<!-- class attribute refers to the CSS style like in HTML -->
<!ATTLIST st
            n CDATA #IMPLIED
            class CDATA #IMPLIED
>

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- start is the start time of the subtitle in HH:mm:ss.SSS format -->
<!-- ______________________________________________________________ -->

<!ELEMENT start (#PCDATA) >

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- end is the end time of the subtitle in HH:mm:ss.SSS format     -->
<!-- ______________________________________________________________ -->

<!ELEMENT end (#PCDATA) >

<!-- ______________________________________________________________ -->
<!--                                                                -->
<!-- txt is the subtitle text                                       -->
<!-- ______________________________________________________________ -->

<!ELEMENT txt (#PCDATA) >
<!-- xml:lang attribute is the ISO 639-1 two letter code of the language -->
<!ATTLIST txt
            xml:lang CDATA #IMPLIED
>

