Project

General

Profile

« Previous | Next » 

Revision 4433

Added by daigle about 16 years ago

Added schema files that need to be available on server to test xml schema registration.

View differences:

test/servertestfiles/chapter05ord.xsd
1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
2
            targetNamespace="http://example.org/ord"
3
            xmlns="http://example.org/ord"
4
            xmlns:prod="http://example.org/prod">
5

  
6
  <xs:import namespace="http://example.org/prod"/>
7

  
8
  <xs:element name="order" type="OrderType"/>
9
  <xs:complexType name="OrderType">
10
    <xs:sequence>
11
      <xs:element name="items" type="ItemsType"/>
12
    </xs:sequence>
13
  </xs:complexType>
14

  
15
  <xs:complexType name="ItemsType">
16
    <xs:sequence>
17
      <xs:element ref="prod:product" maxOccurs="unbounded"/>
18
    </xs:sequence>
19
  </xs:complexType>
20

  
21

  
22
</xs:schema>
test/servertestfiles/chapter05prod.xsd
1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
2
            xmlns="http://example.org/prod"
3
            targetNamespace="http://example.org/prod">
4

  
5
  <xs:element name="product" type="ProductType"/>
6

  
7
  <xs:complexType name="ProductType">
8
    <xs:sequence>
9
      <xs:element name="number" type="xs:integer"/>
10
      <xs:element name="name" type="xs:string"/>
11
      <xs:element name="size" nillable="true" type="SizeType"/>
12
    </xs:sequence>
13
  </xs:complexType>
14

  
15
  <xs:complexType name="SizeType">
16
    <xs:simpleContent>
17
      <xs:extension base="xs:integer">
18
        <xs:attribute name="system" type="xs:string"/>
19
      </xs:extension>
20
    </xs:simpleContent>
21
  </xs:complexType>
22

  
23
</xs:schema>

Also available in: Unified diff