# HG changeset patch # User Patrick PIERRE # Date 1360014490 -3600 # Node ID 4e4c9b47f2a1fc77f7ef96344e01200aa4ce9eef # Parent a3fdabd71b652b15ee5066b9c24b90bccda1031d Ajout de l'attribut @for diff -r a3fdabd71b65 -r 4e4c9b47f2a1 RelaxNG/publidoc.rnc --- 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?, diff -r a3fdabd71b65 -r 4e4c9b47f2a1 RelaxNG/publiquiz.rnc --- 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?) # ============================================================================= diff -r a3fdabd71b65 -r 4e4c9b47f2a1 Xxe/Css/publidoc.css --- 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; }