docs/schema/sync.xsd

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

mercurial