Ajout du type de son
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
jeu., 24 mai 2012 12:22:55 +0200
changeset 104 2db7cb9721c0
parent 103 b45b3d1a9350
child 105 ce5c5b08cb94
Ajout du type de son
RelaxNG/Examples/Documents/torture_test.xml
RelaxNG/publidoc.rnc
--- a/RelaxNG/Examples/Documents/torture_test.xml	sam. mai 19 00:38:14 2012 +0200
+++ b/RelaxNG/Examples/Documents/torture_test.xml	jeu. mai 24 12:22:55 2012 +0200
@@ -427,7 +427,7 @@
           </head>
           <section>
             <media>
-              <audio id="brahms_lullaby"/>
+              <audio id="brahms_lullaby" type="music"/>
               <caption>
                 Johannes Brahms – Op.49 No.4 Wiegenlied / Lullaby
               </caption>
--- a/RelaxNG/publidoc.rnc	sam. mai 19 00:38:14 2012 +0200
+++ b/RelaxNG/publidoc.rnc	jeu. mai 24 12:22:55 2012 +0200
@@ -314,8 +314,8 @@
 image = element image { image.attributes, image.content }
 
 image.attributes =
-   media.id.attribute,
-   image.type?
+   media.id.attribute
+ & image.type?
 media.id.attribute = attribute id { xsd:NMTOKEN }
 image.type = attribute type { "cover" | "thumbnail" | "icon" }
 
@@ -327,6 +327,8 @@
 
 audio.attributes =
    media.id.attribute
+ & audio.type?
+audio.type = attribute type { "music" | "voice" | "ambiance" }
 
 
 # =============================================================================