production preremplie
authorCoraline MARKWITZ
lun., 08 févr. 2016 18:40:38 +0100
changeset 407 3c439435e472
parent 406 461c1b4bd0e2
child 408 1a15898c8611
production preremplie
RelaxNG/publidoc.rnc
RelaxNG/publiquiz.rnc
--- a/RelaxNG/publidoc.rnc	mar. janv. 26 15:11:02 2016 +0100
+++ b/RelaxNG/publidoc.rnc	lun. févr. 08 18:40:38 2016 +0100
@@ -589,10 +589,12 @@
 image.attributes =
    media.id.attribute
  & image.type.attribute?
+ & image.zoom.attribute?
  & alt.attribute?
 media.id.attribute = attribute id { xsd:NMTOKEN }
 image.type.attribute = attribute type {
    "cover" | "thumbnail" | "icon" | "animation" }
+image.zoom.attribute = attribute zoom {"true" | "false"}
 alt.attribute = attribute alt { text }
 
 media.image.content =
--- a/RelaxNG/publiquiz.rnc	mar. janv. 26 15:11:02 2016 +0100
+++ b/RelaxNG/publiquiz.rnc	lun. févr. 08 18:40:38 2016 +0100
@@ -287,7 +287,9 @@
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-production = element production { empty }
+production = element production { production.content }
+
+production.content = text
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~