# HG changeset patch # User Patrick PIERRE # Date 1311066114 -7200 # Node ID de4114d12ef194b033718f0a02a8c4cf3a3f7007 # Parent c51d5097d06516858e514580177506e7112f58f2 Ajout de la gestion des couvertures diff -r c51d5097d065 -r de4114d12ef1 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc lun. juil. 18 23:35:32 2011 +0200 +++ b/RelaxNG/publidoc.rnc mar. juil. 19 11:01:54 2011 +0200 @@ -70,6 +70,7 @@ & source* & subjectset? & abstract? + & cover? & annotation* division.head.content = (title, subtitle?)? @@ -214,6 +215,19 @@ abstract.content = p+ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +cover = element cover { cover.content } + +cover.content = + cover.image + +cover.image = element image { cover.image.attributes } + +cover.image.attributes = + cover.image.id.attribute +cover.image.id.attribute = attribute id { xsd:NMTOKEN } + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation = element annotation { annotation.content } @@ -397,7 +411,7 @@ inlines | p+ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~ media media = element media { media.content } @@ -405,7 +419,8 @@ media.content = block.head?, image+, - caption? + caption?, + url? # ~~~~~~ image image = element image { image.attributes, image.content } diff -r c51d5097d065 -r de4114d12ef1 RelaxNG/publidoc.rng --- a/RelaxNG/publidoc.rng lun. juil. 18 23:35:32 2011 +0200 +++ b/RelaxNG/publidoc.rng mar. juil. 19 11:01:54 2011 +0200 @@ -156,6 +156,9 @@ + + + @@ -464,6 +467,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -862,7 +887,7 @@ - + @@ -879,6 +904,9 @@ + + + diff -r c51d5097d065 -r de4114d12ef1 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc lun. juil. 18 23:35:32 2011 +0200 +++ b/RelaxNG/publiset.rnc mar. juil. 19 11:01:54 2011 +0200 @@ -79,6 +79,7 @@ & author* & publisher? & source? + & cover? division.head.content = (title, subtitle?)? & language? @@ -181,6 +182,19 @@ pagenumber.value.attribute = attribute value { pagenumber.value.enumeration } pagenumber.value.enumeration = xsd:positiveInteger +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +cover = element cover { cover.content } + +cover.content = + cover.image + +cover.image = element image { cover.image.attributes } + +cover.image.attributes = + cover.image.id.attribute +cover.image.id.attribute = attribute id { xsd:NMTOKEN } + # ============================================================================= # DIVISION LEVEL diff -r c51d5097d065 -r de4114d12ef1 RelaxNG/publiset.rng --- a/RelaxNG/publiset.rng lun. juil. 18 23:35:32 2011 +0200 +++ b/RelaxNG/publiset.rng mar. juil. 19 11:01:54 2011 +0200 @@ -162,6 +162,9 @@ + + + @@ -379,6 +382,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff -r c51d5097d065 -r de4114d12ef1 Xml/Sets/Images/composition.xcf Binary file Xml/Sets/Images/composition.xcf has changed diff -r c51d5097d065 -r de4114d12ef1 Xml/Sets/composition.xml --- a/Xml/Sets/composition.xml lun. juil. 18 23:35:32 2011 +0200 +++ b/Xml/Sets/composition.xml mar. juil. 19 11:01:54 2011 +0200 @@ -14,6 +14,7 @@ http://www.prismallia.fr +