# HG changeset patch # User Patrick PIERRE <patrick.pierre@prismallia.fr> # Date 1335609661 -7200 # Node ID 276a83581fb4cf6d646530643b264adae4d78462 # Parent e28caa4cbf4ca7e5a57ac63aeb21c844240c3bb8 Mots clés + attribut 'transform' diff -r e28caa4cbf4c -r 276a83581fb4 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc ven. avril 27 23:03:50 2012 +0200 +++ b/RelaxNG/publidoc.rnc sam. avril 28 12:41:01 2012 +0200 @@ -21,7 +21,7 @@ # TOP LEVEL # ============================================================================= -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.head = element head { top.head.content } diff -r e28caa4cbf4c -r 276a83581fb4 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc ven. avril 27 23:03:50 2012 +0200 +++ b/RelaxNG/publiset.rnc sam. avril 28 12:41:01 2012 +0200 @@ -57,6 +57,7 @@ & identifier* & copyright? & contributors? + & keywordset? & abstract? & cover? @@ -86,6 +87,8 @@ # DIVISION LEVEL # ============================================================================= +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + # ~~~~~~ division composition.division = element division { composition.division.attributes, @@ -218,6 +221,18 @@ role.content = "author" | "illustrator" | "publisher" +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# ~~~~~~ keywordset +keywordset = element keywordset { keywordset.content } + +keywordset.content = keyword+ + +# ~~~~~~ keyword +keyword = element keyword { keyword.content } + +keyword.content = mixed { sup*, sub* } + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract = element abstract { abstract.content } diff -r e28caa4cbf4c -r 276a83581fb4 Xml/Sets/composition.xml --- a/Xml/Sets/composition.xml ven. avril 27 23:03:50 2012 +0200 +++ b/Xml/Sets/composition.xml sam. avril 28 12:41:01 2012 +0200 @@ -3,7 +3,7 @@ <publiset version="1.0"> <composition xml:id="composition" as="publidoc" attributes="version=1.0"> <division as="document" attributes="xml:id=composition xml:lang=fr"> - <head> + <head transform="composition.xsl"> <title>Exemple d'assemblage de sujets</title> <identifier type="ean">9782351840114</identifier> <copyright>Prismallia, Paris, 2011</copyright> @@ -18,6 +18,13 @@ <link uri="http://www.prismallia.fr">Prismallia</link> </contributor> </contributors> + <keywordset> + <keyword>Belgique</keyword> + <keyword>chasse</keyword> + <keyword>Pompidou</keyword> + <keyword>Portugal</keyword> + <keyword>Union européenne</keyword> + </keywordset> <abstract> <p>Ce document est un assemblage de plusieurs fichiers.</p> </abstract> diff -r e28caa4cbf4c -r 276a83581fb4 Xml/Sets/proba.xml --- a/Xml/Sets/proba.xml ven. avril 27 23:03:50 2012 +0200 +++ b/Xml/Sets/proba.xml sam. avril 28 12:41:01 2012 +0200 @@ -5,6 +5,10 @@ <division as="document" attributes="xml:id=proba xml:lang=fr"> <head> <title>Exemple d'assemblage de sujets et de quiz</title> + <keywordset> + <keyword>mathématiques</keyword> + <keyword>probabilité</keyword> + </keywordset> </head> <!-- ============================ Cours ============================= -->