.xsd


SUBMITTED BY: Guest

DATE: Nov. 2, 2014, 11:36 p.m.

FORMAT: Text only

SIZE: 4.2 kB

HITS: 934

  1. .xsd
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3. <xsd:annotation>
  4. <xsd:documentation xml:lang="pl">
  5. XML Schema do pliku zamowienia.
  6. </xsd:documentation>
  7. </xsd:annotation>
  8. <xsd:element name="zamowienie" type="zamowienie_typ"/>
  9. <xsd:element name="komentarz" type="xsd:string"/>
  10. <xsd:complexType name="zamowienie_typ">
  11. <xsd:sequence>
  12. <xsd:element name="wyslac_do" type="adres_typ"/>
  13. <xsd:element name="rachunek" type="adres_typ"/>
  14. <xsd:element ref="komentarz" minOccurs="0"/>
  15. <xsd:element name="towary" type="towary_typ"/>
  16. </xsd:sequence>
  17. <xsd:attribute name="data" type="xsd:string"/>
  18. </xsd:complexType>
  19. <xsd:complexType name="adres_typ">
  20. <xsd:sequence>
  21. <xsd:element name="osoba" type="xsd:string"/>
  22. <xsd:element name="ulica" type="xsd:string"/>
  23. <xsd:element name="numer" type="xsd:string"/>
  24. <xsd:element name="kod_pocztowy" type="kod_pocztowy_typ"/>
  25. <xsd:element name="miasto" type="xsd:string"/>
  26. <xsd:element name="wojewodztwo" type="wojewodztwo_typ" minOccurs="0"/>
  27. </xsd:sequence>
  28. <xsd:attribute name="kraj" type="xsd:NMTOKEN" fixed="PL"/>
  29. </xsd:complexType>
  30. <xsd:complexType name="towary_typ">
  31. <xsd:sequence>
  32. <xsd:element name="towar" minOccurs="0" maxOccurs="unbounded">
  33. <xsd:complexType>
  34. <xsd:sequence>
  35. <xsd:element name="producent_towaru" type="xsd:string"/>
  36. <xsd:element name="nazwa_towaru" type="nazwa_towaru_typ"/>
  37. <xsd:element name="ilosc" type="xsd:decimal"/>
  38. <xsd:element name="cena_jednostkowa" type="cena_typ"/>
  39. <xsd:element name="data_realizacji" type="xsd:string" minOccurs="0"/>
  40. </xsd:sequence>
  41. <xsd:attribute name="kod_produktu" type="kod_produktu_typ"/>
  42. </xsd:complexType>
  43. </xsd:element>
  44. </xsd:sequence>
  45. </xsd:complexType>
  46. <xsd:simpleType name="kod_produktu_typ">
  47. <xsd:restriction base="xsd:string">
  48. <xsd:pattern value="[A-Z][A-Z][A-Z]-\d{3}-\d{2}"/>
  49. </xsd:restriction>
  50. </xsd:simpleType>
  51. <xsd:simpleType name="kod_pocztowy_typ">
  52. <xsd:restriction base="xsd:string">
  53. <xsd:pattern value="\d{2}-\d{3}"/>
  54. </xsd:restriction>
  55. </xsd:simpleType>
  56. <xsd:simpleType name="cena_typ">
  57. <xsd:restriction base="xsd:decimal">
  58. <xsd:minInclusive value="0"/>
  59. <xsd:maxInclusive value="10000"/>
  60. </xsd:restriction>
  61. </xsd:simpleType>
  62. <xsd:simpleType name="nazwa_towaru_typ">
  63. <xsd:restriction base="xsd:string">
  64. <xsd:minLength value="3"/>
  65. <xsd:maxLength value="30"/>
  66. </xsd:restriction>
  67. </xsd:simpleType>
  68. <xsd:simpleType name="wojewodztwo_typ">
  69. <xsd:restriction base="xsd:string">
  70. <xsd:enumeration value="Zachodnio-pomorskie"/>
  71. <xsd:enumeration value="Pomorskie"/>
  72. <xsd:enumeration value="Warminsko-mazurskie"/>
  73. <xsd:enumeration value="Podlaskie"/>
  74. <xsd:enumeration value="Mazowieckie"/>
  75. <xsd:enumeration value="Kujawsko-pomorskie"/>
  76. <xsd:enumeration value="Wielkopolskie"/>
  77. <xsd:enumeration value="Lubuskie"/>
  78. <xsd:enumeration value="Dolnoslaskie"/>
  79. <xsd:enumeration value="Opolskie"/>
  80. <xsd:enumeration value="Lodzkie"/>
  81. <xsd:enumeration value="Slaskie"/>
  82. <xsd:enumeration value="Malopolskie"/>
  83. <xsd:enumeration value="Swietokrzyskie"/>
  84. <xsd:enumeration value="Lubelskie"/>
  85. <xsd:enumeration value="Podkarpackie"/>
  86. </xsd:restriction>
  87. </xsd:simpleType>
  88. </xsd:schema>

comments powered by Disqus