RelaxNG/publiset.rnc
changeset 98 276a83581fb4
parent 97 e28caa4cbf4c
child 101 3ec3b2eceeb8
equal deleted inserted replaced
97:e28caa4cbf4c 98:276a83581fb4
    55 composition.head.content =
    55 composition.head.content =
    56    (title, subtitle?)?
    56    (title, subtitle?)?
    57  & identifier*
    57  & identifier*
    58  & copyright?
    58  & copyright?
    59  & contributors?
    59  & contributors?
       
    60  & keywordset?
    60  & abstract?
    61  & abstract?
    61  & cover?
    62  & cover?
    62 
    63 
    63 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    64 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    64 
    65 
    83 
    84 
    84 
    85 
    85 # =============================================================================
    86 # =============================================================================
    86 #                                DIVISION LEVEL
    87 #                                DIVISION LEVEL
    87 # =============================================================================
    88 # =============================================================================
       
    89 
       
    90 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    88 
    91 
    89 # ~~~~~~ division
    92 # ~~~~~~ division
    90 composition.division = element division {
    93 composition.division = element division {
    91    composition.division.attributes,
    94    composition.division.attributes,
    92    composition.division.content
    95    composition.division.content
   216 # ~~~~~~ role
   219 # ~~~~~~ role
   217 role = element role { role.content }
   220 role = element role { role.content }
   218 
   221 
   219 role.content = "author" | "illustrator" | "publisher"
   222 role.content = "author" | "illustrator" | "publisher"
   220 
   223 
       
   224 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   225 
       
   226 # ~~~~~~ keywordset
       
   227 keywordset = element keywordset { keywordset.content }
       
   228 
       
   229 keywordset.content = keyword+
       
   230 
       
   231 # ~~~~~~ keyword
       
   232 keyword = element keyword { keyword.content }
       
   233 
       
   234 keyword.content = mixed { sup*, sub* }
       
   235 
   221 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   236 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   222 
   237 
   223 abstract = element abstract { abstract.content }
   238 abstract = element abstract { abstract.content }
   224 
   239 
   225 abstract.content =
   240 abstract.content =