xml/prodlužovač.xsd
changeset 1 723c08da16f6
parent 0 5b2769eb82d5
child 3 ba0753e26d53
     1.1 --- a/xml/prodlužovač.xsd	Fri Nov 11 12:51:24 2011 +0100
     1.2 +++ b/xml/prodlužovač.xsd	Fri Nov 11 23:37:26 2011 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<xs:schema	xmlns="https://trac.frantovo.cz/prodluzovac-odkazu/wiki/xmlns/konfigurace"
     1.6 +            targetNamespace="https://trac.frantovo.cz/prodluzovac-odkazu/wiki/xmlns/konfigurace"
     1.7 +			xmlns:xs="http://www.w3.org/2001/XMLSchema"
     1.8 +            elementFormDefault="qualified"
     1.9 +            attributeFormDefault="unqualified">
    1.10 +
    1.11 +	<xs:element name="prodlužovač" type="konfigurace" />
    1.12 +	
    1.13 +	<xs:complexType name="konfigurace">		
    1.14 +		<xs:all>
    1.15 +			<xs:element name="limitPřesměrování" type="xs:positiveInteger">
    1.16 +				<xs:annotation>
    1.17 +					<xs:documentation>Maximální počet přesměrování, která se pokusíme následovat.</xs:documentation>
    1.18 +				</xs:annotation>
    1.19 +			</xs:element>
    1.20 +			<xs:element name="zkracovače" type="zkracovače">
    1.21 +				<xs:annotation>
    1.22 +					<xs:documentation>Seznam podporovaných zkracovačů</xs:documentation>
    1.23 +				</xs:annotation>
    1.24 +			</xs:element>
    1.25 +		</xs:all>
    1.26 +	</xs:complexType>
    1.27 +	
    1.28 +	<xs:complexType name="zkracovače">		
    1.29 +		<xs:sequence minOccurs="1" maxOccurs="unbounded">
    1.30 +			<xs:element name="url" type="url">
    1.31 +				<xs:annotation>
    1.32 +					<xs:documentation>Regulární výraz definující URL daného zkracovače.</xs:documentation>
    1.33 +				</xs:annotation>
    1.34 +			</xs:element>
    1.35 +		</xs:sequence>	
    1.36 +	</xs:complexType>
    1.37 +	
    1.38 +	<xs:complexType name="url">
    1.39 +		<xs:simpleContent>
    1.40 +			<xs:extension base="xs:string">
    1.41 +				<xs:attribute name="popis" type="xs:string">
    1.42 +					<xs:annotation>
    1.43 +						<xs:documentation>Volitelný popis (nemá vliv na funkčnost).</xs:documentation>
    1.44 +					</xs:annotation>
    1.45 +				</xs:attribute>
    1.46 +				<xs:attribute name="záležíNaVelikosti" type="xs:boolean" default="false">
    1.47 +					<xs:annotation>
    1.48 +						<xs:documentation>
    1.49 +							Zda musí URL vyhovovat výrazu přesně – včetně velikosti písmen.
    1.50 +							Při neuvedení tohoto atributu nemusí – takže bude vyhovovat např.
    1.51 +								jak "http://example.com/index.xhtml",
    1.52 +								tak i "http://EXAMPLE.COM/index.xhtml".
    1.53 +						</xs:documentation>
    1.54 +					</xs:annotation>
    1.55 +				</xs:attribute>
    1.56 +			</xs:extension>
    1.57 +		</xs:simpleContent>		
    1.58 +	</xs:complexType>
    1.59 +
    1.60 +</xs:schema>