xml/config.xsd
author František Kučera <franta-hg@frantovo.cz>
Thu, 02 Jan 2014 20:12:45 +0100
branchv_0
changeset 115 0f237fbb08a5
child 120 940681695aa4
permissions -rw-r--r--
basic XSD
franta-hg@115
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@115
     2
<xs:schema
franta-hg@115
     3
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
franta-hg@115
     4
	elementFormDefault="qualified"
franta-hg@115
     5
	targetNamespace="https://sql-dk.globalcode.info/xmlns/configuration"
franta-hg@115
     6
	xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration">
franta-hg@115
     7
	
franta-hg@115
     8
	<xs:element name="configuration">
franta-hg@115
     9
		<xs:complexType>
franta-hg@115
    10
			<xs:sequence>
franta-hg@115
    11
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:database"/>
franta-hg@115
    12
				<xs:element minOccurs="0" ref="c:defaultFormatter"/>
franta-hg@115
    13
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:formatter"/>
franta-hg@115
    14
			</xs:sequence>
franta-hg@115
    15
		</xs:complexType>
franta-hg@115
    16
	</xs:element>
franta-hg@115
    17
	
franta-hg@115
    18
	<xs:element name="database">
franta-hg@115
    19
		<xs:complexType>
franta-hg@115
    20
			<xs:sequence>
franta-hg@115
    21
				<xs:element ref="c:name"/>
franta-hg@115
    22
				<xs:element ref="c:url"/>
franta-hg@115
    23
				<xs:element minOccurs="0" ref="c:userName"/>
franta-hg@115
    24
				<xs:element minOccurs="0" ref="c:password"/>
franta-hg@115
    25
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
franta-hg@115
    26
			</xs:sequence>
franta-hg@115
    27
		</xs:complexType>
franta-hg@115
    28
	</xs:element>
franta-hg@115
    29
	
franta-hg@115
    30
	<xs:element name="name" type="xs:string"/>
franta-hg@115
    31
	<xs:element name="url" type="xs:string"/>
franta-hg@115
    32
	<xs:element name="userName" type="xs:string"/>
franta-hg@115
    33
	<xs:element name="password" type="xs:string"/>
franta-hg@115
    34
	
franta-hg@115
    35
	<xs:element name="property">
franta-hg@115
    36
		<xs:complexType mixed="true">
franta-hg@115
    37
			<xs:attribute name="name" use="required"/>
franta-hg@115
    38
		</xs:complexType>
franta-hg@115
    39
	</xs:element>
franta-hg@115
    40
	
franta-hg@115
    41
	<xs:element name="defaultFormatter" type="xs:string"/>
franta-hg@115
    42
	
franta-hg@115
    43
	<xs:element name="formatter">
franta-hg@115
    44
		<xs:complexType>
franta-hg@115
    45
			<xs:sequence>
franta-hg@115
    46
				<xs:element ref="c:name"/>
franta-hg@115
    47
				<xs:element ref="c:class"/>
franta-hg@115
    48
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
franta-hg@115
    49
			</xs:sequence>
franta-hg@115
    50
		</xs:complexType>
franta-hg@115
    51
	</xs:element>
franta-hg@115
    52
	
franta-hg@115
    53
	<xs:element name="class" type="xs:string"/>
franta-hg@115
    54
	
franta-hg@115
    55
</xs:schema>