Annexe B

Exemple d'un document Madeus

Le document source de l'exemple Bande-Annonce :

<!DOCTYPE Madeus SYSTEM "Madeus.dtd">

<Madeus Name = "Bande Annonce" Version = "1.0">

<Composite Name = "Bande_Annonce">

   <Text Name = "Titre"
          Value = "E G Y P T E"

          FontFamily = "times"

          FontSize = "24"

          FontStyle = "bold"

          Duration = "100 150 250"

          Left = "100"

          Top = "10" />

   <Audio Name = "Musique"
           Source = "rythme.au"
           Duration = "60 65 70" />

   <Composite Name = "Résumé">

      <Image Name = "Bouton"
            Source = "button_stop.gif"
            Href = "NULL" />

      <Composite Name       = "Histoire"
                  FontFamily = "times"
                  FontSize = "14"
                  FontStyle = "bold" >

         <Audio Name = "Audio"
                 Source = "~/mmedia/audio/au/histoire.au"
                 Duration = "30 30 45" />

         <Image Name = "Image"
                 Source = "affiche.jpg"
                 Duration = "10 40 100"
                 Left = "20"
                 Top = "40" />

         <Text Name = "Texte"
                Source = "histoire.html"
                FontSize = "16"
                Width = "100" />

         <Relations>

            <Temporal>

               <Equals Interval1 = "Audio"
                        Interval2 = "Image" />

               <Equals Interval1 = "Image"
                        Interval2 = "Texte" />

            </Temporal>

            <Spatial>

               <Top_align Interval1 = "Image"
                          Interval2 = "Texte" />

               <Right_spacing Interval1 = "Image"
                              Interval2 = "Texte"
                              distance = "10" />

            </Spatial>

         </Relations>

      </Composite>

      <Composite Name = "Extraits">

         <Composite Name = "E1">

            <Video Name   = "V1"
                    Source = "http://samar.inria.fr/video1.mpg"
                    Left = "140"

                    Top = "80" />

            <Audio Name = "A1"
                    Source = "http://samar.inria.fr/audio1.au"
                    Duration = "20 25 30" />

            <Relations>

               <Temporal>

                  <Equals Interval1 = "A1"
                           Interval2 = "V1" />

               </Temporal>

            </Relations>

         </Composite>

         <Composite Name = "E2">

            <Video Name   = "V2"
                    Source = "http://samar.inria.fr/video2.mpg"

                    Left = "140"
                    Top = "80" />

            <Audio Name = "A2"
                    Source = "http://samar.inria.fr/audio2.au"
                    Duration = "30 40 50" />

            <Relations>

               <Temporal>

                  <Equals Interval1 = "A2"
                           Interval2 = "V2" />

               </Temporal>

            </Relations>

         </Composite>

         <Composite Name = "E3">

            <Video Name   = "V3"
                    Source = "http://aruba.inria.fr/video3.mpg"

                    Left = "140"
                    Top = "80" />

            <Audio Name = "A3"
                   Source = "rtsp://aruba.inria.fr/audio3.wav"
                   Duration = "25 30 40" />

            <Relations>

               <Temporal>

                  <Equals Interval1 = "A3"
                           Interval2 = "V3" />

               </Temporal>

            </Relations>

         </Composite>

         <Relations>

            <Temporal>

               <Meets Interval1 = "E1"
                      Interval2 = "E2" />

               <Meets Interval1 = "E2"
                      Interval2 = "E3" />

            </Temporal>

         </Relations>

      </Composite>

      <Relations>

         <Temporal>

            <Parmin Interval1 = "Bouton"
                     Interval2 = "Histoire" />

            <Before Interval1 = "Histoire"
                     Interval2 = "Extraits"
                     delay = "7" />

         </Temporal>

      </Relations>

   </Composite>

   <Text Name = "Générique"
          Source = "generique.txt"
          FontFamily = "helvetica"
          FontSize = "20"
          FontStyle = "bold"
          Duration = "20 20 20"
          Left       = "80"
          Top = "80" />

   <Image Name = "Lien-Extrait"
           Source   = "logo.gif"
           Href = "Extraits"
           Left = "150"
           Top      = "150" />

   <Relations>

      <Temporal>

         <Starts Interval1 = "Titre"
                 Interval2 = "Musique" />

         <Starts Interval1 = "Titre"
                 Interval2 = "Générique" />

         <Before Interval1 = "Générique"
                 Interval2 = "Résumé"
                 delay = "7" />

         <Finishes Interval1 = "Résumé"
                   Interval2 = "Titre" />

         <Equals Interval1 = "Lien-Extrait"
                 Interval2 = "Musique" />

      </Temporal>

   </Relations>

</Composite>

</Madeus>