# HG changeset patch # User Patrick PIERRE # Date 1311195429 -7200 # Node ID 7cfe2d4957c68ae6e90b66118266f66230aac13b # Parent 7faa356bad3ed8b541d02b164c6e850bef9992bf Ajout de diff -r 7faa356bad3e -r 7cfe2d4957c6 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc mer. juil. 20 15:05:37 2011 +0200 +++ b/RelaxNG/publidoc.rnc mer. juil. 20 22:57:09 2011 +0200 @@ -47,6 +47,7 @@ top.head?, section+ + # ============================================================================= # HEAD LEVEL # ============================================================================= @@ -69,6 +70,7 @@ & date? & place? & source* + & keywordset? & subjectset? & abstract? & cover? @@ -196,7 +198,17 @@ pagenumber.value.attribute pagenumber.value.attribute = attribute value { xsd:positiveInteger } -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# ~~~~~~ keywordset +keywordset = element keywordset { keywordset.content } + +keywordset.content = keyword+ + +# ~~~~~~ keyword +keyword = element keyword { keyword.content } + +keyword.content = text # ~~~~~~ subjectset subjectset = element subjectset { subjectset.content } diff -r 7faa356bad3e -r 7cfe2d4957c6 RelaxNG/publidoc.rng --- a/RelaxNG/publidoc.rng mer. juil. 20 15:05:37 2011 +0200 +++ b/RelaxNG/publidoc.rng mer. juil. 20 22:57:09 2011 +0200 @@ -154,6 +154,9 @@ + + + @@ -434,7 +437,27 @@ - + + + + + + + + + + + + + + + + + + + + + diff -r 7faa356bad3e -r 7cfe2d4957c6 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc mer. juil. 20 15:05:37 2011 +0200 +++ b/RelaxNG/publiset.rnc mer. juil. 20 22:57:09 2011 +0200 @@ -79,7 +79,6 @@ & copyright? & author* & publisher? - & source? & cover? division.head.content = (title, subtitle?)? @@ -160,29 +159,6 @@ label.content = inlines -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# ~~~~~~ source -source = element source { - ( (attribute type { "book" }, source.content.book) - | (attribute type { "file" }, source.content.file)) -} - -source.content.book = - identifier.ean, - title?, - pagenumber* -source.content.file = - identifier.uri - -# ~~~~~~ pagenumber -pagenumber = element pagenumber { pagenumber.attributes } - -pagenumber.attributes = - pagenumber.value.attribute -pagenumber.value.attribute = attribute value { pagenumber.value.enumeration } -pagenumber.value.enumeration = xsd:positiveInteger - # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover = element cover { cover.content } diff -r 7faa356bad3e -r 7cfe2d4957c6 RelaxNG/publiset.rng --- a/RelaxNG/publiset.rng mer. juil. 20 15:05:37 2011 +0200 +++ b/RelaxNG/publiset.rng mer. juil. 20 22:57:09 2011 +0200 @@ -163,9 +163,6 @@ - - - @@ -330,55 +327,6 @@ - - - - - - - - book - - - - - - file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 7faa356bad3e -r 7cfe2d4957c6 Xml/Documents/torture_test.xml --- a/Xml/Documents/torture_test.xml mer. juil. 20 15:05:37 2011 +0200 +++ b/Xml/Documents/torture_test.xml mer. juil. 20 22:57:09 2011 +0200 @@ -30,6 +30,11 @@ hugo_miserables.xml + + publidoc + Cyrano + météo +