<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.openarml.org/arml/1.0"
    xmlns="http://www.openarml.org/arml/1.0"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">
    
    <xs:annotation>
        <xs:documentation xml:lang="slv">
            Ker uradna XML shema pri Wikitude ne obstaja, sem sam naštel vse elemente, ki jih uporabljam.
            
            Ločujem med elementi, katerih vrednost se neposredno vpisuje preko adminisracije na wikitude
            in elementi, katere se pretvori v XML elemente po vzorcu objavljenem na http://openarml.org/wikitude4.html
            
            V tej shemi so vključeni samo elementi, ki izhajajo iz ARML sheme.
            
            Elementi za wikitude administracijo in specifični wikitude elementi so v moji XML shemi wikitude.xsd
            
            Elementi za KML XML so v originalni KML XML Schema ogckml22.xsd
        </xs:documentation>
    </xs:annotation>
    
    <xs:annotation>
        <xs:documentation xml:lang="eng">
            ARML (augmented reality markup language) V1.0 XML Schema
            Version: 1.0
            Date: 2013-10-10
            Based on ARML Wikitude specifications http://developer.wikitude.com/developer-forum
            
            This software is dual-licensed:
            
            1. Distributed under a Creative Commons Attribution-ShareAlike 3.0
            Unported License http://creativecommons.org/licenses/by-sa/3.0/ 
            
            2. http://www.opensource.org/licenses/BSD-2-Clause
            
            All rights reserved.
            
            Redistribution and use in source and binary forms, with or without
            modification, are permitted provided that the following conditions are
            met:
            
            * Redistributions of source code must retain the above copyright
            notice, this list of conditions and the following disclaimer.
            
            * Redistributions in binary form must reproduce the above copyright
            notice, this list of conditions and the following disclaimer in the
            documentation and/or other materials provided with the distribution.
            
            This software is provided by the copyright holders and contributors
            "as is" and any express or implied warranties, including, but not
            limited to, the implied warranties of merchantability and fitness for
            a particular purpose are disclaimed. In no event shall the copyright
            holder or contributors be liable for any direct, indirect, incidental,
            special, exemplary, or consequential damages (including, but not
            limited to, procurement of substitute goods or services; loss of use,
            data, or profits; or business interruption) however caused and on any
            theory of liability, whether in contract, strict liability, or tort
            (including negligence or otherwise) arising in any way out of the use
            of this software, even if advised of the possibility of such damage.
            
            Andrej Pančur, Inštitut za novejšo zgodovino, Ljubljana (Institute of contemporary history, Ljubljana)
        </xs:documentation>
    </xs:annotation>
    
    <xs:simpleType name="languageType">
        <xs:restriction base="xs:language">
            <xs:enumeration value="slv">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">slovenski</xs:documentation>
                    <xs:documentation xml:lang="eng">Slovenian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="eng">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">angleški</xs:documentation>
                    <xs:documentation xml:lang="eng">English</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="deu">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">nemški</xs:documentation>
                    <xs:documentation xml:lang="eng">German</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="hrv">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">hrvaški</xs:documentation>
                    <xs:documentation xml:lang="eng">Croatian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="srp">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">srbski</xs:documentation>
                    <xs:documentation xml:lang="eng">Serbian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="bos">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">bosanski</xs:documentation>
                    <xs:documentation xml:lang="eng">Bosnian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="mkd">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">makedonski</xs:documentation>
                    <xs:documentation xml:lang="eng">Macedonian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="fra">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">francoski</xs:documentation>
                    <xs:documentation xml:lang="eng">French</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="spa">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">španski</xs:documentation>
                    <xs:documentation xml:lang="eng">Spanish</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ita">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">italijanski</xs:documentation>
                    <xs:documentation xml:lang="eng">Italian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="hun">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">madžarski</xs:documentation>
                    <xs:documentation xml:lang="eng">Hungarian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="rus">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">ruski</xs:documentation>
                    <xs:documentation xml:lang="eng">Russian</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="pol">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">poljski</xs:documentation>
                    <xs:documentation xml:lang="eng">Polish</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ces">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">češki</xs:documentation>
                    <xs:documentation xml:lang="eng">Czech</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="slk">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">slovaški</xs:documentation>
                    <xs:documentation xml:lang="eng">Slovak</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="dan">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">danski</xs:documentation>
                    <xs:documentation xml:lang="eng">Danish</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="nld">
                <xs:annotation>
                    <xs:documentation xml:lang="slv">nizozemski</xs:documentation>
                    <xs:documentation xml:lang="eng">Dutch</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_30_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="30"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="categoryType">
        <!-- dodaj jih v celoti -->
        <xs:restriction base="xs:string">
            <xs:enumeration value="Accomodation"/>
            <xs:enumeration value="Archicecture"/>
            <xs:enumeration value="Businnes and Service"/>
            <xs:enumeration value="Culture"/>
            <xs:enumeration value="Education"/>
            <xs:enumeration value="Events"/>
        </xs:restriction>
    </xs:simpleType>
    
    <!-- ADMIN -->
    <xs:element name="name">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Glavno ime za Wikitudov world.
                Dolžina ni omenjena, vendar verjetno bolje, da je krajše.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="worldShortName">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A short abbreviated name of your World (maximum 30 characters)
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_30_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="description">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The description text helps users to understand what they can expect from your World.
                Give them a short overview and some keywords.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="categoryList">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Select at minimum 1 category out of this list and maximum three (3) categories.
                We encourage you to select 3 categories so your World can be easily found.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="category" type="categoryType" maxOccurs="3"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <!-- XML za aplikacijo (providerINFO) -->
    <xs:element name="providerID" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Identifies the content provider or content channel. Must be unique across all providers.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="providerName" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Name of the content provider. This name will be used to display the content provider
                in the settings and bookmarks menu of the browser.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="providerDescription">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Description of a content provider that provides additional information about the content displayed.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
</xs:schema>
