<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<!--
4.3.9.4 Constraints on minExclusive Schema Components
  Schema Component Constraint: minExclusive valid restriction
    It is an error if any of the following conditions is true:
    [4] maxExclusive is among the members of {facets}
        of {base type definition} and {value} is greater than
        or equal to the {value} of the parent maxExclusive

http://www.w3.org/TR/xmlschema-2/#minExclusive-valid-restriction
-->

	<xsd:simpleType name="st1">
		<xsd:restriction base="xsd:long">
			<xsd:maxExclusive value="1"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="st2">
		<xsd:restriction base="st1">
			<xsd:minExclusive value="1"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:complexType name="ct1">
		<xsd:attribute name="a1" type="st2" use="optional"/>
	</xsd:complexType>

</xsd:schema>
