<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Test Type  : Schema VALID  ( element wildcard <any> )
Description: Tests <any> with minOccurs="0", maxOccurs="unbounded",
             processContents="skip" within <group><sequence>.
             No targetNamespace defined.
-->
<xs:simpleType name="boy_girl_type">
	<xs:restriction base="xs:string">
		<xs:enumeration value="boy"/>
		<xs:enumeration value="girl"/>
	</xs:restriction>
</xs:simpleType>

<xs:complexType name="childType">
	<xs:attribute name="boy_girl" type="boy_girl_type"/>
	<xs:attribute name="age"      type="xs:nonNegativeInteger"/>
</xs:complexType>

<xs:group name="group1">
	<xs:sequence>
		<xs:any namespace="##local" minOccurs="2" maxOccurs="2" processContents="skip"/>
		<xs:element name="child1" type="childType"/>
		<xs:element name="child2" type="childType"/>
		<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
	</xs:sequence>
</xs:group>

<xs:attributeGroup name="attrgrp1">
	<xs:attribute name="position" type="xs:Name"/>
	<xs:attribute name="degree" type="xs:string"/>
</xs:attributeGroup>

<xs:element name="pet">
	<xs:complexType>
		<xs:simpleContent>
			<xs:extension base="xs:NCName">
				<xs:attribute name="age" type="xs:positiveInteger"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
</xs:element>

<xs:element name="father">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="home_address" type="xs:string"/>
			<xs:group ref="group1"/>
		</xs:sequence>
		<xs:attribute name="last_name" type="xs:Name"/>
		<xs:attributeGroup ref="attrgrp1"/>
	</xs:complexType>
</xs:element>

</xs:schema>