]> code.delx.au - gnu-emacs-elpa/blob - packages/html5-schema/ruby.rnc
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / html5-schema / ruby.rnc
1 datatypes w = "http://whattf.org/datatype-draft"
2 namespace local = ""
3
4 # #####################################################################
5 ## RELAX NG Schema for HTML 5: Ruby #
6 # #####################################################################
7
8 #######################################################################
9
10 ## Ruby Annotation: <ruby>
11
12 ruby.elem =
13 element ruby { ruby.inner & ruby.attrs }
14 ruby.attrs =
15 ( common.attrs
16 & common.attrs.aria?
17 )
18 ruby.inner =
19 ( ( common.inner.phrasing
20 | rb.elem
21 )+
22 , ( ( rt.elem
23 | rtc.elem
24 )+
25 | ( rp.elem
26 , ( rt.elem
27 | rtc.elem
28 )+
29 , rp.elem
30 )
31 )
32 )+
33
34 common.elem.phrasing |= ruby.elem
35
36 ## Ruby Text: <rt>
37
38 rt.elem =
39 element rt { rt.inner & rt.attrs }
40 rt.attrs =
41 ( common.attrs
42 & common.attrs.aria?
43 )
44 rt.inner =
45 ( common.inner.phrasing )
46
47 ## Ruby Text Container: <rtc>
48
49 rtc.elem =
50 element rtc { rtc.inner & rtc.attrs }
51 rtc.attrs =
52 ( common.attrs
53 & common.attrs.aria?
54 )
55 rtc.inner =
56 ( common.inner.phrasing
57 | rt.elem
58 | rp.elem
59 )*
60
61 ## Ruby Base: <rb>
62
63 rb.elem =
64 element rb { rb.inner & rb.attrs }
65 rb.attrs =
66 ( common.attrs
67 & common.attrs.aria?
68 )
69 rb.inner =
70 ( common.inner.phrasing )
71
72 ## Ruby Parenthesis: <rp>
73
74 rp.elem =
75 element rp { rp.inner & rp.attrs }
76 rp.attrs =
77 ( common.attrs
78 & common.attrs.aria?
79 )
80 rp.inner =
81 ( common.inner.phrasing )