summaryrefslogtreecommitdiff
path: root/xml/relaxng/src/resources/html5-schema/xhtml5-svg-mathml.rnc
blob: 98d6fbd597e490776146afd0d63b1943d639cc23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace svg = "http://www.w3.org/2000/svg"
namespace math = "http://www.w3.org/1998/Math/MathML"
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

include "svg11/svg11-inc.rnc"
include "inkscape/inkscape.rnc"
include "mml3/mathml3-inc.rnc"
include "rdf/rdf.rnc"

common.elem.metadata |= rdf.elem
SVG.metadata.content |= rdf.elem

common.elem.phrasing |= svg

common.elem.phrasing |= math

SVG.foreignObject.content |=
	(	math
	|	html.elem
	|	body.elem
	|	common.inner.flow
	)

annotation-xml.model.svg |= svg

annotation-xml.model.xhtml |=
	(	html.elem
	|	common.elem.flow
	)

# in our integration, <mtext> is the only MathML "token element" that can
# contain HTML element content; the <mi>, <mn>, <mo> and <ms> elements
# cannot; see http://www.w3.org/Bugs/Public/show_bug.cgi?id=9859#c8 for a
# rationale
mtext.content |= common.elem.phrasing