summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'common.rnc')
-rw-r--r--common.rnc37
1 files changed, 27 insertions, 10 deletions
diff --git a/common.rnc b/common.rnc
index 597731f..3ce7e32 100644
--- a/common.rnc
+++ b/common.rnc
@@ -47,13 +47,15 @@ img.attlist &= attribute src { text }
br = element br { br.attlist, empty }
br.attlist &= empty
note = element note { note.attlist, (text | inline.class)* }
-note.attlist &= empty
+note.attlist &= attribute test { text }?
impo = element impo { impo.attlist, (text | inline.class)* }
-impo.attlist &= empty
+impo.attlist &= attribute test { text }?
warn = element warn { warn.attlist, (text | inline.class)* }
-warn.attlist &= empty
+warn.attlist &= attribute test { text }?
pre = element pre { pre.attlist, (text | pre.class)* }
-pre.attlist &= attribute caption { text }
+pre.attlist &=
+ attribute caption { text },
+ attribute test { text }?
comment = element comment { comment.attlist, (text | pre.class | b)* }
comment.attlist &= empty
i = element i { i.attlist, (text | pre.class)* }
@@ -73,14 +75,19 @@ glepindex.attlist &=
attribute status { text }?,
[ a:defaultValue = "/proj/en/glep/gleps.xml" ]
attribute index { text }?
+body.attlist &= attribute test { text }?
p = element p { p.attlist, (text | inline.class)* }
-p.attlist &= attribute by { text }?
+p.attlist &=
+ attribute by { text }?,
+ attribute test { text }?
table = element table { table.attlist, tcolumn*, tr+ }
-table.attlist &= empty
+table.attlist &= attribute test { text }?
tcolumn = element tcolumn { tcolumn.attlist, empty }
tcolumn.attlist &= attribute width { text }
tr = element tr { tr.attlist, (th | ti)+ }
-tr.attlist &= attribute id { text }?
+tr.attlist &=
+ attribute id { text }?,
+ attribute test { text }?
th = element th { th.attlist, (text | inline.class)* }
th.attlist &=
attribute colspan { text }?,
@@ -98,11 +105,11 @@ dt.attlist &= empty
dd = element dd { dd.attlist, (text | inline.class | ul | ol)* }
dd.attlist &= empty
ul = element ul { ul.attlist, li+ }
-ul.attlist &= empty
+ul.attlist &= attribute test { text }?
ol = element ol { ol.attlist, li+ }
-ol.attlist &= empty
+ol.attlist &= attribute test { text }?
li = element li { li.attlist, (text | inline.class | ul | ol)* }
-li.attlist &= empty
+li.attlist &= attribute test { text }?
sup = element sup { sup.attlist, (text | inline.class)* }
sup.attlist &= empty
sub = element sub { sub.attlist, (text | inline.class)* }
@@ -119,3 +126,13 @@ path = element path { path.attlist, (text | inline.class)* }
path.attlist &= empty
keyval = element keyval { keyval.attlist, empty }
keyval.attlist &= attribute id { text }
+section.attlist &=
+ attribute id { text }?,
+ attribute test { text }?
+included =
+ element included {
+ included.attlist, version, date, (chapter | section | body)+
+ }
+included.attlist &= empty
+\include = element include { include.attlist, empty }
+include.attlist &= attribute href { text }