RelaxNG/publidoc.rnc
changeset 104 2db7cb9721c0
parent 101 3ec3b2eceeb8
child 105 ce5c5b08cb94
equal deleted inserted replaced
103:b45b3d1a9350 104:2db7cb9721c0
   312 
   312 
   313 # ~~~~~~ image
   313 # ~~~~~~ image
   314 image = element image { image.attributes, image.content }
   314 image = element image { image.attributes, image.content }
   315 
   315 
   316 image.attributes =
   316 image.attributes =
   317    media.id.attribute,
   317    media.id.attribute
   318    image.type?
   318  & image.type?
   319 media.id.attribute = attribute id { xsd:NMTOKEN }
   319 media.id.attribute = attribute id { xsd:NMTOKEN }
   320 image.type = attribute type { "cover" | "thumbnail" | "icon" }
   320 image.type = attribute type { "cover" | "thumbnail" | "icon" }
   321 
   321 
   322 image.content =
   322 image.content =
   323    copyright?
   323    copyright?
   325 # ~~~~~~ audio
   325 # ~~~~~~ audio
   326 audio = element audio { audio.attributes }
   326 audio = element audio { audio.attributes }
   327 
   327 
   328 audio.attributes =
   328 audio.attributes =
   329    media.id.attribute
   329    media.id.attribute
       
   330  & audio.type?
       
   331 audio.type = attribute type { "music" | "voice" | "ambiance" }
   330 
   332 
   331 
   333 
   332 # =============================================================================
   334 # =============================================================================
   333 #                                 HEAD LEVEL
   335 #                                 HEAD LEVEL
   334 # =============================================================================
   336 # =============================================================================