ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 3 | xmlns:lib="library" targetNamespace="library" elementFormDefault="qualified"> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 4 | |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 5 | <!-- 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 Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 12 | <xs:element name="factory_class" type="xs:string" /> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 13 | |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 14 | |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 15 | <!-- 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 Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 41 | </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 Grover | 7696def | 2013-12-02 10:34:07 +0530 | [diff] [blame] | 58 | <xs:element ref="lib:libraryAdapters" minOccurs="0" /> |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 59 | </xs:sequence> |
| 60 | </xs:complexType> |
| 61 | </xs:element> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 62 | |
| 63 | </xs:schema> |