blob: 00f71f58a9c4d26c2de265e29918a5caca81b07b [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" />
Raman Grover47c92e72013-10-03 19:01:15 +053012 <xs:element name="factory_class" type="xs:string" />
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000013
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000014
Raman Grover47c92e72013-10-03 19:01:15 +053015 <!-- definition of complex elements -->
16 <xs:element name="libraryFunction">
17 <xs:complexType>
18 <xs:sequence>
19 <xs:element ref="lib:name" />
20 <xs:element ref="lib:function_type" />
21 <xs:element ref="lib:arguments" />
22 <xs:element ref="lib:return_type" />
23 <xs:element ref="lib:definition" />
24 </xs:sequence>
25 </xs:complexType>
26 </xs:element>
27
28 <xs:element name="libraryFunctions">
29 <xs:complexType>
30 <xs:sequence>
31 <xs:element ref="lib:libraryFunction" maxOccurs="unbounded" />
32 </xs:sequence>
33 </xs:complexType>
34 </xs:element>
35
36 <xs:element name="libraryAdapter">
37 <xs:complexType>
38 <xs:sequence>
39 <xs:element ref="lib:name" />
40 <xs:element ref="lib:factory_class" />
Raman Grover47c92e72013-10-03 19:01:15 +053041 </xs:sequence>
42 </xs:complexType>
43 </xs:element>
44
45 <xs:element name="libraryAdapters">
46 <xs:complexType>
47 <xs:sequence>
48 <xs:element ref="lib:libraryAdapter" maxOccurs="unbounded" />
49 </xs:sequence>
50 </xs:complexType>
51 </xs:element>
52
53 <xs:element name="externalLibrary">
54 <xs:complexType>
55 <xs:sequence>
56 <xs:element ref="lib:language" />
57 <xs:element ref="lib:libraryFunctions" minOccurs="0" />
Raman Grover7696def2013-12-02 10:34:07 +053058 <xs:element ref="lib:libraryAdapters" minOccurs="0" />
Raman Grover47c92e72013-10-03 19:01:15 +053059 </xs:sequence>
60 </xs:complexType>
61 </xs:element>
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000062
63</xs:schema>