xmlclass/test.xsd
author laurent
Wed, 02 May 2012 00:32:15 +0200
changeset 675 0ea836add01f
parent 151 aaa80b48bead
permissions -rwxr-xr-x
Adding support for saving and restoring zoom and position of editors through closing and opening tab of the same POU or POU instance
151
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     1
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     2
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     3
  <xsd:annotation>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     4
    <xsd:documentation xml:lang="en">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     5
      Purchase order schema for Example.com.
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     6
      Copyright 2000 Example.com. All rights reserved.
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     7
    </xsd:documentation>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     8
  </xsd:annotation>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
     9
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    10
  <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    11
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    12
  <xsd:element name="comment" type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    13
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    14
  <xsd:complexType name="PurchaseOrderType">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    15
    <xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    16
      <xsd:element name="shipTo" type="USAddress"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    17
      <xsd:element name="billTo" type="USAddress"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    18
      <xsd:element ref="comment" minOccurs="0"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    19
      <xsd:element name="items"  type="Items"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    20
    </xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    21
    <xsd:attribute name="orderDate" type="xsd:date"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    22
  </xsd:complexType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    23
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    24
  <xsd:complexType name="USAddress">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    25
    <xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    26
      <xsd:element name="name"   type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    27
      <xsd:element name="street" type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    28
      <xsd:element name="city"   type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    29
      <xsd:element name="state"  type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    30
      <xsd:element name="zip"    type="xsd:decimal"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    31
    </xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    32
    <xsd:attribute name="country" type="xsd:NMTOKEN"
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    33
                   fixed="US"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    34
  </xsd:complexType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    35
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    36
  <xsd:complexType name="Items">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    37
    <xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    38
      <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    39
        <xsd:complexType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    40
          <xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    41
            <xsd:element name="productName" type="xsd:string"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    42
            <xsd:element name="quantity">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    43
              <xsd:simpleType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    44
                <xsd:restriction base="xsd:positiveInteger">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    45
                  <xsd:maxExclusive value="100"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    46
                </xsd:restriction>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    47
              </xsd:simpleType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    48
            </xsd:element>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    49
            <xsd:element name="USPrice"  type="xsd:decimal"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    50
            <xsd:element ref="comment"   minOccurs="0"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    51
            <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    52
          </xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    53
          <xsd:attribute name="partNum" type="SKU" use="required"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    54
        </xsd:complexType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    55
      </xsd:element>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    56
    </xsd:sequence>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    57
  </xsd:complexType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    58
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    59
  <!-- Stock Keeping Unit, a code for identifying products -->
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    60
  <xsd:simpleType name="SKU">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    61
    <xsd:restriction base="xsd:string">
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    62
      <xsd:pattern value="\d{3}-[A-Z]{2}"/>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    63
    </xsd:restriction>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    64
  </xsd:simpleType>
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    65
aaa80b48bead Adding support for the new version of xmlclass
lbessard
parents:
diff changeset
    66
</xsd:schema>