<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns="http://www.imsglobal.org/xsd/imslticc_v1p4"
     targetNamespace="http://www.imsglobal.org/xsd/imslticc_v1p4"
     xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0"
     xmlns:lomc="http://ltsc.ieee.org/xsd/imsccv1p4/LOM/imscclti"
     xmlns:csmd="http://www.imsglobal.org/xsd/imsccv1p4/imscsmd_v1p1"
     xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0"
     xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     version="IMS LTICC 1.4"
     elementFormDefault="qualified"
     attributeFormDefault="unqualified">
    <xs:import namespace="http://www.imsglobal.org/xsd/imsbasiclti_v1p0" schemaLocation="https://purl.imsglobal.org/spec/lti/v1p0/schema/xsd/imsbasiclti_v1p0p1.xsd" />
    <xs:import namespace="http://ltsc.ieee.org/xsd/imsccv1p4/LOM/imscclti" schemaLocation="https://purl.imsglobal.org/spec/cc/v1p4/schema/xsd/ccv1p4_lomccltilink_v1p0.xsd" />
    <xs:import namespace="http://www.imsglobal.org/xsd/imsccv1p4/imscsmd_v1p1" schemaLocation="https://purl.imsglobal.org/spec/cc/v1p4/schema/xsd/ccv1p4_imscsmd_v1p1.xsd" />
    <xs:import namespace="http://www.imsglobal.org/xsd/imslticp_v1p0" schemaLocation="https://purl.imsglobal.org/spec/lti/v1p0/schema/xsd/imslticp_v1p0.xsd" />
    <xs:import namespace="http://www.imsglobal.org/xsd/imslticm_v1p0" schemaLocation="https://purl.imsglobal.org/spec/lti/v1p0/schema/xsd/imslticm_v1p0.xsd" />



    <xs:annotation>
        <xs:documentation>
            XSD Data File Information
            =========================
            Author:         Chuck Severance (IMS Global) and Colin Smythe (IMS Global)
            Date:           1st August, 2017
            Version:        1.4
            Status:         Final Release
            Description:    This is the description of the resource linkfile that is to be placed inside a Common Cartridge.

            History:        V1.0 - the first Final Release.
                            V1.0.1 - changed to use the imsbasiclti_v1p0p1.xsd;
                            V1.3 - introduction of the metadata and litversion in the CC link;
                             1.4 - namespace update to 1.4.

            License:        IPR and Distribution Notices

                            This machine readable file is derived from IMS Global specification IMS LTI (Common Cartridge) Version 1.4
                            found at http://www.imsglobal.org/lti and the original IMS Global schema binding or code base
                            http://www.imsglobal.org/lti.

                            Recipients of this document are requested to submit, with their comments, notification of any relevant 
                            patent claims or other intellectual property rights of which they may be aware that might be infringed by
                            any implementation of the specification set forth in this document, and to provide supporting documentation.

                            IMS takes no position regarding the validity or scope of any intellectual property or other rights that might
                            be claimed to pertain to the implementation or use of the technology described in this document or the extent 
                            to which any license under such rights might or might not be available; neither does it represent that it has 
                            made any effort to identify any such rights. Information on IMS procedures with respect to rights in IMS 
                            specifications can be found at the IMS Global Intellectual Property Rights web page: http://www.imsglobal.org/ipr/imsipr_policyFinal.pdf.

                            Copyright (c) IMS Global Learning Consortium 1999-2017. All Rights Reserved.

                            Use of this specification to develop products or services is governed by the license with IMS found on the IMS website: http://www.imsglobal.org/license.html.

                            Permission is granted to all parties to use excerpts from this document as needed in producing requests for proposals.

                            The limited permissions granted above are perpetual and will not be revoked by IMS or its successors or assigns.

                            THIS SPECIFICATION IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NONINFRINGEMENT IS
                            EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICATION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTIUM
                            NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF
                            ANY NATURE WHATSOEVER, DIRECTLY OR INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION.

            Source UML File Information
            ===========================
            The source file information must be supplied as an XMI file (without diagram layout information).
            The supported UML authoring tools are:
            (a) Poseidon - v6 (and later)
            (b) Papyrus - v1.1.3 (and later)

            Source XSLT File Information
            ============================
            XSL Generator:    Specificationv1p0_GenerationToolv1.xsl
            XSLT Processor:   Saxon-EE-9.6.0.7
            Release:          1.0
            Date:             31st January, 2017
            Autogen Engineer: Colin Smythe (IMS Global, UK)
            Autogen Date:     2017-06-28

            IMS Global Auto-generation Binding Tool-kit (I-BAT)
            ===================================================
            This file was auto-generated using the IMS Global Binding Auto-generation Tool-kit (I-BAT).  While every
            attempt has been made to ensure that this tool auto-generates the files correctly, users should be aware
            that this is an experimental tool.  Permission is given to make use of this tool.  IMS Global makes no
            claim on the materials created by third party users of this tool.  Details on how to use this tool
            are contained in the IMS Global "I-BAT" documentation available at the IMS Global web-site:
            http://www.imsglobal.org.

            Tool Copyright:  2012-2017  (c) IMS Global Learning Consortium Inc.  All Rights Reserved.
        </xs:documentation>
    </xs:annotation>

    <!-- Generate Global Attributes (non-assigned) ******************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate Global Attributes *********************************************************************** -->

    <xs:attributeGroup name="extension.ResourceRef.Attr">
        <xs:anyAttribute namespace = "##other" processContents = "strict" />
    </xs:attributeGroup>

    <!-- ================================================================================================== -->

    <!-- Generate Global List Types *********************************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate Namespaced extension Group  ************************************************************* -->

    <xs:group name="grpStrict.any">
        <xs:annotation>
            <xs:documentation>
                Any namespaced element from any namespace, other than the target namespace, may be included within an "any" element.
                The namespace for the imported element must be defined in the instance, and the schema must be imported.
                The extension has a definition of "strict" i.e. they must have their own namespace.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:any namespace = "##other" processContents = "strict" minOccurs = "0" maxOccurs = "unbounded" />
        </xs:sequence>
    </xs:group>

    <!-- ================================================================================================== -->

    <!-- Generate Special DataTypes  ********************************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the enumerated simpleType declarations ************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Parameter) ***************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Derived) ******************************* -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Union) ********************************* -->

    <!-- ================================================================================================== -->

    <!-- Generate the simpleType elements based on IMS data-types (Complex) ******************************* -->

    <!-- ================================================================================================== -->

    <!-- Generate the derived data-type elements based upon simpleType ************************************ -->

    <xs:simpleType name="Name.Type">
        <xs:restriction base="xs:Name" />
    </xs:simpleType>

    <!-- ================================================================================================== -->

    <!-- Generate the derived data-type elements based upon derived simpleType **************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the ComplexTypes ************************************************************************ -->

    <xs:complexType name="CartridgeBasicLTILink.Type" abstract="false" mixed="false">
        <xs:annotation>
            <xs:documentation source="documentation">
                The CartridgeBasicLTILink class is the container for the information about the use of Bas-
                icLTI with a Common Cartridge.                                                            
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="blti:BasicLTILink.Type">
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:element name="cartridge_bundle" type="ResourceRef.Type" minOccurs="0" maxOccurs="1" />
                  <xs:element name="cartridge_icon" type="ResourceRef.Type" minOccurs="0" maxOccurs="1" />
                  <xs:element name="metadata" type="Metadata.Type" minOccurs="0" maxOccurs="1" />
                  <xs:group ref="grpStrict.any" />
                </xs:choice>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="CartridgeToolLocator.Type" abstract="false" mixed="false">
        <xs:annotation>
            <xs:documentation source="documentation">
                The ToolLocator complexType is the container for the tool locator information for the car-
                tridge BasicLTI resource.                                                                 
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="lticp:ToolLocator.Type">
                <xs:sequence>
                    <xs:element name="tool_settings" type="lticm:PropertySet.Type" minOccurs="0" maxOccurs="1" />
                    <xs:group ref="grpStrict.any" />
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="Metadata.Type" abstract="false" mixed="false">
        <xs:sequence>
            <xs:element ref="lomc:lom" minOccurs="0" maxOccurs="1" />
            <xs:element ref="csmd:curriculumStandardsMetadataSet" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
    </xs:complexType>



    <!-- ================================================================================================== -->

    <!-- Generate the SOAP Binding ComplexTypes *********************************************************** -->

    <!-- ================================================================================================== -->

    <!-- Generate the derived ComplexTypes **************************************************************** -->

    <xs:complexType name="ResourceRef.Type" abstract="false" mixed="false">
        <xs:annotation>
            <xs:documentation source="documentation">
                The ResourceRef complexType is the container for the resource reference.                  
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="xs:normalizedString">
                <xs:attribute name="identifierref" use="required" type="Name.Type" />
                <xs:attributeGroup ref="extension.ResourceRef.Attr" />
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>

    <!-- ================================================================================================== -->

    <!-- Declaration of the elements (Complex) ************************************************************ -->

    <!-- ================================================================================================== -->

    <!-- Declaration of the elements (Derived) ************************************************************ -->

    <!-- ================================================================================================== -->

    <!-- Declaration of the root element(s) *************************************************************** -->

    <xs:element name="cartridge_basiclti_link" type="CartridgeBasicLTILink.Type" />
    <xs:element name="lti_tool_locator" type="CartridgeToolLocator.Type" />

    <!-- ================================================================================================== -->

</xs:schema>
