Project

General

Profile

« Previous | Next » 

Revision 5939

Added by Jing Tao over 13 years ago

Add test schema for downloading included xsd file.

View differences:

test/servertestfiles/company.xsd
1
<?xml version="1.0"?>
2
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
            targetNamespace="http://www.company.org"
4
            xmlns="http://www.company.org"
5
            elementFormDefault="qualified">
6
    <xsd:include schemaLocation="product.xsd"/>
7
    <xsd:element name="company">
8
        <xsd:complexType>
9
            <xsd:sequence>
10
                <xsd:element name="product" type="productType"
11
                             maxOccurs="unbounded"/>
12
            </xsd:sequence>
13
        </xsd:complexType>
14
    </xsd:element>
15
</xsd:schema>
16

  
test/servertestfiles/item.xsd
1
<?xml version="1.0"?>
2
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
            targetNamespace="http://www.company.org"
4
            xmlns="http://www.item.org"
5
            elementFormDefault="qualified">
6
    <xsd:complexType name="itemType">
7
        <xsd:sequence>
8
           <xsd:element name="name" type="xsd:string"/>
9
           <xsd:element name="serialNumber" type="xsd:string"/>
10
        </xsd:sequence>
11
    </xsd:complexType>
12
</xsd:schema>
13

  
14

  
test/servertestfiles/product.xsd
1
<?xml version="1.0"?>
2
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
            targetNamespace="http://www.company.org"
4
            xmlns="http://www.product.org"
5
            elementFormDefault="qualified">
6
    <xsd:include schemaLocation="./item.xsd"/>
7
    <xsd:complexType name="productType">
8
        <xsd:sequence>
9
           <xsd:element name="item" type="itemType" maxOccurs="unbounded"/>
10
        </xsd:sequence>
11
    </xsd:complexType>
12
</xsd:schema>
13

  

Also available in: Unified diff