parallax
authorCoraline MARKWITZ
mar., 16 août 2016 18:02:17 +0200
changeset 433 25c3b6109823
parent 432 6c7385b704e4
child 434 8a0af445525a
parallax
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~