restriction de l'étendue de certaines balises
authorPatrick PIERRE
ven., 21 juin 2013 19:28:26 +0200
changeset 225 4bb2b00913ad
parent 224 ba5b46a00376
child 226 e48bb0f52815
restriction de l'étendue de certaines balises
RelaxNG/publidoc.rnc
--- a/RelaxNG/publidoc.rnc	jeu. juin 20 19:11:34 2013 +0200
+++ b/RelaxNG/publidoc.rnc	ven. juin 21 19:28:26 2013 +0200
@@ -266,8 +266,9 @@
 # ~~~~~~ attribution
 attribution = element attribution { attribution.content }
 
-attribution.content =
-   inlines
+attribution.content = mixed {
+   sup* & number* & date* & name* & foreign* & acronym* & term* & literal*
+ & highlight* & mentioned* & warning* }
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -658,11 +659,11 @@
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup, var ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-sup = element sup { text }
+sup = element sup { mixed { warning* } }
 
-sub = element sub { text }
+sub = element sub { mixed { warning* } }
 
-var = element var { text }
+var = element var { mixed { warning* } }
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -689,7 +690,7 @@
    wide.attribute?
 wide.attribute = attribute wide { xsd:boolean }
 
-math.content = mixed { sup* & sub* & var* }
+math.content = mixed { sup* & sub* & var* & warning* }
 math.tex.content = text
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -802,7 +803,7 @@
 uri.attribute = attribute uri { xsd:anyURI }
 idref.attribute = attribute idref { xsd:IDREF }
 
-link.content =  mixed {
+link.content = mixed {
    sup* & sub* & var* & number* & math* & date* & name* & foreign* & acronym*
  & term* & literal* & stage* & highlight* & mentioned* & warning* }
 
@@ -834,4 +835,4 @@
 
 warning = element warning { warning.content }
 
-warning.content = inlines
+warning.content = text