xml/config.xsd
author František Kučera <franta-hg@frantovo.cz>
Tue, 07 Jan 2014 21:54:59 +0100
branchv_0
changeset 142 da1e38386d84
parent 120 940681695aa4
child 198 03d8492e2ca8
permissions -rw-r--r--
Formatters: structural change – new level „statement“ → query and parameters are no more duplicated into each result set or updates result
franta-hg@115
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@120
     2
<!--
franta-hg@120
     3
SQL-DK
franta-hg@120
     4
Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@120
     5
franta-hg@120
     6
This program is free software: you can redistribute it and/or modify
franta-hg@120
     7
it under the terms of the GNU General Public License as published by
franta-hg@120
     8
the Free Software Foundation, either version 3 of the License, or
franta-hg@120
     9
(at your option) any later version.
franta-hg@120
    10
franta-hg@120
    11
This program is distributed in the hope that it will be useful,
franta-hg@120
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@120
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@120
    14
GNU General Public License for more details.
franta-hg@120
    15
franta-hg@120
    16
You should have received a copy of the GNU General Public License
franta-hg@120
    17
along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@120
    18
-->
franta-hg@115
    19
<xs:schema
franta-hg@115
    20
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
franta-hg@115
    21
	elementFormDefault="qualified"
franta-hg@115
    22
	targetNamespace="https://sql-dk.globalcode.info/xmlns/configuration"
franta-hg@115
    23
	xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration">
franta-hg@115
    24
	
franta-hg@115
    25
	<xs:element name="configuration">
franta-hg@115
    26
		<xs:complexType>
franta-hg@115
    27
			<xs:sequence>
franta-hg@115
    28
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:database"/>
franta-hg@115
    29
				<xs:element minOccurs="0" ref="c:defaultFormatter"/>
franta-hg@115
    30
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:formatter"/>
franta-hg@115
    31
			</xs:sequence>
franta-hg@115
    32
		</xs:complexType>
franta-hg@115
    33
	</xs:element>
franta-hg@115
    34
	
franta-hg@115
    35
	<xs:element name="database">
franta-hg@115
    36
		<xs:complexType>
franta-hg@115
    37
			<xs:sequence>
franta-hg@115
    38
				<xs:element ref="c:name"/>
franta-hg@115
    39
				<xs:element ref="c:url"/>
franta-hg@115
    40
				<xs:element minOccurs="0" ref="c:userName"/>
franta-hg@115
    41
				<xs:element minOccurs="0" ref="c:password"/>
franta-hg@115
    42
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
franta-hg@115
    43
			</xs:sequence>
franta-hg@115
    44
		</xs:complexType>
franta-hg@115
    45
	</xs:element>
franta-hg@115
    46
	
franta-hg@115
    47
	<xs:element name="name" type="xs:string"/>
franta-hg@115
    48
	<xs:element name="url" type="xs:string"/>
franta-hg@115
    49
	<xs:element name="userName" type="xs:string"/>
franta-hg@115
    50
	<xs:element name="password" type="xs:string"/>
franta-hg@115
    51
	
franta-hg@115
    52
	<xs:element name="property">
franta-hg@115
    53
		<xs:complexType mixed="true">
franta-hg@115
    54
			<xs:attribute name="name" use="required"/>
franta-hg@115
    55
		</xs:complexType>
franta-hg@115
    56
	</xs:element>
franta-hg@115
    57
	
franta-hg@115
    58
	<xs:element name="defaultFormatter" type="xs:string"/>
franta-hg@115
    59
	
franta-hg@115
    60
	<xs:element name="formatter">
franta-hg@115
    61
		<xs:complexType>
franta-hg@115
    62
			<xs:sequence>
franta-hg@115
    63
				<xs:element ref="c:name"/>
franta-hg@115
    64
				<xs:element ref="c:class"/>
franta-hg@115
    65
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
franta-hg@115
    66
			</xs:sequence>
franta-hg@115
    67
		</xs:complexType>
franta-hg@115
    68
	</xs:element>
franta-hg@115
    69
	
franta-hg@115
    70
	<xs:element name="class" type="xs:string"/>
franta-hg@115
    71
	
franta-hg@115
    72
</xs:schema>