ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:lib="library" targetNamespace="library" elementFormDefault="qualified"> |
| 3 | |
| 4 | <!-- definition of simple types --> |
| 5 | <xs:element name="language" type="xs:string"/> |
| 6 | <xs:element name="name" type="xs:string"/> |
| 7 | <xs:element name="arguments" type="xs:string"/> |
| 8 | <xs:element name="return_type" type="xs:string"/> |
| 9 | <xs:element name="function_type" type="xs:string"/> |
| 10 | <xs:element name="definition" type="xs:string"/> |
| 11 | |
| 12 | <!-- definition of complex elements --> |
| 13 | <xs:element name="function"> |
| 14 | <xs:complexType> |
| 15 | <xs:sequence> |
| 16 | <xs:element ref="lib:name"/> |
| 17 | <xs:element ref="lib:function_type"/> |
| 18 | <xs:element ref="lib:arguments"/> |
| 19 | <xs:element ref="lib:return_type"/> |
| 20 | <xs:element ref="lib:definition"/> |
| 21 | </xs:sequence> |
| 22 | </xs:complexType> |
| 23 | </xs:element> |
| 24 | |
| 25 | <xs:element name="functions"> |
| 26 | <xs:complexType> |
| 27 | <xs:sequence> |
| 28 | <xs:element ref="lib:function" maxOccurs="unbounded"/> |
| 29 | </xs:sequence> |
| 30 | </xs:complexType> |
| 31 | </xs:element> |
| 32 | |
| 33 | <xs:element name="library"> |
| 34 | <xs:complexType> |
| 35 | <xs:sequence> |
| 36 | <xs:element ref="lib:language"/> |
| 37 | <xs:element ref="lib:functions" minOccurs="0"/> |
| 38 | </xs:sequence> |
| 39 | </xs:complexType> |
| 40 | </xs:element> |
| 41 | |
| 42 | </xs:schema> |