source: icXML/icXML-devel/tests/src/XSTSHarness/regression/XERCESC-1822/m3_10v44.xsd @ 2726

Last change on this file since 2726 was 2726, checked in by cameron, 7 years ago

Add original Xerces tests and samples directories

File size: 1.7 KB
Line 
1<?xml version="1.0"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3<!--
4Test Type  : Schema VALID  ( element wildcard <any> )
5Description: Tests <any> with minOccurs="0", maxOccurs="unbounded",
6             processContents="skip" within <group><sequence>.
7             No targetNamespace defined.
8-->
9<xs:simpleType name="boy_girl_type">
10        <xs:restriction base="xs:string">
11                <xs:enumeration value="boy"/>
12                <xs:enumeration value="girl"/>
13        </xs:restriction>
14</xs:simpleType>
15
16<xs:complexType name="childType">
17        <xs:attribute name="boy_girl" type="boy_girl_type"/>
18        <xs:attribute name="age"      type="xs:nonNegativeInteger"/>
19</xs:complexType>
20
21<xs:group name="group1">
22        <xs:sequence>
23                <xs:any namespace="##local" minOccurs="2" maxOccurs="2" processContents="skip"/>
24                <xs:element name="child1" type="childType"/>
25                <xs:element name="child2" type="childType"/>
26                <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
27        </xs:sequence>
28</xs:group>
29
30<xs:attributeGroup name="attrgrp1">
31        <xs:attribute name="position" type="xs:Name"/>
32        <xs:attribute name="degree" type="xs:string"/>
33</xs:attributeGroup>
34
35<xs:element name="pet">
36        <xs:complexType>
37                <xs:simpleContent>
38                        <xs:extension base="xs:NCName">
39                                <xs:attribute name="age" type="xs:positiveInteger"/>
40                        </xs:extension>
41                </xs:simpleContent>
42        </xs:complexType>
43</xs:element>
44
45<xs:element name="father">
46        <xs:complexType>
47                <xs:sequence>
48                        <xs:element name="home_address" type="xs:string"/>
49                        <xs:group ref="group1"/>
50                </xs:sequence>
51                <xs:attribute name="last_name" type="xs:Name"/>
52                <xs:attributeGroup ref="attrgrp1"/>
53        </xs:complexType>
54</xs:element>
55
56</xs:schema>
Note: See TracBrowser for help on using the repository browser.