]> code.delx.au - gnu-emacs-elpa/blob - packages/html5-schema/html5exclusions.rnc
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / html5-schema / html5exclusions.rnc
1 default namespace = "http://www.w3.org/1999/xhtml"
2 # #####################################################################
3 ## RELAX NG Schema for (X)HTML 5: Exclusions #
4 # #####################################################################
5
6 ## This file is unmaintained. Please use assertions.sch instead.
7
8 # #####################################################################
9 ## Schema Framework & Parameters
10
11 start = normal.elem.all-inclusive
12
13 # #####################################################################
14 ## Normal Element Patterns
15
16 ## Any attribute from any namespace
17
18 normal.attr.anything =
19 attribute * { text }*
20
21 ## Any element from any namespace except exceptional elements,
22 ## but allowing those elements as descendants
23
24 normal.elem.all =
25 element * - (dfn) {
26 normal.elem.all-inclusive
27 }
28
29 ## Any element from any namespace including exceptional elements
30
31 normal.elem.all-inclusive =
32 wildcard.elem.exclude-all | dfn.elem.exclude-self
33
34
35 # #####################################################################
36 ## Exclusion Element Patterns
37
38 # exclude all exceptional elements from the name classes;
39 # list them explicitly in content models instead
40
41 normal.elem.exclude-dfn =
42 element * - (dfn) {
43 normal.elem.exclude-dfn
44 }
45
46 dfn.elem.exclude-self =
47 element dfn {
48 ( normal.attr.anything
49 & normal.elem.exclude-dfn
50 )
51 }
52
53 # FIXME this part was cut off -- hsivonen
54 wildcard.elem.exclude-all =
55 notAllowed
56
57 #FIXME no nested forms in HTML-serializable docs
58
59 #FIXME no nested labels
60
61 #FIXME no blockquote inside header or footer
62
63 #FIXME exactly one hn in header