--- 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" }
# =============================================================================