Ajout de la vidéo
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
ven., 15 juin 2012 02:01:11 +0200
changeset 119 8a879730e853
parent 118 8d2b19e168e1
child 120 01d4b1ac09af
Ajout de la vidéo
RelaxNG/Examples/Documents/Videos/chicken_chair.mp4
RelaxNG/Examples/Documents/torture_test.xml
RelaxNG/publidoc.rnc
Binary file RelaxNG/Examples/Documents/Videos/chicken_chair.mp4 has changed
--- a/RelaxNG/Examples/Documents/torture_test.xml	mar. juin 12 12:01:43 2012 +0200
+++ b/RelaxNG/Examples/Documents/torture_test.xml	ven. juin 15 02:01:11 2012 +0200
@@ -477,6 +477,18 @@
             </media>
           </section>
         </topic>
+        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+        <topic>
+          <head>
+            <title>La vidéo</title>
+          </head>
+          <section>
+           <media>
+              <video id="chicken_chair"/>
+              <caption>Chicken Chair</caption>
+            </media>
+          </section>
+        </topic>
       </division>
     </division>
     
--- a/RelaxNG/publidoc.rnc	mar. juin 12 12:01:43 2012 +0200
+++ b/RelaxNG/publidoc.rnc	ven. juin 15 02:01:11 2012 +0200
@@ -307,7 +307,7 @@
 
 media.content =
    block.head?,
-   (image | audio)+,
+   (image | audio | video)+,
    media.caption?,
    link?
 
@@ -332,6 +332,12 @@
  & audio.type?
 audio.type = attribute type { "music" | "voice" | "background" | "smil" }
 
+# ~~~~~~ video
+video = element video { video.attributes }
+
+video.attributes =
+   media.id.attribute
+
 # ~~~~~~ tooltip
 
 tooltip = element tooltip { tooltip.attributes, tooltip.content }