xml/prodlužovač.xsd
author František Kučera <franta-hg@frantovo.cz>
Fri, 11 Nov 2011 23:37:26 +0100
changeset 1 723c08da16f6
parent 0 5b2769eb82d5
child 3 ba0753e26d53
permissions -rw-r--r--
XSD schéma a ukázkový XML konfigurační soubor.
franta-hg@1
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@1
     2
<xs:schema	xmlns="https://trac.frantovo.cz/prodluzovac-odkazu/wiki/xmlns/konfigurace"
franta-hg@1
     3
            targetNamespace="https://trac.frantovo.cz/prodluzovac-odkazu/wiki/xmlns/konfigurace"
franta-hg@1
     4
			xmlns:xs="http://www.w3.org/2001/XMLSchema"
franta-hg@1
     5
            elementFormDefault="qualified"
franta-hg@1
     6
            attributeFormDefault="unqualified">
franta-hg@1
     7
franta-hg@1
     8
	<xs:element name="prodlužovač" type="konfigurace" />
franta-hg@1
     9
	
franta-hg@1
    10
	<xs:complexType name="konfigurace">		
franta-hg@1
    11
		<xs:all>
franta-hg@1
    12
			<xs:element name="limitPřesměrování" type="xs:positiveInteger">
franta-hg@1
    13
				<xs:annotation>
franta-hg@1
    14
					<xs:documentation>Maximální počet přesměrování, která se pokusíme následovat.</xs:documentation>
franta-hg@1
    15
				</xs:annotation>
franta-hg@1
    16
			</xs:element>
franta-hg@1
    17
			<xs:element name="zkracovače" type="zkracovače">
franta-hg@1
    18
				<xs:annotation>
franta-hg@1
    19
					<xs:documentation>Seznam podporovaných zkracovačů</xs:documentation>
franta-hg@1
    20
				</xs:annotation>
franta-hg@1
    21
			</xs:element>
franta-hg@1
    22
		</xs:all>
franta-hg@1
    23
	</xs:complexType>
franta-hg@1
    24
	
franta-hg@1
    25
	<xs:complexType name="zkracovače">		
franta-hg@1
    26
		<xs:sequence minOccurs="1" maxOccurs="unbounded">
franta-hg@1
    27
			<xs:element name="url" type="url">
franta-hg@1
    28
				<xs:annotation>
franta-hg@1
    29
					<xs:documentation>Regulární výraz definující URL daného zkracovače.</xs:documentation>
franta-hg@1
    30
				</xs:annotation>
franta-hg@1
    31
			</xs:element>
franta-hg@1
    32
		</xs:sequence>	
franta-hg@1
    33
	</xs:complexType>
franta-hg@1
    34
	
franta-hg@1
    35
	<xs:complexType name="url">
franta-hg@1
    36
		<xs:simpleContent>
franta-hg@1
    37
			<xs:extension base="xs:string">
franta-hg@1
    38
				<xs:attribute name="popis" type="xs:string">
franta-hg@1
    39
					<xs:annotation>
franta-hg@1
    40
						<xs:documentation>Volitelný popis (nemá vliv na funkčnost).</xs:documentation>
franta-hg@1
    41
					</xs:annotation>
franta-hg@1
    42
				</xs:attribute>
franta-hg@1
    43
				<xs:attribute name="záležíNaVelikosti" type="xs:boolean" default="false">
franta-hg@1
    44
					<xs:annotation>
franta-hg@1
    45
						<xs:documentation>
franta-hg@1
    46
							Zda musí URL vyhovovat výrazu přesně – včetně velikosti písmen.
franta-hg@1
    47
							Při neuvedení tohoto atributu nemusí – takže bude vyhovovat např.
franta-hg@1
    48
								jak "http://example.com/index.xhtml",
franta-hg@1
    49
								tak i "http://EXAMPLE.COM/index.xhtml".
franta-hg@1
    50
						</xs:documentation>
franta-hg@1
    51
					</xs:annotation>
franta-hg@1
    52
				</xs:attribute>
franta-hg@1
    53
			</xs:extension>
franta-hg@1
    54
		</xs:simpleContent>		
franta-hg@1
    55
	</xs:complexType>
franta-hg@1
    56
franta-hg@1
    57
</xs:schema>