# HG changeset patch # User Patrick PIERRE # Date 1307283976 -7200 # Node ID 417bb62f2a77254945060a934b18145f25d8ff5d # Parent 5f332cc7150adbffebc20d6245b1d95ed83f23e0 Nettoyage de la présentation diff -r 5f332cc7150a -r 417bb62f2a77 Data/Sets/topic_set.xml --- a/Data/Sets/topic_set.xml dim. juin 05 12:02:50 2011 +0200 +++ b/Data/Sets/topic_set.xml dim. juin 05 16:26:16 2011 +0200 @@ -12,8 +12,8 @@ Les événements - - + ../Topics/centre_pompidou.xml" + ../Topics/chasseurs.xml" @@ -21,7 +21,7 @@ Les brèves - + ../Topics/portugal_ue.xml @@ -29,7 +29,7 @@ Les photos légendées - + ../Topics/roi_belge.xml diff -r 5f332cc7150a -r 417bb62f2a77 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc dim. juin 05 12:02:50 2011 +0200 +++ b/RelaxNG/publidoc.rnc dim. juin 05 16:26:16 2011 +0200 @@ -8,13 +8,10 @@ publidoc.content } -# ~~~~~~ attributes publidoc.attributes = version.attribute - version.attribute = attribute version { "1.0" } -# ~~~~~~ content publidoc.content = document | top.topic @@ -28,13 +25,10 @@ document = element document { document.attributes, document.content } -# ~~~~~~ attributes document.attributes = document.id.attribute - document.id.attribute = attribute xml:id { xsd:ID } -# ~~~~~~ content document.content = metadata?, (division+ | topic+) @@ -65,19 +59,10 @@ & abstract? & annotation* -language = element language { language.attributes } -language.attributes = lang.attribute -lang.attribute = attribute xml:lang { xsd:language } - -place = element place { place.content } -place.content = inlines - -abstract = element abstract { abstract.content } -abstract.content = parag+ - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title = element title { title.content } + title.content = inlines subtitle = element subtitle { title.content } @@ -94,8 +79,22 @@ publisher.content = inlines +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +language = element language { language.attributes } + +language.attributes = lang.attribute +lang.attribute = attribute xml:lang { xsd:language } + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +place = element place { place.content } + +place.content = inlines + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~ source source = element source { source.attributes, ( (attribute type { "book" }, source.content.book) @@ -103,21 +102,19 @@ source.content } -# ~~~~~~ Attributes source.attributes = source.id.attribute - source.id.attribute = attribute id { xsd:NMTOKEN } -# ~~~~~~ Content source.content.book = title, pagenumber* - source.content = annotation* +# ~~~~~~ pagenumber pagenumber = element pagenumber { pagenumber.attributes } + pagenumber.attributes = pagenumber.value.attribute pagenumber.value.attribute = attribute value { pagenumber.value.enumeration } @@ -125,15 +122,25 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~ subjectset subjectset = element subjectset { subjectset.content } subjectset.content = subject+ +# ~~~~~~ subject subject = element subject { subject.attributes } + subject.attributes = subject.id.attribute subject.id.attribute = attribute id { xsd:NMTOKEN } +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +abstract = element abstract { abstract.content } + +abstract.content = + parag+ + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation = element annotation { annotation.content } @@ -162,20 +169,15 @@ topic = element topic { topic.attributes, topic.content } -# ~~~~~~ attributes top.topic.attributes = topic.id.attribute & topic.type.attribute? - topic.attributes = topic.id.attribute? & topic.type.attribute? - topic.id.attribute = attribute xml:id { xsd:ID } - topic.type.attribute = attribute type { xsd:NCName } -# ~~~~~~ content topic.content = metadata?, section+ @@ -213,6 +215,7 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~ media media = element media { media.content } media.content = @@ -221,10 +224,13 @@ media.id.attribute = attribute id { xsd:NMTOKEN } +# ~~~~~~ caption media.caption = element caption { media.caption.content } -media.caption.content = parag+ -# ~~~~~~ Image +media.caption.content = + parag+ + +# ~~~~~~ image image = element image { image.attributes, image.content } image.attributes = @@ -233,6 +239,7 @@ image.content = copyright? +# ~~~~~~ copyright copyright = element copyright { copyright.content } copyright.content = inlines @@ -269,33 +276,36 @@ date = element date { date.attributes, date.content } date.attributes = date.of.attribute - date.of.attribute = attribute of { date.of.enumeration } date.of.enumeration = "event" | "birth" | "death" date.content = xsd:date | xsd:gYearMonth | xsd:gYear -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstname = element firstname { inlines } lastname = element lastname { inlines } name = element name { name.attributes, name.content } -name.attributes = name.of.attribute? -name.content = inlines + +name.attributes = + name.of.attribute? name.of.attribute = attribute of { name.of.enumeration } name.of.enumeration = "person" | "company" | "book" | "newspaper" | "party" +name.content = inlines + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ footnote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ footnote = element footnote { footnote.attributes, footnote.content } -footnote.attributes = footnote.label.attribute? - +footnote.attributes = + footnote.label.attribute? footnote.label.attribute = attribute label { text } -footnote.content = parag+ +footnote.content = + parag+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -r 5f332cc7150a -r 417bb62f2a77 RelaxNG/publidoc.rng --- a/RelaxNG/publidoc.rng dim. juin 05 12:02:50 2011 +0200 +++ b/RelaxNG/publidoc.rng dim. juin 05 16:26:16 2011 +0200 @@ -10,7 +10,6 @@ - @@ -19,7 +18,6 @@ 1.0 - @@ -38,7 +36,6 @@ - @@ -47,7 +44,6 @@ - @@ -114,37 +110,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -179,7 +144,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -197,7 +186,6 @@ - @@ -206,7 +194,6 @@ - @@ -218,6 +205,7 @@ + @@ -235,6 +223,7 @@ + @@ -245,6 +234,7 @@ + @@ -258,6 +248,17 @@ + + + + + + + + + + + @@ -303,7 +304,6 @@ - @@ -332,7 +332,6 @@ - @@ -399,6 +398,7 @@ + @@ -417,6 +417,7 @@ + @@ -427,7 +428,7 @@ - + @@ -442,6 +443,7 @@ + @@ -534,7 +536,7 @@ - + @@ -556,9 +558,6 @@ - - - @@ -573,6 +572,9 @@ party + + + diff -r 5f332cc7150a -r 417bb62f2a77 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc dim. juin 05 12:02:50 2011 +0200 +++ b/RelaxNG/publiset.rnc dim. juin 05 16:26:16 2011 +0200 @@ -8,13 +8,10 @@ publiset.content } -# ~~~~~~ attributes publiset.attributes = version.attribute - version.attribute = attribute version { "1.0" } -# ~~~~~~ content publiset.content = (composition | selection)+ @@ -30,16 +27,13 @@ composition.content } -# ~~~~~~ attributes composition.attributes = composition.id.attribute & base.attribute? & remap.attributes - composition.id.attribute = attribute xml:id { xsd:ID } base.attribute = attribute xml:base { xsd:anyURI } -# ~~~~~~ content composition.content = composition.metadata?, (composition.file | composition.division)+ @@ -51,13 +45,10 @@ selection.content } -# ~~~~~~ attributes selection.attributes = base.attribute? - selection.id.attribute = attribute xml:id { xsd:ID } -# ~~~~~~ content selection.content = selection.metadata?, (selection.file | selection.division)+ @@ -73,14 +64,11 @@ metadata.attributes, metadata.content } - selection.metadata = element metadata { metadata.content } -# ~~~~~~ attributes metadata.attributes = remap.attributes -# ~~~~~~ content metadata.content = title?, subtitle?, @@ -89,31 +77,32 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title = element title { title.content } + title.content = inlines subtitle = element subtitle { title.content } # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~ source source = element source { source.attributes, ( (attribute type { "book" }, source.content.book) | (attribute type { "file" })) } -# ~~~~~~ Attributes source.attributes = source.id.attribute? & remap.attributes - source.id.attribute = attribute id { xsd:NMTOKEN } -# ~~~~~~ Content source.content.book = title?, pagenumber? +# ~~~~~~ pagenumber pagenumber = element pagenumber { pagenumber.attributes } + pagenumber.attributes = pagenumber.value.attribute pagenumber.value.attribute = attribute value { pagenumber.value.enumeration } @@ -128,25 +117,20 @@ composition.division.attributes, composition.division.content } - selection.division = element division { selection.division.attributes, selection.division.content } -# ~~~~~~ attributes composition.division.attributes = base.attribute? & remap.attributes - selection.division.attributes = base.attribute? -# ~~~~~~ content composition.division.content = composition.metadata?, (composition.file | composition.division)+ - selection.division.content = selection.metadata?, (selection.file | selection.division)+ @@ -158,24 +142,18 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -composition.file = element file { composition.file.attributes } +composition.file = element file { composition.file.attributes, file.content } +selection.file = element file { selection.file.attributes, file.content } -selection.file = element file { selection.file.attributes } - -# ~~~~~~ attributes composition.file.attributes = - name.attribute - & xpath.attribute? + xpath.attribute? & remap.attributes - selection.file.attributes = - name.attribute - & xpath.attribute? - -name.attribute = attribute name { text } + xpath.attribute? xpath.attribute = attribute xpath { text } - +file.content = xsd:anyURI + # ============================================================================= # Inline level # ============================================================================= @@ -201,7 +179,6 @@ remap.attributes = as.attribute? & attributes.attribute? - as.attribute = attribute as { xsd:QName } attributes.attribute = attribute attributes {list { (xsd:token {pattern = "\c+=\S+"})+ }} diff -r 5f332cc7150a -r 417bb62f2a77 RelaxNG/publiset.rng --- a/RelaxNG/publiset.rng dim. juin 05 12:02:50 2011 +0200 +++ b/RelaxNG/publiset.rng dim. juin 05 16:26:16 2011 +0200 @@ -10,7 +10,6 @@ - @@ -19,7 +18,6 @@ 1.0 - @@ -40,7 +38,6 @@ - @@ -60,7 +57,6 @@ - @@ -79,7 +75,6 @@ - @@ -90,7 +85,6 @@ - @@ -119,11 +113,9 @@ - - @@ -150,6 +142,7 @@ + @@ -166,7 +159,6 @@ - @@ -180,7 +172,6 @@ - @@ -189,6 +180,7 @@ + @@ -222,7 +214,6 @@ - @@ -236,7 +227,6 @@ - @@ -268,17 +258,17 @@ + + - - @@ -286,19 +276,16 @@ - - - - - - - - - + + + + + +