Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 1.46 KB | None | 0 0
  1. <xsd:element name="struktura" type="struktura_typ"/>
  2.  <xsd:complexType name="struktura_typ">
  3.     <xsd:sequence>
  4.       <xsd:element name="zaklad" type="zaklad_typ"/>
  5.       <xsd:element name="pracownik" type="pracownik_typ"/>
  6.       <xsd:element name="student" type="student_typ"/>
  7.  </xsd:sequence>
  8.  <xsd:complexType name="zaklad_typ">
  9.  <xsd:sequence>
  10.       <xsd:element name="nazwa" type="xsd:string"/>
  11.       <xsd:element name="skrot" type="xsd:string"/>
  12.  </xsd:sequence>
  13. <xsd:complexType name="pracownik_typ">
  14.  <xsd:sequence>
  15.       <xsd:element name="tytul">
  16.       <xsd:simpleType>
  17.         <xs:restriction base="xs:string">
  18.       <xs:enumeration value="prof"/>
  19.       <xs:enumeration value="dr"/>
  20.       <xs:enumeration value="mgr"/>
  21.     </xs:restriction>
  22.     </xsd:simpleType>
  23.     </xsd:element>
  24.       <xsd:element name="nazwisko" type="xsd:string"/>
  25.       <xsd:element name="imie" type="xsd:string"/>
  26.  </xsd:sequence>
  27.      <xsd:attribute name="zaklad" type="@key" use="required"/>
  28.    </xsd:complexType>
  29.  <xsd:complexType name="stuednt">
  30.  <xsd:sequence>
  31.        <xsd:element name="nazwisko type="xsd:string/>
  32.       <xsd:element name="imie" type="xsd:string/>
  33.        <xsd:element name="nrKonta">
  34. <xsd:simpleType>
  35.         <xs:restriction base="xs:string">
  36.      <xs:pattern value="[0-9]{3}-[0-9]{3}"/>
  37.    </xs:restriction>
  38.     </xsd:simpleType>
  39.     </xsd:element>
  40. </xsd:sequence>
  41.    <xsd:attribute name="kierunek" type="xsd:string" use="required"/>
  42.  </xsd:complexType>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement