summaryrefslogtreecommitdiff
path: root/test/testcases/tests/level3/ls/files/datatype_normalization.svg.xsd
blob: e2cdde35cf87b960e7df475b12fafb2c1b3f0f48 (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
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
<!--

Copyright (c) 2001-2004 World Wide Web Consortium, 
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University).  All 
Rights Reserved.  This program is distributed under the W3C's Software
Intellectual Property License.  This program is distributed in the 
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  

See W3C License http://www.w3.org/Consortium/Legal/ for more details.

-->

<!--

This schema is attempts to use every construct that could
be interrogated by DOM Level 3 and is no way intended to
be a general purpose schema for SVG  

-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	targetNamespace="http://www.w3.org/2000/svg"
	xmlns="http://www.w3.org/2000/svg"
	xmlns:data="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization">

  <xsd:import namespace="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization" schemaLocation="datatype_normalization.xsd"/>

  <xsd:element name="svg">
  	 <xsd:complexType>
  	 	<xsd:sequence>
  	 		<xsd:element ref="rect"/>
  	 		<xsd:element ref="script"/>
  	 		<xsd:element ref="data:data"/>
  	 	</xsd:sequence>
  	 </xsd:complexType>
  </xsd:element>
  
  <xsd:element name="rect">
  	<xsd:complexType>
  		<xsd:attribute name="x" type="xsd:double" use="required"/>
  		<xsd:attribute name="y" type="xsd:double" use="required"/>
  		<xsd:attribute name="height" type="xsd:double" use="required"/>
  		<xsd:attribute name="width" type="xsd:double" use="required"/>
  	</xsd:complexType>
  </xsd:element>
  
  <xsd:element name="script">
  	<xsd:complexType>
  		<xsd:simpleContent>
  			<xsd:extension base="xsd:string">
  				<xsd:attribute name="type" type="xsd:string" use="required"/>
  			</xsd:extension>
  		</xsd:simpleContent>
  	</xsd:complexType>
  </xsd:element>
  			
</xsd:schema>