RelaxNG/publidoc.rnc
changeset 434 8a0af445525a
parent 433 25c3b6109823
child 435 acc07d9146ed
equal deleted inserted replaced
433:25c3b6109823 434:8a0af445525a
   641 image.zoom.attribute = attribute zoom {"true" | "false"}
   641 image.zoom.attribute = attribute zoom {"true" | "false"}
   642 alt.attribute = attribute alt { text }
   642 alt.attribute = attribute alt { text }
   643 
   643 
   644 media.image.content =
   644 media.image.content =
   645    copyright?,
   645    copyright?,
   646    parallax?,
       
   647    hotspot*
   646    hotspot*
   648 
   647 
   649 # ~~~~~~ audio
   648 # ~~~~~~ audio
   650 audio = element audio { audio.attributes }
   649 audio = element audio { audio.attributes }
   651 
   650 
   706 
   705 
   707 spot.content =
   706 spot.content =
   708    ((p+ | image), audio?)
   707    ((p+ | image), audio?)
   709  | audio
   708  | audio
   710  | video
   709  | video
   711 
       
   712 # ~~~~~~ parallax
       
   713 parallax = element parallax { parallax.attributes, parallax.content }
       
   714 
       
   715 parallax.attributes =
       
   716    axis.attribute?
       
   717  & position.attribute?
       
   718 axis.attribute = attribute axis { "horizontal" | "vertical" }
       
   719 position.attribute = attribute position { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?"} }
       
   720 
       
   721 parallax.content =
       
   722    parallax.image*
       
   723 
       
   724 # ~~~~~~ parallax.image
       
   725 parallax.image = element image { parallax.image.attributes, parallax.image.content }
       
   726 parallax.image.content =
       
   727    hotspot*
       
   728 
       
   729 parallax.image.attributes =
       
   730    media.id.attribute
       
   731  & alt.attribute?
       
   732 
   710 
   733 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scenario ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   711 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scenario ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   734 
   712 
   735 # ~~~~~~ scenario
   713 # ~~~~~~ scenario
   736 scenario = element scenario { scenario.content }
   714 scenario = element scenario { scenario.content }