role obligatoire
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
dim., 29 avril 2012 08:39:33 +0200
changeset 101 3ec3b2eceeb8
parent 100 7427de63dd41
child 102 e98e20206464
role obligatoire
RelaxNG/publidoc.rnc
RelaxNG/publiset.rnc
Xml/Documents/les_miserables.xml
Xml/Documents/torture_test.xml
Xml/Sets/composition.xml
--- a/RelaxNG/publidoc.rnc	sam. avril 28 20:12:36 2012 +0200
+++ b/RelaxNG/publidoc.rnc	dim. avril 29 08:39:33 2012 +0200
@@ -373,7 +373,7 @@
    (((firstname, secondname?)?, lastname) | label),
    address?,
    link?,
-   role*
+   role+
 
 # ~~~~~~ firstname, secondname, lastname, label
 firstname = element firstname { firstname.content }
--- a/RelaxNG/publiset.rnc	sam. avril 28 20:12:36 2012 +0200
+++ b/RelaxNG/publiset.rnc	dim. avril 29 08:39:33 2012 +0200
@@ -198,7 +198,7 @@
    (((firstname, secondname?)?, lastname) | label),
    address?,
    link?,
-   role*
+   role+
 
 # ~~~~~~ firstname, secondname, lastname, label
 firstname = element firstname { firstname.content }
@@ -219,7 +219,7 @@
 # ~~~~~~ role
 role = element role { role.content }
 
-role.content = "author" | "illustrator" | "publisher"
+role.content = "author" | "illustrator" | "publisher" | "packager"
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
--- a/Xml/Documents/les_miserables.xml	sam. avril 28 20:12:36 2012 +0200
+++ b/Xml/Documents/les_miserables.xml	dim. avril 29 08:39:33 2012 +0200
@@ -7,6 +7,7 @@
       <contributors>
         <contributor>
           <firstname>Victor</firstname><lastname>HUGO</lastname>
+          <role>author</role>
         </contributor>
       </contributors>
       <date value="1862"/>
--- a/Xml/Documents/torture_test.xml	sam. avril 28 20:12:36 2012 +0200
+++ b/Xml/Documents/torture_test.xml	dim. avril 29 08:39:33 2012 +0200
@@ -11,6 +11,7 @@
       <contributors>
         <contributor>
           <firstname>Patrick</firstname><lastname>PIERRE</lastname>
+          <role>author</role>
         </contributor>
         <contributor>
           <firstname>Tien Haï</firstname><lastname>NGUYEN</lastname>
--- a/Xml/Sets/composition.xml	sam. avril 28 20:12:36 2012 +0200
+++ b/Xml/Sets/composition.xml	dim. avril 29 08:39:33 2012 +0200
@@ -16,6 +16,7 @@
             <label>Prismallia</label>
             <address>12 rue de la Montagne – 75005 Paris</address>
             <link uri="http://www.prismallia.fr">Prismallia</link>
+            <role>packager</role>
           </contributor>
         </contributors>
         <keywordset>