# HG changeset patch # User Coraline MARKWITZ # Date 1471363337 -7200 # Node ID 25c3b6109823da920bf3e30a93b85745a82c1210 # Parent 6c7385b704e44568a4e7583fafd056afba715641 parallax diff -r 6c7385b704e4 -r 25c3b6109823 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc lun. juil. 25 23:35:12 2016 +0200 +++ b/RelaxNG/publidoc.rnc mar. août 16 18:02:17 2016 +0200 @@ -643,6 +643,7 @@ media.image.content = copyright?, + parallax?, hotspot* # ~~~~~~ audio @@ -660,6 +661,13 @@ video.attributes = media.id.attribute +# ~~~~~~ media.caption +media.caption = element caption { caption.attributes, caption.content } + +caption.attributes = + x.attribute? + & y.attribute? + # ~~~~~~ hotspot hotspot = element hotspot { hotspot.attributes, hotspot.content } @@ -701,12 +709,26 @@ | audio | video -# ~~~~~~ media.caption -media.caption = element caption { caption.attributes, caption.content } +# ~~~~~~ parallax +parallax = element parallax { parallax.attributes, parallax.content } -caption.attributes = - x.attribute? - & y.attribute? +parallax.attributes = + axis.attribute? + & position.attribute? +axis.attribute = attribute axis { "horizontal" | "vertical" } +position.attribute = attribute position { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?"} } + +parallax.content = + parallax.image* + +# ~~~~~~ parallax.image +parallax.image = element image { parallax.image.attributes, parallax.image.content } +parallax.image.content = + hotspot* + +parallax.image.attributes = + media.id.attribute + & alt.attribute? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scenario ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~