RelaxNG/publiset.rnc
changeset 362 c9c19db11584
parent 361 edbbf787aaa2
child 382 156ce0e2f943
equal deleted inserted replaced
361:edbbf787aaa2 362:c9c19db11584
   183 cover.image = element image { cover.image.attributes }
   183 cover.image = element image { cover.image.attributes }
   184 
   184 
   185 cover.image.attributes =
   185 cover.image.attributes =
   186    media.id.attribute
   186    media.id.attribute
   187 media.id.attribute = attribute id { xsd:NMTOKEN }
   187 media.id.attribute = attribute id { xsd:NMTOKEN }
       
   188 
       
   189 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ element ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   190 
       
   191 \element = element element { element.attributes, element.content }
       
   192 
       
   193 element.attributes =
       
   194    name.attribute
       
   195 name.attribute = attribute name { xsd:NCName }
       
   196    
       
   197 element.content =
       
   198    (inlines | \element+)
   188 
   199 
   189 
   200 
   190 # =============================================================================
   201 # =============================================================================
   191 #                                  TOP LEVEL
   202 #                                  TOP LEVEL
   192 # =============================================================================
   203 # =============================================================================
   235  & keywordset?
   246  & keywordset?
   236  & subjectset?
   247  & subjectset?
   237  & indexset?
   248  & indexset?
   238  & abstract?
   249  & abstract?
   239  & cover?
   250  & cover?
       
   251  & \element*
   240 
   252 
   241 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   253 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   242 
   254 
   243 # ~~~~~~ selection
   255 # ~~~~~~ selection
   244 selection = element selection {
   256 selection = element selection {
   268 division.head = element head { division.head.content }
   280 division.head = element head { division.head.content }
   269 
   281 
   270 division.head.content =
   282 division.head.content =
   271    (title, shorttitle?, subtitle*)?
   283    (title, shorttitle?, subtitle*)?
   272  & indexset?
   284  & indexset?
       
   285  & \element*
   273 
   286 
   274 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   287 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   275 
   288 
   276 # ~~~~~~ division
   289 # ~~~~~~ division
   277 composition.division = element division {
   290 composition.division = element division {