Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca
[bpt/emacs.git] / etc / schema / xhtml-legacy.rnc
CommitLineData
8cd39fb3
MH
1# Legacy Module
2
3lang.attrib &= attribute lang { LanguageCode.datatype }?
4basefont = element basefont { basefont.attlist }
5basefont.attlist = id.attrib, Font.attrib
6center = element center { center.attlist, Flow.model }
7center.attlist = Common.attrib
8font = element font { font.attlist, Inline.model }
9font.attlist = Core.attrib, I18n.attrib, Font.attrib
10Font.attrib =
11 attribute size { text }?,
12 attribute color { Color.datatype }?,
13 attribute face { text }?
14s = element s { s.attlist, Inline.model }
15s.attlist = Common.attrib
16strike = element strike { strike.attlist, Inline.model }
17strike.attlist = Common.attrib
18u = element u { u.attlist, Inline.model }
19u.attlist = Common.attrib
20dir = element dir { dir.attlist, li.noblock+ }
21dir.attlist =
22 Common.attrib,
23 attribute compact { "compact" }?
24menu = element menu { menu.attlist, li.noblock+ }
25menu.attlist =
26 Common.attrib,
27 attribute compact { "compact" }?
28li.noblock = element li { li.attlist, Inline.model }
29isindex = element isindex { isindex.attlist }
30isindex.attlist =
31 Core.attrib,
32 I18n.attrib,
33 attribute prompt { Text.datatype }?
34applet.attlist &=
35 attribute align { "top" | "middle" | "bottom" | "left" | "right" }?,
36 attribute hspace { Pixels.datatype }?,
37 attribute vspace { Pixels.datatype }?
38body.attlist &=
39 attribute background { URI.datatype }?,
40 attribute bgcolor { Color.datatype }?,
41 attribute text { Color.datatype }?,
42 attribute link { Color.datatype }?,
43 attribute vlink { Color.datatype }?,
44 attribute alink { Color.datatype }?
45br.attlist &= attribute clear { "left" | "all" | "right" | "none" }?
46caption.attlist &= align.attrib
47div.attlist &= align.attrib
48# Not in the CR, but surely an error.
49dl.attlist &= attribute compact { "compact" }?
50Heading.attrib &= align.attrib
51hr.attlist &=
52 attribute align { "left" | "center" | "right" }?,
53 attribute noshade { "noshade" }?,
54 attribute size { Pixels.datatype }?,
55 attribute width { Pixels.datatype }?
56img.attlist &=
57 attribute align { "top" | "middle" | "bottom" | "left" | "right" }?,
58 attribute border { Pixels.datatype }?,
59 attribute hspace { Pixels.datatype }?,
60 attribute vspace { Pixels.datatype }?
61input.attlist &= align.attrib
62legend.attlist &=
63 attribute align { "top" | "bottom" | "left" | "right" }?
64li.attlist &=
65 attribute type { text }?,
66 attribute value { text }?
67object.attlist &=
68 attribute align { "top" | "middle" | "bottom" | "left" | "right" }?,
69 attribute border { Pixels.datatype }?,
70 attribute hspace { Pixels.datatype }?,
71 attribute vspace { Pixels.datatype }?
72ol.attlist &=
73 attribute type { text }?,
74 attribute compact { "compact" }?,
75 attribute start { text }?
76p.attlist &= align.attrib
77pre.attlist &= attribute width { Length.datatype }?
78script.attlist &= attribute language { ContentType.datatype }?
79table.attlist &=
80 align.attrib,
81 attribute bgcolor { Color.datatype }?
82tr.attlist &= attribute bgcolor { Color.datatype }?
83Cell.attrib &=
84 attribute nowrap { "nowrap" }?,
85 attribute bgcolor { Color.datatype }?,
86 attribute width { Pixels.datatype }?,
87 attribute height { Pixels.datatype }?
88ul.attlist &=
89 attribute type { text }?,
90 attribute compact { "compact" }?
91align.attrib = attribute align { "left" | "all" | "right" | "none" }?
92Color.datatype = text
93Inline.class |= font | basefont | s | strike | u
94Block.class |= center | isindex
95List.class |= dir | menu
96head.content &= isindex?
97Block.mix |= text | Inline.class
98# With the legacy module and the frames modules, the html
99# element can contain either body or frameset.
100frameset |= body