Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libGeocoding / schemas / PatternGeoco.xsd @ 27057

History | View | Annotate | Download (2.63 KB)

1 26845 vsanjaime
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by vic (vic) -->
3
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
4
	<!--<xsd:schema targetNamespace="http://www.w3schools.com"
5
		xmlns="http://www.w3schools.com"
6
		xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7
		elementFormDefault="qualified"> -->
8
	<xsd:element name="patterngeocoding">
9
		<xsd:complexType>
10
			<xsd:sequence>
11
				<xsd:element ref="patternname"/>
12
				<xsd:element ref="patternurl"/>
13
				<xsd:element ref="source"/>
14
				<xsd:element ref="settings"/>
15
			</xsd:sequence>
16
		</xsd:complexType>
17
	</xsd:element>
18
	<xsd:element name="patternname" type="xsd:string"/>
19
	<xsd:element name="patternurl" type="xsd:string"/>
20
	<xsd:element name="source">
21
		<xsd:complexType>
22
			<xsd:sequence>
23
				<xsd:element ref="addressstyle"/>
24
				<xsd:element ref="layersource"/>
25
			</xsd:sequence>
26
		</xsd:complexType>
27
	</xsd:element>
28
	<xsd:element name="layersource">
29
		<xsd:complexType>
30
			<xsd:choice>
31
				<xsd:element ref="shpfile"/>
32
				<xsd:element ref="jdbc"/>
33
			</xsd:choice>
34
			<xsd:attribute name="id" type="xsd:string" use="required"/>
35
		</xsd:complexType>
36
	</xsd:element>
37
	<xsd:element name="property">
38
		<xsd:complexType>
39
			<xsd:attribute name="key" type="xsd:string" use="required"/>
40
			<xsd:attribute name="value" type="xsd:string" use="optional"/>
41
		</xsd:complexType>
42
	</xsd:element>
43
	<xsd:element name="addressstyle">
44
		<xsd:complexType>
45
			<xsd:sequence>
46
				<xsd:element ref="field" maxOccurs="unbounded"/>
47
			</xsd:sequence>
48
		</xsd:complexType>
49
	</xsd:element>
50
	<xsd:element name="field">
51
		<xsd:complexType>
52
			<xsd:attribute name="name" type="xsd:string" use="required"/>
53
			<xsd:attribute name="addresselement" type="xsd:string" use="required"/>
54
		</xsd:complexType>
55
	</xsd:element>
56
	<xsd:element name="settings">
57
		<xsd:complexType>
58
			<xsd:attribute name="maxresults" type="xsd:integer" default="10"/>
59
			<xsd:attribute name="accuracy" type="xsd:integer" default="80"/>
60
			<xsd:attribute name="quality" type="xsd:integer" default="80"/>
61
		</xsd:complexType>
62
	</xsd:element>
63
	<xsd:element name="shpfile">
64
		<xsd:complexType>
65
			<xsd:attribute name="file" type="xsd:string" use="required"/>
66
		</xsd:complexType>
67
	</xsd:element>
68
	<xsd:element name="jdbc">
69
		<xsd:complexType>
70
			<xsd:attribute name="server" type="xsd:string" use="required"/>
71
			<xsd:attribute name="database" type="xsd:string" use="required"/>
72
			<xsd:attribute name="table" type="xsd:string" use="required"/>
73
			<xsd:attribute name="user" type="xsd:string" use="required"/>
74
		</xsd:complexType>
75
	</xsd:element>
76
</xsd:schema>