Ajout de l'attribut alt
authorPatrick PIERRE
mar., 13 mai 2014 12:59:42 +0200
changeset 312 7f6b762880b4
parent 311 edaace4c8f05
child 313 e4f154ea2837
Ajout de l'attribut alt
RelaxNG/Examples/Documents/torture_test.xml
RelaxNG/publidoc.rnc
--- a/RelaxNG/Examples/Documents/torture_test.xml	mar. avril 29 13:50:50 2014 +0200
+++ b/RelaxNG/Examples/Documents/torture_test.xml	mar. mai 13 12:59:42 2014 +0200
@@ -783,7 +783,8 @@
               </caption>
             </media>
             <media type="logo">
-              <image id="prismallia_logo" type="thumbnail">
+              <image id="prismallia_logo" type="thumbnail"
+                     alt="Logo Prismallia">
                 <?tune target="html" format="svg"?>
               </image>
               <caption>Le logo de <name>Prismallia</name></caption>
--- a/RelaxNG/publidoc.rnc	mar. avril 29 13:50:50 2014 +0200
+++ b/RelaxNG/publidoc.rnc	mar. mai 13 12:59:42 2014 +0200
@@ -584,9 +584,12 @@
 
 image.attributes =
    media.id.attribute
- & image.type?
+ & image.type.attribute?
+ & alt.attribute?
 media.id.attribute = attribute id { xsd:NMTOKEN }
-image.type = attribute type { "cover" | "thumbnail" | "icon" | "animation" }
+image.type.attribute = attribute type {
+   "cover" | "thumbnail" | "icon" | "animation" }
+alt.attribute = attribute alt { text }
 
 media.image.content =
    copyright?,