--- a/RelaxNG/publidoc.rnc dim. oct. 23 16:45:12 2011 +0200
+++ b/RelaxNG/publidoc.rnc dim. oct. 23 18:05:46 2011 +0200
@@ -457,7 +457,7 @@
media.id.attribute,
image.type?
media.id.attribute = attribute id { xsd:NMTOKEN }
-image.type = attribute type { "thumbnail" }
+image.type = attribute type { "cover" | "thumbnail" }
image.content =
copyright?
--- a/RelaxNG/publidoc.rng dim. oct. 23 16:45:12 2011 +0200
+++ b/RelaxNG/publidoc.rng dim. oct. 23 18:05:46 2011 +0200
@@ -986,7 +986,10 @@
</define>
<define name="image.type">
<attribute name="type">
- <value>thumbnail</value>
+ <choice>
+ <value>cover</value>
+ <value>thumbnail</value>
+ </choice>
</attribute>
</define>
<define name="image.content">
Binary file Xml/Documents/Images/torture_test.jpg has changed
Binary file Xml/Documents/Images/torture_test_cover.jpg has changed
--- a/Xml/Documents/torture_test.xml dim. oct. 23 16:45:12 2011 +0200
+++ b/Xml/Documents/torture_test.xml dim. oct. 23 18:05:46 2011 +0200
@@ -45,7 +45,7 @@
possibilités de <name>publidoc</name>.
</p>
</abstract>
- <cover><image id="torture_test"/></cover>
+ <cover><image id="torture_test_cover"/></cover>
<annotation>Ce fichier n'a pas de réelle signification</annotation>
</head>
@@ -282,8 +282,7 @@
<image id="cosette"/>
<caption>
<name of="person">Cosette</name>, illustration pour Les <name
- of="book">Misérables</name> par <name of="person">Émile
- Bayard</name>.
+ of="book">Misérables</name>.
</caption>
</media>
<media>