# HG changeset patch # User Patrick PIERRE <patrick.pierre@prismallia.fr> # Date 1319385946 -7200 # Node ID 5181169ff02df30bf2a49e352bd869f1082bf6f7 # Parent e533ca9494a640d4cbdd35bee0f9709c255f08c1 Amélioration couverture diff -r e533ca9494a6 -r 5181169ff02d RelaxNG/publidoc.rnc --- 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? diff -r e533ca9494a6 -r 5181169ff02d RelaxNG/publidoc.rng --- 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"> diff -r e533ca9494a6 -r 5181169ff02d Xml/Documents/Images/torture_test.jpg Binary file Xml/Documents/Images/torture_test.jpg has changed diff -r e533ca9494a6 -r 5181169ff02d Xml/Documents/Images/torture_test_cover.jpg Binary file Xml/Documents/Images/torture_test_cover.jpg has changed diff -r e533ca9494a6 -r 5181169ff02d Xml/Documents/torture_test.xml --- 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>