Nettoyage de la présentation
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
dim., 05 juin 2011 16:40:16 +0200
changeset 3 59e42ac69f8f
parent 2 417bb62f2a77
child 4 1db220a61526
Nettoyage de la présentation
RelaxNG/publidoc.rnc
RelaxNG/publidoc.rng
--- a/RelaxNG/publidoc.rnc	dim. juin 05 16:26:16 2011 +0200
+++ b/RelaxNG/publidoc.rnc	dim. juin 05 16:40:16 2011 +0200
@@ -224,12 +224,6 @@
 
 media.id.attribute = attribute id { xsd:NMTOKEN }
 
-# ~~~~~~ caption
-media.caption = element caption { media.caption.content }
-
-media.caption.content =
-   parag+
-
 # ~~~~~~ image
 image = element image { image.attributes, image.content }
 
@@ -239,8 +233,15 @@
 image.content =
    copyright?
 
+# ~~~~~~ caption
+media.caption = element caption { media.caption.content }
+
+media.caption.content =
+   parag+
+
 # ~~~~~~ copyright
 copyright = element copyright { copyright.content }
+
 copyright.content = inlines
 
 
@@ -275,7 +276,8 @@
 
 date = element date { date.attributes, date.content }
 
-date.attributes = date.of.attribute
+date.attributes =
+   date.of.attribute
 date.of.attribute = attribute of { date.of.enumeration }
 date.of.enumeration = "event" | "birth" | "death"
 
--- a/RelaxNG/publidoc.rng	dim. juin 05 16:26:16 2011 +0200
+++ b/RelaxNG/publidoc.rng	dim. juin 05 16:40:16 2011 +0200
@@ -417,17 +417,6 @@
       <data type="NMTOKEN"/>
     </attribute>
   </define>
-  <!-- ~~~~~~ caption -->
-  <define name="media.caption">
-    <element name="caption">
-      <ref name="media.caption.content"/>
-    </element>
-  </define>
-  <define name="media.caption.content">
-    <oneOrMore>
-      <ref name="parag"/>
-    </oneOrMore>
-  </define>
   <!-- ~~~~~~ image -->
   <define name="image">
     <element name="image">
@@ -443,6 +432,17 @@
       <ref name="copyright"/>
     </optional>
   </define>
+  <!-- ~~~~~~ caption -->
+  <define name="media.caption">
+    <element name="caption">
+      <ref name="media.caption.content"/>
+    </element>
+  </define>
+  <define name="media.caption.content">
+    <oneOrMore>
+      <ref name="parag"/>
+    </oneOrMore>
+  </define>
   <!-- ~~~~~~ copyright -->
   <define name="copyright">
     <element name="copyright">