Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="struktura">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="zaklad" maxOccurs="5" minOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="xs:string" name="nazwa"/>
- <xs:element type="xs:string" name="skrot"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xsd:key name="kluczZakladu">
- <xsd:selector xpath="zaklad" />
- <xsd:field xpath="skrot" />
- </xsd:key>
- <xs:element name="pracownik" maxOccurs="unbounded" minOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="tytul">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="mgr"/>
- <xs:enumeration value="dr"/>
- <xs:enumeration value="prof"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element type="xs:string" name="nazwisko"/>
- <xs:element type="xs:string" name="imie"/>
- </xs:sequence>
- <xs:attribute type="xs:string" name="zaklad" use="optional"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="student" maxOccurs="unbounded" minOccurs="1">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="xs:string" name="nazwisko"/>
- <xs:element type="xs:string" name="imie"/>
- <xs:element name="nrkonta"/>
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xsd:pattern value='[0-9]{3}(-[0-9]{3})?'/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- <xs:attribute type="xs:string" name="kierunek"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement