Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:annotation>
- <xsd:documentation xml:lang="pl">
- XML Schema do pliku baza_danych.
- </xsd:documentation>
- </xsd:annotation>
- <xsd:element name="baza_danych" type="baza_typ"/>
- <xsd:complexType name="baza_typ">
- <xsd:sequence>
- <xsd:element ref="pilkarz"/>
- <xsd:element ref="klub"/>
- <xsd:element ref="stadion"/>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="klub_typ">
- <xsd:sequence>
- <xsd:element name="klub" type="klub_typ" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="pilkarze_typ">
- <xsd:sequence>
- <xsd:element name="pilkarz" type="pilkarze_typ" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="stadiony_typ">
- <xsd:sequence>
- <xsd:element name="nazwa" type="nazwa_typ"/>
- <xsd:element name="adres" type="xsd:string"/>
- <xsd:element name="pojemnosc" type="xsd:int"/>
- <xsd:element name="wymiary" type="xsd:string"/>
- <xsd:element name="data_otwarcia" type="xsd:date"/>
- </xsd:sequence>
- <xsd:attribute ref="kraj" use="required"/>
- </xsd:complexType>
- <xsd:complexType name="kluby_pilkarskie_typ">
- <xsd:sequence>
- <xsd:element name="nazwa" type="nazwa_typ"/>
- <xsd:element name="data_zalozenia" type="xsd:date"/>
- <xsd:element name="stadion" type="xsd:string"/>
- <xsd:element name="barwy" type="xsd:string"/>
- <xsd:element name="prezes" type="xsd:string"/>
- <xsd:element name="trener" type="xsd:string"/>
- <xsd:element name="przydomek" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute ref="kraj" use="required"/>
- </xsd:complexType>
- <xsd:simpleType name="nazwa_typ">
- <xsd:restriction base="xsd:string">
- <xsd:minLength value="3"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:complexType name="pilkarz">
- <xsd:sequence>
- <xsd:element name="imie" type="xsd:string"/>
- <xsd:element name="nazwisko" type="nazwisko_typ"/>
- <xsd:element name="przydomek" type="xsd:string"/>
- <xsd:element name="data_urodzenia" type="xsd:date"/>
- <xsd:element name="wzrost" type="xsd:decimal"/>
- <xsd:element name="waga" type="xsd:decimal"/>
- <xsd:element name="klub" type="xsd:string"/>
- <xsd:element name="numer" type="xsd:int"/>
- <xsd:element name="pozycja" type="pozycja_typ"/>
- <xsd:element name="ostatnia_nagroda">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="nazwa" type="xsd:string" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="rok_przyznania" type="xsd:decimal"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute ref="kraj" use="required"/>
- <xsd:attribute name="plec" use="required" type="plec_typ"/>
- </xsd:complexType>
- <xsd:simpleType name="plec_typ">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="k"/>
- <xsd:enumeration value="m"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="kraj_typ">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="[A-Z]{2}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="nazwisko_typ">
- <xsd:restriction base="xsd:string">
- <xsd:maxLength value="20"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pozycja_typ">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="Bramkarz"/>
- <xsd:enumeration value="Obrońca"/>
- <xsd:enumeration value="Pomocnik"/>
- <xsd:enumeration value="Napastnik"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="wzrost">
- <xsd:restriction base="xsd:int">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="250"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="waga">
- <xsd:restriction base="xsd:int">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="200"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:attribute name="kraj">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="[A-Z]{2}"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- <xsd:element name="pilkarze" type="pilkarze_typ"/>
- <xsd:element name="kluby_pilkarskie" type="kluby_pilkarskie_typ"/>
- <xsd:element name="stadiony" type="stadiony_typ"/>
- </xsd:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement