<?xml version="1.0" encoding="UTF-8"?>
<!--
    AccountDimension used for accounting analysis. 
    
    
    ** 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="EffectiveAccountTimePeriod" type="TimePeriodType"
        substitutionGroup="oa:EffectiveTimePeriod"/>
    
    <xsd:element name="AccountDimension" type="AccountDimensionType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/Infor1.0"> AccountDimension used for
                accounting analysis. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="AccountDimensionType">
        <xsd:sequence>
            <xsd:element ref="DimensionID" minOccurs="0"/>
            <xsd:element ref="Name" minOccurs="0"/>
            <xsd:element ref="oa:Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="DimensionValues" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="FieldList" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="DimensionID" type="oa:IdentifierType">
        <xsd:annotation>
            <xsd:documentation> The primary ID of a dimension is numeric and it uniquely identifies
                the position if this dimension in a fully realized account structure. The nominal
                account is always in position 1 (one), and then the value of each dimension in its
                position such that the dimension with ID 1 will be in the first position after the
                nominal account. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Name" type="oa:NameType"/>
    <xsd:element name="DimensionValues" type="DimensionValueType">
        <xsd:annotation>
            <xsd:documentation>The list of valid values for this dimension. The name attribute can
                contain an additional name for the value. The element is the actual dimension value.
                Descriptions can be added for each value to further clarify its
            purpose.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:complexType name="DimensionValueType">
        <xsd:complexContent>
            <xsd:extension base="oa:PropertyType">
                <xsd:sequence>
                    <xsd:element ref="FieldList" minOccurs="0" maxOccurs="unbounded"></xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    
</xsd:schema>
