blob: f58175af08fd3077a614ff645675dcee5a8ef119 [file] [log] [blame]
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
Raman Grover47c92e72013-10-03 19:01:15 +05302<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:lib="library" targetNamespace="library" elementFormDefault="qualified">
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +00004
Raman Grover47c92e72013-10-03 19:01:15 +05305 <!-- definition of simple types -->
6 <xs:element name="language" type="xs:string" />
7 <xs:element name="name" type="xs:string" />
8 <xs:element name="arguments" type="xs:string" />
9 <xs:element name="return_type" type="xs:string" />
10 <xs:element name="function_type" type="xs:string" />
11 <xs:element name="definition" type="xs:string" />
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000012
Raman Grover47c92e72013-10-03 19:01:15 +053013 <xs:element name="factory_class" type="xs:string" />
14 <xs:element name="adaptor_type" type="xs:string" />
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000015
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000016
Raman Grover47c92e72013-10-03 19:01:15 +053017 <!-- definition of complex elements -->
18 <xs:element name="libraryFunction">
19 <xs:complexType>
20 <xs:sequence>
21 <xs:element ref="lib:name" />
22 <xs:element ref="lib:function_type" />
23 <xs:element ref="lib:arguments" />
24 <xs:element ref="lib:return_type" />
25 <xs:element ref="lib:definition" />
26 </xs:sequence>
27 </xs:complexType>
28 </xs:element>
29
30 <xs:element name="libraryFunctions">
31 <xs:complexType>
32 <xs:sequence>
33 <xs:element ref="lib:libraryFunction" maxOccurs="unbounded" />
34 </xs:sequence>
35 </xs:complexType>
36 </xs:element>
37
38 <xs:element name="libraryAdapter">
39 <xs:complexType>
40 <xs:sequence>
41 <xs:element ref="lib:name" />
42 <xs:element ref="lib:factory_class" />
43 <xs:element ref="lib:adaptor_type" />
44 </xs:sequence>
45 </xs:complexType>
46 </xs:element>
47
48 <xs:element name="libraryAdapters">
49 <xs:complexType>
50 <xs:sequence>
51 <xs:element ref="lib:libraryAdapter" maxOccurs="unbounded" />
52 </xs:sequence>
53 </xs:complexType>
54 </xs:element>
55
56 <xs:element name="externalLibrary">
57 <xs:complexType>
58 <xs:sequence>
59 <xs:element ref="lib:language" />
60 <xs:element ref="lib:libraryFunctions" minOccurs="0" />
61 <xs:element ref="lib:libraryAdapters" minOccurs="0" />
62 </xs:sequence>
63 </xs:complexType>
64 </xs:element>
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000065
66</xs:schema>