diff -r 1db220a61526 -r 69310bc35b63 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc dim. juin 05 23:51:15 2011 +0200 +++ b/RelaxNG/publiset.rnc lun. juin 06 21:51:00 2011 +0200 @@ -70,9 +70,12 @@ remap.attributes metadata.content = - title?, - subtitle?, - source? + title? + & subtitle? + & author* + & publisher? + & language? + & source? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -82,6 +85,37 @@ subtitle = element subtitle { title.content } +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# ~~~~~~ author +author = element author { author.content } + +author.content = + firstname?, + lastname + +# ~~~~~~ publisher +publisher = element publisher { publisher.content } + +publisher.content = inlines + +# ~~~~~~ firstname +firstname = element firstname { firstname.content } + +firstname.content = inlines + +# ~~~~~~ lastname +lastname = element lastname { lastname.content } + +lastname.content = inlines + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +language = element language { language.attributes } + +language.attributes = lang.attribute +lang.attribute = attribute xml:lang { xsd:language } + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~ source