author | František Kučera <franta-hg@frantovo.cz> |
Sat, 12 Nov 2011 17:02:44 +0100 | |
changeset 3 | ba0753e26d53 |
parent 1 | 723c08da16f6 |
permissions | -rw-r--r-- |
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@3 | 22 |
<xs:element name="tvářitSeJakoProhlížeč" type="xs:string" minOccurs="0"> |
franta-hg@3 | 23 |
<xs:annotation> |
franta-hg@3 | 24 |
<xs:documentation> |
franta-hg@3 | 25 |
Pokud je tento element přístupný, budeme v HTTP požadavcích posílat |
franta-hg@3 | 26 |
hlavičku „User-Agent“ a tvářit se, že jsme daný prohlížeč. |
franta-hg@3 | 27 |
Příklad: „Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1“ |
franta-hg@3 | 28 |
</xs:documentation> |
franta-hg@3 | 29 |
</xs:annotation> |
franta-hg@3 | 30 |
</xs:element> |
franta-hg@1 | 31 |
</xs:all> |
franta-hg@1 | 32 |
</xs:complexType> |
franta-hg@1 | 33 |
|
franta-hg@1 | 34 |
<xs:complexType name="zkracovače"> |
franta-hg@1 | 35 |
<xs:sequence minOccurs="1" maxOccurs="unbounded"> |
franta-hg@1 | 36 |
<xs:element name="url" type="url"> |
franta-hg@1 | 37 |
<xs:annotation> |
franta-hg@3 | 38 |
<xs:documentation> |
franta-hg@3 | 39 |
Regulární výraz definující URL daného zkracovače. |
franta-hg@3 | 40 |
Slouží k tomu, abychom nemuseli testovat (což znamená DNS+HTTP požadavek) |
franta-hg@3 | 41 |
všechna URL, ale jen ta, u kterých lze očekávat přesměrování jinam. |
franta-hg@3 | 42 |
</xs:documentation> |
franta-hg@1 | 43 |
</xs:annotation> |
franta-hg@1 | 44 |
</xs:element> |
franta-hg@1 | 45 |
</xs:sequence> |
franta-hg@1 | 46 |
</xs:complexType> |
franta-hg@1 | 47 |
|
franta-hg@1 | 48 |
<xs:complexType name="url"> |
franta-hg@1 | 49 |
<xs:simpleContent> |
franta-hg@1 | 50 |
<xs:extension base="xs:string"> |
franta-hg@1 | 51 |
<xs:attribute name="popis" type="xs:string"> |
franta-hg@1 | 52 |
<xs:annotation> |
franta-hg@1 | 53 |
<xs:documentation>Volitelný popis (nemá vliv na funkčnost).</xs:documentation> |
franta-hg@1 | 54 |
</xs:annotation> |
franta-hg@1 | 55 |
</xs:attribute> |
franta-hg@1 | 56 |
<xs:attribute name="záležíNaVelikosti" type="xs:boolean" default="false"> |
franta-hg@1 | 57 |
<xs:annotation> |
franta-hg@1 | 58 |
<xs:documentation> |
franta-hg@1 | 59 |
Zda musí URL vyhovovat výrazu přesně – včetně velikosti písmen. |
franta-hg@1 | 60 |
Při neuvedení tohoto atributu nemusí – takže bude vyhovovat např. |
franta-hg@3 | 61 |
jak „http://example.com/index.xhtml“, |
franta-hg@3 | 62 |
tak i „http://EXAMPLE.COM/index.xhtml“. |
franta-hg@1 | 63 |
</xs:documentation> |
franta-hg@1 | 64 |
</xs:annotation> |
franta-hg@1 | 65 |
</xs:attribute> |
franta-hg@1 | 66 |
</xs:extension> |
franta-hg@1 | 67 |
</xs:simpleContent> |
franta-hg@1 | 68 |
</xs:complexType> |
franta-hg@1 | 69 |
|
franta-hg@1 | 70 |
</xs:schema> |