# HG changeset patch # User Patrick PIERRE # Date 1325790605 -3600 # Node ID 29c53c3d676eaf22723f9da7831018662dd8ff80 # Parent 2aad27159a33649b736e89ef6870e50c690c527e contributors & attribut lang diff -r 2aad27159a33 -r 29c53c3d676e RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc ven. déc. 30 09:44:50 2011 +0100 +++ b/RelaxNG/publidoc.rnc jeu. janv. 05 20:10:05 2012 +0100 @@ -27,7 +27,9 @@ document.attributes = document.id.attribute + & lang.attribute? document.id.attribute = attribute xml:id { xsd:ID } +lang.attribute = attribute xml:lang { xsd:language } document.content = top.head?, @@ -40,6 +42,7 @@ top.topic.attributes = topic.id.attribute & topic.type.attribute? + & lang.attribute? topic.id.attribute = attribute xml:id { xsd:ID } topic.type.attribute = attribute type { xsd:NCName } @@ -63,10 +66,8 @@ top.head.content = (title, subtitle?)? & identifier* - & language? & copyright? - & author* - & publisher? + & contributors? & date? & place? & source* @@ -81,8 +82,7 @@ & annotation* component.head.content = (title, subtitle?)? - & language? - & author* + & contributors? & abstract? & annotation* section.head.content = @@ -111,58 +111,49 @@ identifier = identifier.uri | identifier.ean -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -language = element language { language.attributes } - -language.attributes = - lang.attribute -lang.attribute = attribute xml:lang { xsd:language } - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright = element copyright { copyright.content } copyright.content = inlines -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contributors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# ~~~~~~ author -author = element author { author.content } +# ~~~~~~ contributors +contributors = element contributors { contributors.content } -author.content = - firstname?, - lastname, +contributors.content = + contributor+ + +# ~~~~~~ contributor +contributor = element contributor { contributor.content } + +contributor.content = + (((firstname, secondname?)?, lastname) | label), + address?, + link?, role* -# ~~~~~~ publisher -publisher = element publisher { publisher.content } - -publisher.content = - label, - link? - -# ~~~~~~ firstname +# ~~~~~~ firstname, secondname, lastname, label firstname = element firstname { firstname.content } +secondname = element secondname { secondname.content } +lastname = element lastname { lastname.content } +label = element label { label.content } firstname.content = inlines +secondname.content = inlines +lastname.content = inlines +label.content = inlines -# ~~~~~~ lastname -lastname = element lastname { lastname.content } +# ~~~~~~ address +address = element address { address.content } -lastname.content = inlines +address.content = inlines # ~~~~~~ role -role = element role { role.attributes } +role = element role { role.content } -role.attributes = - role.of.attribute -role.of.attribute = attribute of { "author" | "illustrator" } - -# ~~~~~~ label -label = element label { label.content } - -label.content = inlines +role.content = "author" | "illustrator" | "publisher" # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -r 2aad27159a33 -r 29c53c3d676e RelaxNG/publidoc.rng --- a/RelaxNG/publidoc.rng ven. déc. 30 09:44:50 2011 +0100 +++ b/RelaxNG/publidoc.rng jeu. janv. 05 20:10:05 2012 +0100 @@ -37,13 +37,23 @@ - + + + + + + + + + + + @@ -68,6 +78,9 @@ + + + @@ -131,16 +144,10 @@ - + - - - - - - - + @@ -193,11 +200,8 @@ - + - - - @@ -269,20 +273,6 @@ - - - - - - - - - - - - - - @@ -292,77 +282,101 @@ - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + - - - - - - - - - - - - - + - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - author - illustrator - - - - - - - - - - - + + + author + illustrator + publisher + @@ -714,10 +728,10 @@ - + diff -r 2aad27159a33 -r 29c53c3d676e RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc ven. déc. 30 09:44:50 2011 +0100 +++ b/RelaxNG/publiset.rnc jeu. janv. 05 20:10:05 2012 +0100 @@ -33,10 +33,12 @@ & xpath.attribute? & xslt.attribute? & remap.attributes + & lang.attribute? composition.id.attribute = attribute xml:id { xsd:ID } path.attribute = attribute path { xsd:anyURI } xslt.attribute = attribute xslt { xsd:anyURI } xpath.attribute = attribute xpath { text } +lang.attribute = attribute xml:lang { xsd:language } composition.content = composition.head?, @@ -52,6 +54,7 @@ selection.attributes = selection.id.attribute & path.attribute? + & lang.attribute? selection.id.attribute = attribute xml:id { xsd:ID } selection.content = @@ -75,15 +78,12 @@ top.head.content = (title, subtitle?)? & identifier* - & language? & copyright? - & author* - & publisher? + & contributors? & abstract? & cover? division.head.content = (title, subtitle?)? - & language? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -104,61 +104,49 @@ identifier = identifier.uri | identifier.ean -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -language = element language { language.attributes } - -language.attributes = lang.attribute -lang.attribute = attribute xml:lang { xsd:language } - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright = element copyright { copyright.content } copyright.content = inlines -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contributors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# ~~~~~~ author -author = element author { author.content } +# ~~~~~~ contributors +contributors = element contributors { contributors.content } -author.attributes = - role.attribute? -role.attribute = attribute role { "author" | "illustrator" } +contributors.content = + contributor+ -author.content = - firstname?, - lastname, +# ~~~~~~ contributor +contributor = element contributor { contributor.content } + +contributor.content = + (((firstname, secondname?)?, lastname) | label), + address?, + link?, role* -# ~~~~~~ publisher -publisher = element publisher { publisher.content } - -publisher.content = - label, - link? - -# ~~~~~~ firstname +# ~~~~~~ firstname, secondname, lastname, label firstname = element firstname { firstname.content } +secondname = element secondname { secondname.content } +lastname = element lastname { lastname.content } +label = element label { label.content } firstname.content = inlines +secondname.content = inlines +lastname.content = inlines +label.content = inlines -# ~~~~~~ lastname -lastname = element lastname { lastname.content } +# ~~~~~~ address +address = element address { address.content } -lastname.content = inlines +address.content = inlines # ~~~~~~ role -role = element role { role.attributes } +role = element role { role.content } -role.attributes = - role.of.attribute -role.of.attribute = attribute of { "author" | "illustrator" } - -# ~~~~~~ label -label = element label { label.content } - -label.content = inlines +role.content = "author" | "illustrator" | "publisher" # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -r 2aad27159a33 -r 29c53c3d676e RelaxNG/publiset.rng --- a/RelaxNG/publiset.rng ven. déc. 30 09:44:50 2011 +0100 +++ b/RelaxNG/publiset.rng jeu. janv. 05 20:10:05 2012 +0100 @@ -51,6 +51,9 @@ + + + @@ -71,6 +74,11 @@ + + + + + @@ -95,6 +103,9 @@ + + + @@ -151,16 +162,10 @@ - + - - - - - - - + @@ -171,17 +176,12 @@ - + + - - - - + - - - - + @@ -222,20 +222,6 @@ - - - - - - - - - - - - - - @@ -245,90 +231,101 @@ - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - author - illustrator - - - - - + - - - - - - - - - - - - - - + - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - author - illustrator - - - - - - - - - - - + + + author + illustrator + publisher + diff -r 2aad27159a33 -r 29c53c3d676e Xml/Documents/torture_test.xml --- a/Xml/Documents/torture_test.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Documents/torture_test.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -1,25 +1,28 @@ - + Torture test Test des capacités de publidoc 9782351840114 http://www.prismallia.fr/Xml/torture_test - Prismallia, Paris, 2011 - - PatrickPIERRE - - - Tien HaïNGUYEN - - - - - - + + + PatrickPIERRE + + + Tien HaïNGUYEN + illustrator + + + +
12 rue de la Montagne – 75005 Paris
+ + publisher +
+
Paris diff -r 2aad27159a33 -r 29c53c3d676e Xml/Sets/composition.xml --- a/Xml/Sets/composition.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Sets/composition.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -6,15 +6,18 @@ Exemple d'assemblage de sujets 9782351840114 - Prismallia, Paris, 2011 - - PatrickPIERRE - - - - Prismallia - + + + PatrickPIERRE + author + + + +
12 rue de la Montagne – 75005 Paris
+ Prismallia +
+

Ce document est un assemblage de plusieurs fichiers.

diff -r 2aad27159a33 -r 29c53c3d676e Xml/Sets/selection.xml --- a/Xml/Sets/selection.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Sets/selection.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -2,10 +2,9 @@ - + Première sélection - @@ -26,10 +25,9 @@ - + Deuxième sélection - Prince Philippe diff -r 2aad27159a33 -r 29c53c3d676e Xml/Topics/centre_pompidou.xml --- a/Xml/Topics/centre_pompidou.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Topics/centre_pompidou.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -1,11 +1,10 @@ - + Un nouveau Centre Pompidou après vingt-sept mois de travaux Paris, samedi 1er - Paris diff -r 2aad27159a33 -r 29c53c3d676e Xml/Topics/chasseurs.xml --- a/Xml/Topics/chasseurs.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Topics/chasseurs.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -1,11 +1,10 @@ - + Les chasseurs d'oiseaux contestent la loi Baie de Somme, mardi 1er - Baie de Somme diff -r 2aad27159a33 -r 29c53c3d676e Xml/Topics/portugal_ue.xml --- a/Xml/Topics/portugal_ue.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Topics/portugal_ue.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -1,11 +1,10 @@ - + Janvier 2000 Lisbonne, samedi 1er - Lisbonne diff -r 2aad27159a33 -r 29c53c3d676e Xml/Topics/prince_belge.xml --- a/Xml/Topics/prince_belge.xml ven. déc. 30 09:44:50 2011 +0100 +++ b/Xml/Topics/prince_belge.xml jeu. janv. 05 20:10:05 2012 +0100 @@ -1,10 +1,9 @@ - + Janvier 2000 - 9782843550362