RelaxNG/publidoc.rnc
changeset 45 8dbf4d305813
parent 44 ae64c01c37f1
child 49 e533ca9494a6
equal deleted inserted replaced
44:ae64c01c37f1 45:8dbf4d305813
   444 # ~~~~~~ media
   444 # ~~~~~~ media
   445 media = element media { media.content }
   445 media = element media { media.content }
   446 
   446 
   447 media.content =
   447 media.content =
   448    block.head?,
   448    block.head?,
   449    (image | sound)+,
   449    (image | audio)+,
   450    caption?,
   450    caption?,
   451    link?
   451    link?
   452 
   452 
   453 # ~~~~~~ image
   453 # ~~~~~~ image
   454 image = element image { image.attributes, image.content }
   454 image = element image { image.attributes, image.content }
   458 media.id.attribute = attribute id { xsd:NMTOKEN }
   458 media.id.attribute = attribute id { xsd:NMTOKEN }
   459 
   459 
   460 image.content =
   460 image.content =
   461    copyright?
   461    copyright?
   462 
   462 
   463 # ~~~~~~ sound
   463 # ~~~~~~ audio
   464 sound = element sound { sound.attributes }
   464 audio = element audio { audio.attributes }
   465 
   465 
   466 sound.attributes =
   466 audio.attributes =
   467    media.id.attribute
   467    media.id.attribute
   468 
   468 
   469 
   469 
   470 # =============================================================================
   470 # =============================================================================
   471 #                                 INLINE LEVEL
   471 #                                 INLINE LEVEL