<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright  The HR-XML Consortium. All Rights Reserved. http://www.hr-xml.org
Name: cpoDateTimeTypes-1_1.xsd
Status: Recommendation
Date Approved: 2001-10-16
Conforms to w3c http://www.w3.org/2001/XMLSchema
Purpose: Defines Date and Time datatypes to be used in HR-XML Consortium work.  Matches the 1_0
version with conversion to the final XML Schema namespace http://www.w3.org/2001/XMLSchema.
Author(s): Mark Marsden & Paul Kiel, Cross Process Work Group
-->
<!--
This HR-XML Consortium Work (including specifications, documents,  software, and related items) 
is provided by the copyright holders  under the following license. By obtaining, using and/or copying
this work, you (the licensee) agree that you have read, understood,  and will comply with the following
terms and conditions.
Permission to use, copy, modify, or redistribute this Work and  its documentation, with or without 
modification, for any purpose  and without fee or royalty is hereby granted, provided that you  
include the following on ALL copies of the software and  documentation or portions thereof, 
including modifications,  that you make: 
1. This notice: "Copyright  The HR-XML Consortium. All Rights Reserved. http://www.hr-xml.org" 
2. Notice of any changes or modifications to the The HR-XML  Consortium files.
THIS WORK, INCLUDING SPECIFICATIONS, DOCUMENTS, SOFTWARE, OR OTHER 
RELATED ITEMS, IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO 
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT 
NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY 
PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION 
WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS 
OR OTHER RIGHTS. 
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,  SPECIAL OR 
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE  SOFTWARE OR DOCUMENTATION. 
TITLE TO COPYRIGHT IN THIS WORK AND ANY ASSOCIATED DOCUMENTATION WILL 
AT ALL TIMES REMAIN WITH COPYRIGHT HOLDERS. 
-->
<xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
                       http://www.w3.org/2001/XMLSchema.xsd">
	<!--  ====================  Literal Types ==============================  -->
	<xsd:simpleType name="NotKnownLiteral">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="notKnown"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="NotApplicableLiteral">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="notApplicable"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!--  ====================  Local Date Types ==============================  -->
	<xsd:simpleType name="LocalDateType">
		<xsd:restriction base="xsd:date">
			<xsd:pattern value="\d\d\d\d-\d\d-\d\d"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateNkType">
		<xsd:union memberTypes="LocalDateType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateNaType">
		<xsd:union memberTypes="LocalDateType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateNkNaType">
		<xsd:union memberTypes="LocalDateType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  Date Types ====================================  -->
	<xsd:simpleType name="DateType">
		<xsd:restriction base="xsd:date">
			<xsd:pattern value="\d\d\d\d-\d\d-\d\d(Z|(\+|-)\d\d:\d\d)"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="DateNkType">
		<xsd:union memberTypes="DateType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="DateNaType">
		<xsd:union memberTypes="DateType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="DateNkNaType">
		<xsd:union memberTypes="DateType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  Local Time Types ==============================  -->
	<xsd:simpleType name="LocalTimeType">
		<xsd:restriction base="xsd:time">
			<xsd:pattern value="\d\d:\d\d:\d\d"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="LocalTimeNkType">
		<xsd:union memberTypes="LocalTimeType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalTimeNaType">
		<xsd:union memberTypes="LocalTimeType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalTimeNkNaType">
		<xsd:union memberTypes="LocalTimeType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  Time Types ===================================  -->
	<xsd:simpleType name="TimeType">
		<xsd:restriction base="xsd:time">
			<xsd:pattern value="\d\d:\d\d:\d\d(Z|(\+|-)\d\d:\d\d)"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="TimeNkType">
		<xsd:union memberTypes="TimeType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="TimeNaType">
		<xsd:union memberTypes="TimeType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="TimeNkNaType">
		<xsd:union memberTypes="TimeType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  Local DateTime Types ===============================  -->
	<xsd:simpleType name="LocalDateTimeType">
		<xsd:restriction base="xsd:dateTime">
			<xsd:pattern value="\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateTimeNkType">
		<xsd:union memberTypes="LocalDateTimeType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateTimeNaType">
		<xsd:union memberTypes="LocalDateTimeType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="LocalDateTimeNkNaType">
		<xsd:union memberTypes="LocalDateTimeType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  DateTime Types ===================================  -->
	<xsd:simpleType name="DateTimeType">
		<xsd:restriction base="xsd:dateTime">
			<xsd:pattern value="\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(Z|(\+|-)\d\d:\d\d)"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="DateTimeNkType">
		<xsd:union memberTypes="DateTimeType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="DateTimeNaType">
		<xsd:union memberTypes="DateTimeType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="DateTimeNkNaType">
		<xsd:union memberTypes="DateTimeType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
	<!--  ====================  Any DateTime Types ==============================  -->
	<xsd:simpleType name="AnyDateTimeType">
		<xsd:union memberTypes="LocalDateType DateType LocalDateTimeType DateTimeType"/>
	</xsd:simpleType>
	<xsd:simpleType name="AnyDateTimeNkType">
		<xsd:union memberTypes="AnyDateTimeType NotKnownLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="AnyDateTimeNaType">
		<xsd:union memberTypes="AnyDateTimeType NotApplicableLiteral"/>
	</xsd:simpleType>
	<xsd:simpleType name="AnyDateTimeNkNaType">
		<xsd:union memberTypes="AnyDateTimeType NotKnownLiteral NotApplicableLiteral"/>
	</xsd:simpleType>
</xsd:schema>
