<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.pwg.org/schemas/2006/10/wims" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pwg="http://www.pwg.org/schemas/2006/10/sm" targetNamespace="http://www.pwg.org/schemas/2006/10/wims" elementFormDefault="qualified" version="1.08">
	<xs:import namespace="http://www.pwg.org/schemas/2006/10/sm" schemaLocation="PwgCommon.xsd"/>
	<xs:include schemaLocation="Schedule.xsd"/>
	<!--10/08/06 PJZ Reworked dependencies and removed Chameleon-->
	<!--08/08/06 PJZ Changed namespace-->
	<xs:annotation>
		<xs:documentation source="www.pwg.org">
   PWG Semantic Model v2   

    IEEE/ISTO Printer Working Group (PWG)
    Web-based Imaging Management Services (WIMS)
    Report XML Schema
 
    - version 1.08 - 18 December 2007 -Editors:  Peter Zehler, Ira McDoanald 

    Normative References
    --------------------
    [WIMS-PRO] Web-based Imaging Management Service (WIMS)
               (work-in-progress)

    Informative References
    ----------------------
    [RFC2911] Internet Printing Protocol/1.1: Model and Semantics
              (September 2000)
              ftp://ftp.isi.edu/in-notes/rfc2911.txt

    [RFC3066] Tags for the Identification of Languages
              (January 2001)
              ftp://ftp.isi.edu/in-notes/rfc3066.txt
  </xs:documentation>
	</xs:annotation>
	<!--                                 -->
	<!-- report element type definitions -->
	<!--                                 -->
	<!-- NOTE:  After PWG 'last call' and formal approval, these WKV -->
	<!--        enums will be moved to std 'PwgWellKnownValues.xsd' -->
	<xs:complexType name="ReportRequestedElements">
		<xs:sequence>
			<xs:element ref="ReportElement" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<!-- list of requested elements and values for this report -->
		<!-- (if any ActionRequestedElements element name is not supported -->
		<!-- then that element is omitted from ReportRequestedElements) -->
		<!-- see Get-Printer-Attributes section 3.2.5.1 of [RFC2911] -->
		<!-- see ActionRequestedElements in Schedule XML schema -->
	</xs:complexType>
	<xs:complexType name="ReportUnsupportedElements">
		<xs:sequence>
			<xs:element ref="ReportElement" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<!-- list of unsupported elements and values for this report -->
		<!-- (if any ActionRequestedElements element name is not supported -->
		<!-- then that element is included in ReportUnsupportedElements) -->
		<!-- see Unsupported Attributes section 3.1.7 of [RFC2911] -->
		<!-- see ReportRequestedElements above -->
	</xs:complexType>
	<!--                            -->
	<!-- report element definitions -->
	<!--                            -->
	<xs:element name="ReportElement" type="ObjectElement"/>
	<!-- OPTIONAL - MUST be single-valued -->
	<!-- standard or extension element (and value) from any namespace -->
	<xs:element name="ReportSequenceNumber" type="pwg:ObjectCounter32"/>
	<!-- REQUIRED - MUST be single-valued -->
	<!-- sequence number of most recent report -->
	<xs:element name="ReportRequestedElements" type="ReportRequestedElements"/>
	<!-- OPTIONAL - MAY be multi-valued -->
	<!-- list of requested elements and values for this report -->
	<!-- (if any ActionRequestedElements element name is not supported -->
	<!-- then that element is omitted from ReportRequestedElements) -->
	<!-- see Get-Printer-Attributes section 3.2.5.1 of [RFC2911] -->
	<!-- see ActionRequestedElements in Schedule XML schema -->
	<xs:element name="ReportUnsupportedElements" type="ReportUnsupportedElements"/>
	<!-- OPTIONAL - MAY be multi-valued -->
	<!-- list of unsupported elements and values for this report -->
	<!-- (if any ActionRequestedElements element name is not supported -->
	<!-- then that element is included in ReportUnsupportedElements) -->
	<!-- see Unsupported Attributes section 3.1.7 of [RFC2911] -->
	<!-- see ReportRequestedElements above -->
	<xs:element name="ReportText" type="pwg:ObjectStringMax"/>
	<!-- OPTIONAL - MUST be single-valued -->
	<!-- human-readable text delivered with this report -->
	<xs:element name="ReportNaturalLanguage" type="pwg:ObjectStringShort"/>
	<!-- OPTIONAL - MUST be single-valued -->
	<!-- natural language for text delivered with this report -->
	<!-- see IETF 'Tags for the Identification of Languages' [RFC3066] -->
	<xs:element name="ReportAgentReference" type="ObjectAgentReference"/>
	<!-- REQUIRED - MUST be single-valued -->
	<!-- reference to source legacy or WIMS agent for this report -->
	<!-- see NotifyAgentReference in Alert XML schema -->
	<xs:element name="ReportAgentDate" type="xs:dateTime"/>
	<!-- REQUIRED - MUST be single-valued -->
	<!-- date and time when this report was generated -->
	<!-- see NotifyAgentDate in Alert XML schema -->
	<xs:element name="ReportManagedEntityType" type="WIMSManagedEntityTypeWKV"/>
	<!-- REQUIRED - MUST be single-valued -->
	<!-- type of managed entity for report, for example, -->
	<!-- 'Agent' (WIMS Agent object) -->
	<xs:element name="ReportManagedEntityReference" type="WIMSManagedEntityReference"/>
	<!-- OPTIONAL - MUST be single-valued -->
	<!-- reference to managed entity for report, for example, -->
	<!-- 'pwg-wims://example.com' (WIMS Agent object) -->
	<!-- (a value of '*' is a wildcard and specifies any object -->
	<!-- of the type specified by ReportManagedEntityType) -->
	<!--                          -->
	<!-- report group definitions -->
	<!--                          -->
	<xs:element name="ReportBasic">
		<!-- ReportBasic - group -->
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="PlanStatus"/>
				<xs:element ref="PlanAction"/>
				<xs:element ref="ReportSequenceNumber"/>
				<xs:element ref="ReportRequestedElements" minOccurs="0"/>
				<xs:element ref="ReportUnsupportedElements" minOccurs="0"/>
				<xs:element ref="ReportText" minOccurs="0"/>
				<xs:element ref="ReportNaturalLanguage" minOccurs="0"/>
				<xs:any namespace="##other" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="ReportAgent">
		<!-- ReportAgent - group -->
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ReportAgentReference"/>
				<xs:element ref="ReportAgentDate"/>
				<xs:element ref="ReportManagedEntityType"/>
				<xs:element ref="ReportManagedEntityReference"/>
				<xs:any namespace="##other" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!--                   -->
	<!-- report definition -->
	<!--                   -->
	<xs:complexType name="Reports">
		<xs:sequence>
			<xs:element ref="Report" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<!-- Reports - set of reports -->
	</xs:complexType>
	<xs:complexType name="Report">
		<xs:sequence>
			<xs:element ref="ReportBasic"/>
			<xs:element ref="ReportAgent"/>
			<xs:any namespace="##other" minOccurs="0"/>
		</xs:sequence>
		<!-- Report - results of one planned action -->
		<!-- see individual element descriptions for their cardinality -->
		<!-- see PlanStatus and PlanAction in Schedule XML schema -->
		<!-- see ActionRequestedElements in Schedule XML schema -->
	</xs:complexType>
	<xs:element name="Report" type="Report"/>
	<!-- Report - results of one planned action -->
	<!-- see individual element descriptions for their cardinality -->
	<!-- see PlanStatus and PlanAction in Schedule XML schema -->
	<!-- see ActionRequestedElements in Schedule XML schema -->
</xs:schema>
