File: items.xsd

package info (click to toggle)
manaplus 2.1.3.17-8.1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 82,208 kB
  • sloc: cpp: 249,446; xml: 7,909; sh: 4,740; pascal: 4,275; makefile: 3,254; ansic: 1,095; objc: 244; sed: 16
file content (41 lines) | stat: -rw-r--r-- 1,419 bytes parent folder | download | duplicates (8)
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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <!-- IMAGE TYPE -->

  <xsd:simpleType name="mw_ItemArtType">
    <xsd:restriction base="xsd:integer">
      <xsd:minInclusive value="0" />
      <xsd:maxInclusive value="1" />
    </xsd:restriction>
  </xsd:simpleType>

  <!-- ITEMS LIST FILE SCHEMA -->

  <xsd:element name="items">
    <xsd:complexType>
      <xsd:sequence>

        <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
          <xsd:complexType>
            <xsd:simpleContent>
              <xsd:extension base="xsd:string">
                <xsd:attribute name="name" type="xsd:string" />
                <xsd:attribute name="description" type="xsd:string" />
                <xsd:attribute name="effect" type="xsd:string" />
                <xsd:attribute name="id" type="xsd:positiveInteger" />
                <xsd:attribute name="image" type="xsd:positiveInteger" />
                <xsd:attribute name="art" type="mw_ItemArtType" />
                <xsd:attribute name="type" type="xsd:integer" />
                <xsd:attribute name="slot" type="xsd:integer" />
                <xsd:attribute name="weight" type="xsd:positiveInteger" />
              </xsd:extension>
            </xsd:simpleContent>
          </xsd:complexType>
        </xsd:element>

      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

</xsd:schema>