RelaxNG/publiset.rnc
changeset 101 3ec3b2eceeb8
parent 98 276a83581fb4
child 117 fb3173d57512
equal deleted inserted replaced
100:7427de63dd41 101:3ec3b2eceeb8
   196 
   196 
   197 contributor.content =
   197 contributor.content =
   198    (((firstname, secondname?)?, lastname) | label),
   198    (((firstname, secondname?)?, lastname) | label),
   199    address?,
   199    address?,
   200    link?,
   200    link?,
   201    role*
   201    role+
   202 
   202 
   203 # ~~~~~~ firstname, secondname, lastname, label
   203 # ~~~~~~ firstname, secondname, lastname, label
   204 firstname = element firstname { firstname.content }
   204 firstname = element firstname { firstname.content }
   205 secondname = element secondname { secondname.content }
   205 secondname = element secondname { secondname.content }
   206 lastname = element lastname { lastname.content }
   206 lastname = element lastname { lastname.content }
   217 address.content = inlines
   217 address.content = inlines
   218 
   218 
   219 # ~~~~~~ role
   219 # ~~~~~~ role
   220 role = element role { role.content }
   220 role = element role { role.content }
   221 
   221 
   222 role.content = "author" | "illustrator" | "publisher"
   222 role.content = "author" | "illustrator" | "publisher" | "packager"
   223 
   223 
   224 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   224 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   225 
   225 
   226 # ~~~~~~ keywordset
   226 # ~~~~~~ keywordset
   227 keywordset = element keywordset { keywordset.content }
   227 keywordset = element keywordset { keywordset.content }