<?xml version="1.0" encoding="UTF-8"?>
<!--
    
    ** OAGIS® Revision: 9.1  **
    ** Date: 11 May 2007 **
    ** Copyright 1997-2007, All Rights Reserved **
    
    This is an OAGIS® BOD XML Schema (XSD) Definition.
    
    License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
    
    For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
    
    XML Schema 
    
-->

<!--
    © Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
    word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
    Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
    are the property of their respective owners.
    
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:oa="http://www.openapplications.org/oagis/9" xmlns="http://schema.infor.com/Infor1.0"
    targetNamespace="http://schema.infor.com/Infor1.0" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:import namespace="http://www.openapplications.org/oagis/9"
        schemaLocation="../../../9.0/Resources/Components/Common/Components.xsd"/>
    <xsd:include schemaLocation="../Components/Common/Components.xsd"/>

    <xsd:element name="EffectiveTimePeriod" type="TimePeriodType"
        substitutionGroup="oa:EffectiveTimePeriod"/>

    <xsd:element name="ReportConfiguration" type="ReportConfigurationType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> ReportConfiguration used
                to communicate information about processing a report on an existing instance(s) of a
                noun to the reporting system.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="ReportConfigurationType">
        <xsd:sequence>
            <xsd:element ref="oa:DocumentID" minOccurs="0"/>
            <xsd:element ref="NounName" minOccurs="0"/>
            <xsd:element ref="oa:DocumentReference" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> This list of document references is used to indentify to
                        reporting services the objects that must be processed by reporting services
                        prior to the report being generated. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="oa:Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ReportParameters" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ReportParametersType">
        <xsd:sequence>
            <xsd:element ref="ReportName" minOccurs="0"/>
            <xsd:element ref="ReportPath" minOccurs="0"/>
            <xsd:element ref="ReportFormat" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ReportDelivery" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ReportCopies" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ReportDeliveryType">
        <xsd:sequence>
            <xsd:element ref="DeliveryMethod"/>
            <xsd:element ref="DeliverTo" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="NounName" type="oa:NameType">
        <xsd:annotation>
            <xsd:documentation>The Name of the Noun that is the primary noun for this
            report.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReportParameters" type="ReportParametersType"/>
    <xsd:element name="ReportDelivery" type="ReportDeliveryType"/>
    <xsd:element name="ReportName" type="oa:NameType">
        <xsd:annotation>
            <xsd:documentation> The name of the report definition to use to generate this report.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReportPath" type="oa:URIType">
        <xsd:annotation>
            <xsd:documentation> The path to the report definition names in ReportName
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReportFormat" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation> The output type of the report: PDF, DOC, XLS, HTML, Postscript.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="DeliveryMethod" type="oa:CodeType">
        <xsd:annotation>
            <xsd:documentation> The output method for the report: Screen, Printer, File
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="DeliverTo" type="oa:URIType">
        <xsd:annotation>
            <xsd:documentation> Not used when the output method is Screen. Otherwise the URI for the
                printer or the location of the file. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ReportCopies" type="oa:PositiveIntegerNumericType">
        <xsd:annotation>
            <xsd:documentation> The number of copies of the report to be printed.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>


</xsd:schema>
