# HG changeset patch # User Patrick PIERRE # Date 1383825227 -3600 # Node ID 8b0f1432fd11c5171226ac9333fbace806474844 # Parent 5f98e1b292fec0e7cf260d3855270d9ad648b2db Ajout des sources dans les méta-données diff -r 5f98e1b292fe -r 8b0f1432fd11 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc mer. nov. 06 18:28:08 2013 +0100 +++ b/RelaxNG/publiset.rnc jeu. nov. 07 12:53:47 2013 +0100 @@ -58,6 +58,7 @@ & collection? & contributors? & date? + & (source, source?)? & keywordset? & subjectset? & abstract? @@ -236,6 +237,35 @@ role.content = "author" | "illustrator" | "publisher" | "packager" +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +source = element source { + ( (attribute type { "book" }, source.content.book) + | (attribute type { "file" }, source.content.file)) +} + +source.content.book = + identifier.ean? + & title + & subtitle? + & copyright? + & collection? + & folio? + & pages? + +source.content.file = + identifier.uri + +# ~~~~~~ folio +folio = element folio { folio.content } + +folio.content = xsd:positiveInteger | xsd:token {pattern = "[DLXVI]+"} + +# ~~~~~~ pages +pages = element pages { pages.content } + +pages.content = xsd:positiveInteger + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~ keywordset