Amélioration de l'édition des méta-données
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
ven., 30 déc. 2011 09:44:50 +0100
changeset 65 2aad27159a33
parent 64 2d6627e9d3d6
child 66 29c53c3d676e
Amélioration de l'édition des méta-données
RelaxNG/publidoc.rnc
Xml/Documents/torture_test.xml
Xxe/Css/publidoc.css
--- a/RelaxNG/publidoc.rnc	jeu. déc. 22 13:43:17 2011 +0100
+++ b/RelaxNG/publidoc.rnc	ven. déc. 30 09:44:50 2011 +0100
@@ -343,8 +343,8 @@
 item = element item { item.content }
 
 item.content =
-   inlines
- | block+
+   block+
+ | inlines
 
 # ~~~~~~ glossary.item
 glossary.item = element item { glossary.item.content }
--- a/Xml/Documents/torture_test.xml	jeu. déc. 22 13:43:17 2011 +0100
+++ b/Xml/Documents/torture_test.xml	ven. déc. 30 09:44:50 2011 +0100
@@ -20,7 +20,7 @@
         <label>Prismallia</label>
         <link uri="http://www.prismallia.fr"/>
       </publisher>
-      <date value="2001-06"/>
+      <date value="2011-06"/>
       <place>Paris</place>
       <source type="book">
         <identifier type="ean">9782843550362</identifier>
--- a/Xxe/Css/publidoc.css	jeu. déc. 22 13:43:17 2011 +0100
+++ b/Xxe/Css/publidoc.css	ven. déc. 30 09:44:50 2011 +0100
@@ -22,8 +22,8 @@
 
 head > *:before {
  display: marker;
+ color:  #7f7f7f;
  content: element-label();
- color:  #7f7f7f;
 }
 head > title:before { display: none; }
 head > subtitle:before { display: none; }
@@ -70,6 +70,40 @@
              values, "en\A fr\A fr-FR\A, es");
 }
 
+head lastname:before {
+  content: insert-before-button(color, #7f7f7f, icon, icon(left-half-disc));
+}
+lastname:after {
+  content: insert-after-button(color, #7f7f7f, icon, icon(right-half-disc));
+}
+
+head role:before {
+  color: #7f7f7f;
+  content: " role : " label(attribute, of, color, black)
+           set-attribute-button(attribute, of);
+}
+
+head > publisher > label:after {
+  content: insert-after-button(color, #7f7f7f, icon, icon(right-half-disc));
+}
+
+head source[type="book"] {
+  display: none;
+}
+
+head keyword:after {
+  content: insert-same-after-button(color, #7f7f7f, icon, icon(right-half-disc))
+           " ";
+}
+
+head subject:before {
+  color: #7F7f7f;
+  content: "ID = " text-field(attribute, id, columns, 10, color, black, font-size, 75%);
+}
+head subject:after {
+  content: insert-same-after-button(color, #7f7f7f, icon, icon(right-half-disc));
+}
+
 /* Division level ========================================================== */
 
 division:before {
@@ -256,6 +290,26 @@
   font-family: serif;
 }
 
+/* seepch ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+speaker {
+  font-weight: bold;
+}
+
+stage:before, stage:after {
+  color: #7f7f7f;
+  content: "(";
+}
+stage:before {
+  content: " (";
+}
+stage {
+  font-style: italic;  
+}
+stage:after {
+  content: ")";
+}
+
 /* list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
 
 list {
@@ -303,6 +357,18 @@
 sub { font-family: sans-serif; vertical-align: sub;   font-size: 75%; }
 var { font-family: sans-serif; font-style: italic; }
 
+/* date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+date[value]:after {
+  color: #7f7f7f;
+  content: " (" date-picker(attribute, value, columns, 7, color, black, font-size, 75%) ")";
+}
+head > date[value]:after {
+  color: #7f7f7f;
+  content: " (" date-picker(attribute, value, columns, 7, color, black, font-size, 75%)
+           ") " insert-after-button();
+}
+
 /* note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
 
 note:before { font-size: 75%; content: "(Note : "; }