1 <?xml version="1.0" encoding="UTF-8" ?>
5 Copyright (C) 2007 Laurentian University
6 Dan Scott <dscott@laurentian.ca>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
25 xmlns:idl="http://opensrf.org/spec/IDL/base/v1"
26 xmlns:oils_persist="http://open-ils.org/spec/opensrf/IDL/persistence/v1"
27 xmlns:oils_obj="http://open-ils.org/spec/opensrf/IDL/objects/v1"
28 xmlns:reporter="http://open-ils.org/spec/opensrf/IDL/reporter/v1"
29 xmlns:crud="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
30 targetNamespace="http://opensrf.org/spec/IDL/base/v1"
31 elementFormDefault="qualified"
32 attributeFormDefault="unqualified"
35 <xs:import namespace="http://open-ils.org/spec/opensrf/IDL/persistence/v1"
36 schemaLocation="oils_persist.xsd"/>
38 <xs:import namespace="http://open-ils.org/spec/opensrf/IDL/objects/v1"
39 schemaLocation="oils_obj.xsd"/>
41 <xs:import namespace="http://open-ils.org/spec/opensrf/IDL/reporter/v1"
42 schemaLocation="reporter.xsd"/>
44 <xs:import namespace="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
45 schemaLocation="permacrud.xsd"/>
47 <!-- define simple elements -->
48 <xs:element name="field" nillable="true">
50 <xs:attribute name="name"/>
51 <xs:attribute ref="oils_obj:array_position"/>
52 <xs:attribute ref="oils_persist:i18n"/>
53 <xs:attribute ref="oils_persist:primitive"/>
54 <xs:attribute ref="oils_persist:virtual"/>
55 <xs:attribute ref="reporter:label"/>
56 <xs:attribute ref="reporter:datatype"/>
57 <xs:attribute ref="reporter:selector"/>
61 <xs:element name="link" nillable="true">
63 <xs:attribute name="field" type="xs:string" use="required"/>
64 <xs:attribute name="reltype" type="xs:string" use="required"/>
65 <xs:attribute name="key" type="xs:string" use="required"/>
66 <xs:attribute name="map" type="xs:string" use="required"/>
67 <xs:attribute name="class" type="xs:string" use="required"/>
68 <xs:attribute ref="reporter:label"/>
72 <xs:element name="fields">
75 <xs:element ref="idl:field" minOccurs="1" maxOccurs="unbounded"/>
77 <xs:attribute ref="oils_persist:primary"/>
78 <xs:attribute ref="oils_persist:sequence"/>
82 <xs:element name="links">
85 <xs:element ref="idl:link" minOccurs="0" maxOccurs="unbounded"/>
90 <xs:element name="class">
93 <xs:element ref="oils_persist:source_definition" minOccurs="0" maxOccurs="unbounded"/>
94 <xs:element ref="idl:fields"/>
95 <xs:element ref="idl:links" minOccurs="0"/>
96 <xs:element ref="crud:permacrud" minOccurs="0"/>
98 <xs:attribute name="id"/>
99 <xs:attribute name="controller"/>
100 <xs:attribute ref="oils_obj:fieldmapper"/>
101 <xs:attribute ref="oils_persist:readonly"/>
102 <xs:attribute ref="oils_persist:tablename"/>
103 <xs:attribute ref="oils_persist:virtual"/>
104 <xs:attribute ref="oils_persist:field_safe"/>
105 <xs:attribute ref="reporter:core"/>
106 <xs:attribute ref="reporter:label"/>
110 <xs:element name="IDL">
113 <xs:element ref="idl:class" minOccurs="1" maxOccurs="unbounded"/>