diff options
author | Björn Gustavsson <[email protected]> | 2010-09-02 15:44:33 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2011-05-10 09:13:23 +0200 |
commit | 824a6db3ff111f8d2427ac5adad0362bf078630a (patch) | |
tree | f146685c27e4c8f91b07f76d3e1e3510553e2e88 /lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd | |
parent | 1a5796cd12061ebb21e7e51a0b7bdf05ed4786a7 (diff) | |
download | otp-824a6db3ff111f8d2427ac5adad0362bf078630a.tar.gz otp-824a6db3ff111f8d2427ac5adad0362bf078630a.tar.bz2 otp-824a6db3ff111f8d2427ac5adad0362bf078630a.zip |
Add test suite for xmerl
Diffstat (limited to 'lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd')
-rw-r--r-- | lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd b/lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd new file mode 100644 index 0000000000..00d49db22d --- /dev/null +++ b/lib/xmerl/test/xmerl_xsd_SUITE_data/small.xsd @@ -0,0 +1,60 @@ +<xsd:schema + targetNamespace="small" + xmlns:sm="small" + xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <xsd:annotation> + <xsd:documentation xml:lang="en"> + Purchase order schema for Example.com. + Copyright 2000 Example.com. All rights reserved. + </xsd:documentation> + </xsd:annotation> + + <xsd:element name="purchaseOrder" type="sm:PurchaseOrderType"/> + + <xsd:element name="comment" type="xsd:string"/> + + <xsd:complexType name="PurchaseOrderType" mixed="true"> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="orderDate" type="xsd:date"/> + <xsd:attribute name="orderStatus" type="xsd:string" default="new"/> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + + <complexType name="own1"> + <complexContent> + <restriction base="xsd:anyType"> + <attribute name="number" type="xsd:integer"/> + <attribute name="quantity" type="xsd:positiveInteger"/> + </restriction> + </complexContent> + </complexType> + + <complexType name="PartsType"> + <sequence> + <element name="part" maxOccurs="unbounded"> + <complexType> + <simpleContent> + <extension base="xsd:string"> + <attribute name="number" type="xsd:integer"/> + </extension> + </simpleContent> + </complexType> + </element> + </sequence> + </complexType> + +<simpleType name="listOfMyIntType"> + <list itemType="xsd:integer"/> +</simpleType> + +<simpleType name="SixUSStates"> + <restriction base="sm:listOfMyIntType"> + <length value="6"/> + </restriction> +</simpleType> + +</xsd:schema> + |