Wed, 13 Jul 2016 17:10:00 +0200
refactored load_db function
245
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | <?xml version="1.0"?> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | <!-- |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | Copyright 2016 Olaf Wintermann. All rights reserved. |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | Redistribution and use in source and binary forms, with or without |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
6 | modification, are permitted provided that the following conditions are met: |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | 1. Redistributions of source code must retain the above copyright |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | notice, this list of conditions and the following disclaimer. |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | 2. Redistributions in binary form must reproduce the above copyright |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
12 | notice, this list of conditions and the following disclaimer in the |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
13 | documentation and/or other materials provided with the distribution. |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
14 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | POSSIBILITY OF SUCH DAMAGE. |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | --> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
28 | <xs:schema version="1.0" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | targetNamespace="http://davutils.org/cfg/dav-sync" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
30 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | xmlns:t="http://davutils.org/cfg/dav-sync" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
32 | elementFormDefault="qualified" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | > |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
34 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | <xs:complexType name="filenameFilter"> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
36 | <xs:sequence> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | <xs:element name="include" type="xs:string" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | minOccurs="0" maxOccurs="unbounded" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
39 | <xs:element name="exclude" type="xs:string" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | minOccurs="0" maxOccurs="unbounded" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | </xs:sequence> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | </xs:complexType> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | <xs:complexType name="direntry"> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | <xs:all> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
46 | <xs:element name="name" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | <xs:element name="database" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | <xs:element name="path" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | <xs:element name="repository" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | <xs:element name="collection" minOccurs="0" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
51 | <xs:element name="trash" minOccurs="0" type="xs:string"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | <xs:element name="filter" minOccurs="0" type="t:filenameFilter" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | <xs:element name="max-retry" default="0" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
54 | minOccurs="0" type="xs:unsignedInt"/> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
55 | <xs:element name="backup-on-pull" default="false" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
56 | minOccurs="0" type="xs:boolean" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | <xs:element name="lock-pull" default="false" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
58 | minOccurs="0" type="xs:boolean" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
59 | <xs:element name="lock-push" default="false" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | minOccurs="0" type="xs:boolean" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
61 | </xs:all> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | </xs:complexType> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | <xs:element name="configuration"> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | <xs:complexType> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | <xs:sequence> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | <xs:element name="directory" type="t:direntry" |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | minOccurs="0" maxOccurs="unbounded" /> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
69 | </xs:sequence> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | </xs:complexType> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | </xs:element> |
ef931185ae05
adds XSD for dav-sync config
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
72 | </xs:schema> |