<?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.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
 
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:include schemaLocation="../Components/Common/Components.xsd"/>

    <xsd:element name="ReportConfiguration" type="ReportConfigurationType">
        <xsd:annotation>
            <xsd:documentation > 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="DocumentID" minOccurs="0"/>
            <xsd:element ref="NounName" minOccurs="0"/>
            <xsd:element ref="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="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="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="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="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="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="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="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="PositiveIntegerNumericType">
        <xsd:annotation>
            <xsd:documentation> The number of copies of the report to be printed.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>


</xsd:schema>
