<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" elementFormDefault="qualified" xmlns="http://isset.bug" targetNamespace="http://isset.bug">
	
	<xsd:annotation>
		<xsd:documentation>
			Schema to demonstrate bug in isSet-methods. OpticalTypeImpl.java will have a bug in isSetPeriod().
		</xsd:documentation>
		<xsd:appinfo>
    		<jaxb:globalBindings generateIsSetMethod="true" />
		</xsd:appinfo>
	</xsd:annotation>

	<xsd:element name="meteordata">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:choice minOccurs="1" maxOccurs="unbounded">
					<xsd:element name="visual" type="OpticalType" />
					<xsd:element name="video" type="OpticalType" />
				</xsd:choice>
			</xsd:sequence>
		</xsd:complexType>	
	</xsd:element>
	
	<xsd:complexType name="OpticalType">
		<xsd:all>
			<xsd:element name="observer" type="xsd:string" minOccurs="1" maxOccurs="1" />
			<xsd:element name="periodlist" minOccurs="1" maxOccurs="1">
				<xsd:complexType>	
					<xsd:sequence>	
						<xsd:element name="period" type="PeriodType" minOccurs="1" maxOccurs="unbounded" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:all>
	</xsd:complexType>

	<xsd:complexType name="PeriodType">
		<xsd:all>
			<xsd:element name="start" type="xsd:dateTime" minOccurs="1" maxOccurs="1" />
			<xsd:element name="stop" type="xsd:dateTime" minOccurs="1" maxOccurs="1" />
		</xsd:all>
	</xsd:complexType>
	
</xsd:schema>
