/
svg-view.rng
64 lines (52 loc) · 1.19 KB
/
svg-view.rng
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8"?>
<!-- View Module -->
<!--
RELAX NG Schema on SVG 1.1
See COPYING for the status of this software.
Yutaka Furubayashi (Poka-Poka Dream Factory) <info@yupotan.sppd.ne.jp>
-->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<!-- classes -->
<define name="SVG.View.extra.class">
<empty/>
</define>
<define name="SVG.View.class">
<choice>
<ref name="SVG.view"/>
<ref name="SVG.View.extra.class"/>
</choice>
</define>
<!-- elements -->
<define name="SVG.view">
<element name="view">
<zeroOrMore>
<ref name="SVG.Description.class"/>
</zeroOrMore>
<ref name="SVG.Core.attrib"/>
<ref name="SVG.External.attrib"/>
<optional>
<attribute name="viewBox">
<ref name="SVG.ViewBoxSpec.datatype"/>
</attribute>
</optional>
<optional>
<attribute name="preserveAspectRatio">
<ref name="SVG.PreserveAspectRatioSpec.datatype"/>
</attribute>
</optional>
<optional>
<attribute name="zoomAndPan">
<choice>
<value>disable</value>
<value>magnify</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="viewTarget">
<text/>
</attribute>
</optional>
</element>
</define>
</grammar>