<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://dev.junaio.com/index/mychannels"
    xmlns="http://dev.junaio.com/index/mychannels"
    elementFormDefault="qualified">
    
    <xs:annotation>
        <xs:documentation xml:lang="slv">
            Andrej Pančur, Inštitut za novejšo zgodovino, Ljubljana
            Datum: 2013-10-10
            
            Moja lastna shema za Junaio.
            Tukaj so zbrani tisti elementi, ki se vnašajo neposredno preko administracije na spletni strani Junaio.
            Za elemente, ki se jih pretvarja v XML, s katerim se potem posreduje podatek o posameznih točkah interesa (POI),
            je posebna originalna AREL XML Schema returnArel.xsd (znotraj katere sem samo pripisal opis in vlogo posameznih elementov,
            ki sem jih imporiral v skupno sistoryAR shemo).
        </xs:documentation>
    </xs:annotation>
    
    <xs:annotation>
        <xs:documentation xml:lang="eng">
            Junaio administration V1.0 XML Schema
            Version: 1.0
            Date: 2013-10-10
            Used to validate XML instances of Data Sets to be inserted in Junaio http://dev.junaio.com/index/mychannels.
            
            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_255_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:element name="name">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Glavno ime za Junaio (admin) in Wikitude (admin).
                Dolžina ni omenjena, vendar verjetno bolje, da je krajše.
                Ime za Layar se piše posebej, ker ima omejitve glede dolžine.
            </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="description">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Glavni opis vsebine.
                Opis ne sme biti daljši od 255 znakov.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_255_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="serverURL">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                URL that will be contacted to retrieve the channel information.
                (e.g. http://yourserver.com/channel/arel.xml or http://yourserver.com/channel/)
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:anyURI">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="locationBasedINFO">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Select yes if your channel will provide geolocated information, stating latitude and longitude coordinates with POIs.
                If you select yes, please select the region for the content.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:enumeration value="yes"/>
                <xs:enumeration value="no"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    
    <xs:element name="region">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Izbere se državo, na območju katere bo channel viden.
                (Trenutno so dodane samo evropske in severnoameriške države. Po potrebi dodaj v shemo še ostale države.)
            </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:enumeration value="Albania"/>
                <xs:enumeration value="Andorra"/>
                <xs:enumeration value="Austria"/>
                <xs:enumeration value="Belarus"/>
                <xs:enumeration value="Belgium"/>
                <xs:enumeration value="Bosnia &amp; Herzegovina"/>
                <xs:enumeration value="Bulgaria"/>
                <xs:enumeration value="Croatia"/>
                <xs:enumeration value="Czech Republic"/>
                <xs:enumeration value="Denmark"/>
                <xs:enumeration value="Estonia"/>
                <xs:enumeration value="Faroe Is."/>
                <xs:enumeration value="Finland"/>
                <xs:enumeration value="France"/>
                <xs:enumeration value="Germany"/>
                <xs:enumeration value="Gilbratar"/>
                <xs:enumeration value="Greece"/>
                <xs:enumeration value="Guernsey"/>
                <xs:enumeration value="Hungary"/>
                <xs:enumeration value="Iceland"/>
                <xs:enumeration value="Isle of Man"/>
                <xs:enumeration value="Italy"/>
                <xs:enumeration value="Jan Mayen"/>
                <xs:enumeration value="Jersey"/>
                <xs:enumeration value="Latvia"/>
                <xs:enumeration value="Liechtenstein"/>
                <xs:enumeration value="Lithuania"/>
                <xs:enumeration value="Luxembourg"/>
                <xs:enumeration value="Macedonia"/>
                <xs:enumeration value="Malta"/>
                <xs:enumeration value="Montenegro"/>
                <xs:enumeration value="Netherlands"/>
                <xs:enumeration value="Norway"/>
                <xs:enumeration value="Poland"/>
                <xs:enumeration value="Portugal"/>
                <xs:enumeration value="Romania"/>
                <xs:enumeration value="San Marino"/>
                <xs:enumeration value="Serbia"/>
                <xs:enumeration value="Slovakia"/>
                <xs:enumeration value="Slovenia"/>
                <xs:enumeration value="Spain"/>
                <xs:enumeration value="Svalbard"/>
                <xs:enumeration value="Sweden"/>
                <xs:enumeration value="Switzerland"/>
                <xs:enumeration value="Ukraine"/>
                <xs:enumeration value="United Kingdom"/>
                <xs:enumeration value="Vatican City"/>
                <xs:enumeration value="United States"/>
                <xs:enumeration value="Canada"/>
                <xs:enumeration value="Australia"/>
                <xs:enumeration value="New Zealand"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    
    <xs:element name="Old-APIchannel" type="xs:string" default="No">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Only select Yes, if your Content server URL provides non-AREL XML (old channel).
            </xs:documentation>
            <xs:documentation xml:lang="slv">
                Pri nas takšnih primerov ne bo, zato se vedno izbere No.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="thumbnailURL" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Napišem pot, kjer imam shranjeno sličico, katero potem naložim preko admina.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="author" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                You can set a name that shall be dispayed in the details of the channel as the owner/author.
                If none is given, your username will be displayed.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="keywords">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Provide up to 5 keywords that will be added to your channel and considered for search queries.
                Please be aware, that channel keywords should be single worded.
                Keywords can be separated by komma (,), spaces ( ) or semikolons (;)
            </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="screenshotButton" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                If this box is checked, an additional button will be displayed in the lower left corner of your channels AR-View
                to allow the user to store screenshots on his phone or to post a screenshot to facebook.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="homepageURL" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                You can add a homepage to your channel with more information or your homepage.
                There will be a link within the details page to this homepage.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
</xs:schema>
