--- 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~