Ajout de l'attribut @for
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
lun., 04 févr. 2013 22:48:10 +0100
changeset 166 4e4c9b47f2a1
parent 165 a3fdabd71b65
child 167 ea989bffd987
Ajout de l'attribut @for
RelaxNG/publidoc.rnc
RelaxNG/publiquiz.rnc
Xxe/Css/publidoc.css
--- a/RelaxNG/publidoc.rnc	lun. févr. 04 18:00:19 2013 +0100
+++ b/RelaxNG/publidoc.rnc	lun. févr. 04 22:48:10 2013 +0100
@@ -151,7 +151,9 @@
 section.attributes =
    section.type.attribute?
  & lang.attribute?
+ & for.attribute?
 section.type.attribute = attribute type { xsd:NCName }
+for.attribute = attribute for { xsd:NCName }
 
 section.content =
    section.head?,
--- a/RelaxNG/publiquiz.rnc	lun. févr. 04 18:00:19 2013 +0100
+++ b/RelaxNG/publiquiz.rnc	lun. févr. 04 22:48:10 2013 +0100
@@ -377,7 +377,7 @@
 
 match.item.content =
    inlines
- | (image | (audio, image?) | video)
+ | ((p | image | (audio, image?) | video), help?, answer?)
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~ (sort) comparison, item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -395,7 +395,7 @@
 
 sort.item.content =
    inlines
- | (image | (audio, image?) | video)
+ | ((p | image | (audio, image?) | video), help?, answer?)
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (category) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -403,7 +403,7 @@
 
 category.item.content =
    inlines
- | (image | (audio, image?) | video)
+ | ((p | image | (audio, image?) | video), help?, answer?)
 
 
 # =============================================================================
--- a/Xxe/Css/publidoc.css	lun. févr. 04 18:00:19 2013 +0100
+++ b/Xxe/Css/publidoc.css	lun. févr. 04 22:48:10 2013 +0100
@@ -283,15 +283,36 @@
   content: insert-before-button() add-attribute-button(icon, icon(plus-box))
            " Type = " text-field(attribute, type, columns, 5, color, black);
 }
+section[for]:before {
+  content: insert-before-button() add-attribute-button(icon, icon(plus-box))
+           " Pour = " text-field(attribute, for, columns, 5, color, black);
+}
 section[xml|lang]:before {
   content: insert-before-button() add-attribute-button(icon, icon(plus-box))
            " Langue = " text-field(attribute, "xml:lang", columns, 2, color, black);
 }
+section[type][for]:before {
+  content: insert-before-button() add-attribute-button(icon, icon(plus-box))
+           " Type = " text-field(attribute, type, columns, 5, color, black)
+           " – Pour = " text-field(attribute, for, columns, 5, color, black);
+}
 section[type][xml|lang]:before {
-  content: insert-before-button()
+  content: insert-before-button() add-attribute-button(icon, icon(plus-box))
            " Type = " text-field(attribute, type, columns, 5, color, black)
            " – Langue = " text-field(attribute, "xml:lang", columns, 2, color, black);
 }
+section[for][xml|lang]:before {
+  content: insert-before-button() add-attribute-button(icon, icon(plus-box))
+           " Pour = " text-field(attribute, for, columns, 5, color, black)
+           " – Langue = " text-field(attribute, "xml:lang", columns, 2, color, black);
+}
+section[type][for][xml|lang]:before {
+  content: insert-before-button()
+           " Type = " text-field(attribute, type, columns, 5, color, black)
+           " Pour = " text-field(attribute, for, columns, 5, color, black)
+           " – Langue = " text-field(attribute, "xml:lang", columns, 2, color, black);
+}
+
 section section:before {
   margin-left: 1em;
 }