basic XSD v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 02 Jan 2014 20:12:45 +0100
branchv_0
changeset 1150f237fbb08a5
parent 114 125e3373d6e2
child 116 87bc76fd9a14
basic XSD
xml/config.xsd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xml/config.xsd	Thu Jan 02 20:12:45 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<xs:schema
     1.6 +	xmlns:xs="http://www.w3.org/2001/XMLSchema"
     1.7 +	elementFormDefault="qualified"
     1.8 +	targetNamespace="https://sql-dk.globalcode.info/xmlns/configuration"
     1.9 +	xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration">
    1.10 +	
    1.11 +	<xs:element name="configuration">
    1.12 +		<xs:complexType>
    1.13 +			<xs:sequence>
    1.14 +				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:database"/>
    1.15 +				<xs:element minOccurs="0" ref="c:defaultFormatter"/>
    1.16 +				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:formatter"/>
    1.17 +			</xs:sequence>
    1.18 +		</xs:complexType>
    1.19 +	</xs:element>
    1.20 +	
    1.21 +	<xs:element name="database">
    1.22 +		<xs:complexType>
    1.23 +			<xs:sequence>
    1.24 +				<xs:element ref="c:name"/>
    1.25 +				<xs:element ref="c:url"/>
    1.26 +				<xs:element minOccurs="0" ref="c:userName"/>
    1.27 +				<xs:element minOccurs="0" ref="c:password"/>
    1.28 +				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
    1.29 +			</xs:sequence>
    1.30 +		</xs:complexType>
    1.31 +	</xs:element>
    1.32 +	
    1.33 +	<xs:element name="name" type="xs:string"/>
    1.34 +	<xs:element name="url" type="xs:string"/>
    1.35 +	<xs:element name="userName" type="xs:string"/>
    1.36 +	<xs:element name="password" type="xs:string"/>
    1.37 +	
    1.38 +	<xs:element name="property">
    1.39 +		<xs:complexType mixed="true">
    1.40 +			<xs:attribute name="name" use="required"/>
    1.41 +		</xs:complexType>
    1.42 +	</xs:element>
    1.43 +	
    1.44 +	<xs:element name="defaultFormatter" type="xs:string"/>
    1.45 +	
    1.46 +	<xs:element name="formatter">
    1.47 +		<xs:complexType>
    1.48 +			<xs:sequence>
    1.49 +				<xs:element ref="c:name"/>
    1.50 +				<xs:element ref="c:class"/>
    1.51 +				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
    1.52 +			</xs:sequence>
    1.53 +		</xs:complexType>
    1.54 +	</xs:element>
    1.55 +	
    1.56 +	<xs:element name="class" type="xs:string"/>
    1.57 +	
    1.58 +</xs:schema>