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
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <xs:schema
     3 	xmlns:xs="http://www.w3.org/2001/XMLSchema"
     4 	elementFormDefault="qualified"
     5 	targetNamespace="https://sql-dk.globalcode.info/xmlns/configuration"
     6 	xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration">
     7 	
     8 	<xs:element name="configuration">
     9 		<xs:complexType>
    10 			<xs:sequence>
    11 				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:database"/>
    12 				<xs:element minOccurs="0" ref="c:defaultFormatter"/>
    13 				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:formatter"/>
    14 			</xs:sequence>
    15 		</xs:complexType>
    16 	</xs:element>
    17 	
    18 	<xs:element name="database">
    19 		<xs:complexType>
    20 			<xs:sequence>
    21 				<xs:element ref="c:name"/>
    22 				<xs:element ref="c:url"/>
    23 				<xs:element minOccurs="0" ref="c:userName"/>
    24 				<xs:element minOccurs="0" ref="c:password"/>
    25 				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
    26 			</xs:sequence>
    27 		</xs:complexType>
    28 	</xs:element>
    29 	
    30 	<xs:element name="name" type="xs:string"/>
    31 	<xs:element name="url" type="xs:string"/>
    32 	<xs:element name="userName" type="xs:string"/>
    33 	<xs:element name="password" type="xs:string"/>
    34 	
    35 	<xs:element name="property">
    36 		<xs:complexType mixed="true">
    37 			<xs:attribute name="name" use="required"/>
    38 		</xs:complexType>
    39 	</xs:element>
    40 	
    41 	<xs:element name="defaultFormatter" type="xs:string"/>
    42 	
    43 	<xs:element name="formatter">
    44 		<xs:complexType>
    45 			<xs:sequence>
    46 				<xs:element ref="c:name"/>
    47 				<xs:element ref="c:class"/>
    48 				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
    49 			</xs:sequence>
    50 		</xs:complexType>
    51 	</xs:element>
    52 	
    53 	<xs:element name="class" type="xs:string"/>
    54 	
    55 </xs:schema>