File: schema.xsd

package info (click to toggle)
python-xsdata 24.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,936 kB
  • sloc: python: 29,257; xml: 404; makefile: 27; sh: 6
file content (79 lines) | stat: -rw-r--r-- 2,405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:books" xmlns:bks="urn:books">
  <xsd:element name="books" type="bks:BooksForm">
    <xsd:annotation>
      <xsd:documentation>
        Το βιβλίο
      </xsd:documentation>
    </xsd:annotation>
  </xsd:element>
  <xsd:complexType name="BooksForm">
    <xsd:sequence>
      <xsd:element name="book" type="bks:BookForm" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <xsd:complexType name="BookForm">
    <xsd:annotation>
      <xsd:documentation>
        Book Definition
      </xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="author" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>
            Writer's name
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="title" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>
            Book Title
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="genre" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>
            Book Genre
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="price" type="xsd:float">
        <xsd:annotation>
          <xsd:documentation>
            Amount in USD
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="pub_date" type="xsd:date">
        <xsd:annotation>
          <xsd:documentation>
            Publication date
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="review" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>
            Sticky Review
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:string">
      <xsd:annotation>
        <xsd:documentation>
          International Standard Book Number
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="lang" type="xsd:string" fixed="en">
      <xsd:annotation>
        <xsd:documentation>
          Language ISO Code
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
  </xsd:complexType>
</xsd:schema>