<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.layar.com/documentation/browser/"
    xmlns="http://www.layar.com/documentation/browser/"
    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 Layar.
            
            Vsebuje tako elemente, katerih vrednost se lahko vstavi samo preko admina,
            kot elemente s podatki za točke interesa (POI).
        </xs:documentation>
    </xs:annotation>
    
    <xs:annotation>
        <xs:documentation xml:lang="eng">
            Layar augmented reality V1.0 XML Schema
            Version: 1.0
            Date: 2013-10-10
            Based on Layar documentations https://www.layar.com/documentation/browser/
            
            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="contentTypeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="application/vnd.layar.internal">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">
                        Use it for "tel:", "mailto:", "sms:", "layar://", "layarshare://" and other custom URL schemes.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="text/plain">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">
                        This tells the Layar client to fetch a plain text document that will be shown as a pop-up to the user 
                        as a result of activating the action. This is the same pop-up as the one used for the "showMessage" param
                        in the getPOIs response. 
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="application/vnd.layar.async">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">
                        This tells the client that the action is a REST call to the content provider. 
                        Only http:// is supported. The response should be a HTTP 302 redirect to a layar:// intent.
                        The layar:// intent tells the client to perform a new getPOI request.
                        The body of the HTTP 302 response (plain text) will be displayed as a pop-up to the user 
                        before performing the new getPOI request.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="text/html"/>
            <xs:enumeration value="audio/mpeg"/>
            <xs:enumeration value="audio/mp3"/>
            <xs:enumeration value="video/mp4"/>
            <xs:enumeration value="video/3gpp"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="methodType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="GET"/>
            <xs:enumeration value="POST"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="activityTypeType">
        <xs:restriction base="xs:positiveInteger">
            <xs:enumeration value="1">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Info</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Audio</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Video</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Phone/Call</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="5">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Email/Message</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="6">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Position/Map/Navigation</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="7">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Add</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="8">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Remove</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="9">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Edit</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="10">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Collect</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="11">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Play (e. g. a song)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="12">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Play (e. g. make the movie in a game)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="13">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Share/Post/Publish</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="14">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Pin/Mark (on map)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="15">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Check in/Check out</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="16">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Log in/Log out</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="17">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Lock/Unlock</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="18">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">List/Scores</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="19">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Money/Pay/Buy</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="20">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Open</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="21">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Close</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="22">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Search</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="23">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Update</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="24">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Layer (switch to another layer)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="25">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Yes</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="26">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Increase/Decrease</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="27">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">View/Examine/Details</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="28">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Add to favorites</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="29">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Kill/Hit/Attack</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="30">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Heal</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="31">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Defend</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="32">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Repair</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="33">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Use/Interact/Switch</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="34">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Animate</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="35">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Scoreboard</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="36">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">Generic action</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="37">
                <xs:annotation>
                    <xs:documentation xml:lang="eng">No</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="nameType">
        <xs:restriction base="xs:string">
            <xs:pattern value="([a-z0-9])*"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_18_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="18"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_45_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="45"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_60_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="60"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_80_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="80"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="string_maxLenght_140_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="140"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="layerType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Generic (2D)"/>
            <xs:enumeration value="2D and 3D objects in 3D space"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="categoryType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Accomodation"/>
            <xs:enumeration value="Archicecture &amp; Buildings"/>
            <xs:enumeration value="Arts"/>
            <xs:enumeration value="Beauty &amp; Wellnes"/>
            <xs:enumeration value="Charity &amp; Community"/>
            <xs:enumeration value="City tours"/>
            <xs:enumeration value="Dating"/>
            <xs:enumeration value="Education"/>
            <xs:enumeration value="Employment"/>
            <xs:enumeration value="Entertainement"/>
            <xs:enumeration value="Enviroment"/>
            <xs:enumeration value="Events"/>
            <xs:enumeration value="Financial"/>
            <xs:enumeration value="Food &amp; Drink"/>
            <xs:enumeration value="Fun"/>
            <xs:enumeration value="Games"/>
            <xs:enumeration value="Government &amp; Politics"/>
            <xs:enumeration value="Health"/>
            <xs:enumeration value="Local information"/>
            <xs:enumeration value="Local search &amp; Directory Service"/>
            <xs:enumeration value="Nature &amp; Parks"/>
            <xs:enumeration value="Nightlife"/>
            <xs:enumeration value="Photo &amp; video"/>
            <xs:enumeration value="Real Estate"/>
            <xs:enumeration value="Religion"/>
            <xs:enumeration value="Social"/>
            <xs:enumeration value="Sports &amp; Leisure"/>
            <xs:enumeration value="Stores &amp; Shopping"/>
            <xs:enumeration value="Tourist Information"/>
            <xs:enumeration value="Trading (market place)"/>
            <xs:enumeration value="Transportation"/>
            <xs:enumeration value="University &amp; Research"/>
            <xs:enumeration value="Weather"/>
            <xs:enumeration value="Wifi hotspots"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="tagsType">
        <xs:restriction base="xs:string">
            <xs:pattern value="([a-zčšžäöüA-ZČŠŽ0ÄÖÜ0-9]+,*\s*){1,15}"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="collorsType">
        <xs:restriction base="xs:string">
            <xs:pattern value="[A-Z0-9]{6}"/>
        </xs:restriction>
    </xs:simpleType>
    
    <!-- ADMINISTRACIJA -->
    <xs:element name="layer">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The unique layer name registered on the publishing site. It is used by layar server to identify POI service provider.
                It is passed through in the getPOIs request sent by the Layar client.
            </xs:documentation>
            <xs:documentation xml:lang="slv">
                Zapiše se ga takoj na začetku. Brez presledkov, samo male črke in številke.
                Ima vlogo identifikacijske oznake.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="nameType">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                    <xs:attribute name="n" type="xs:positiveInteger" use="required">
                        <xs:annotation>
                            <xs:documentation xml:lang="slv">
                                Identifikacijska številka Layer (layerID).
                                Za vsak nov Layer (z drugim jezikom) daj drugo številko - od 1 naprej.
                            </xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="layerTitle">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The title that will be visible once it is published.
            </xs:documentation>
            <xs:documentation xml:lang="slv">
                Glavni naslov aplikacije. Mora bi ti kratek (največ 18 znakov).
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_18_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="shortDescription">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A very short summary of your layer content with max. 60 characters including spaces.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_60_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="detailDescription">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Daljši opis, s katerim razložimo delovanje aplikacije. Lahko razdeljeno na odstavke.
                Poskusi z uporabo notranjih tagov...
            </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="API_endpointURL">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                URL datoteke index.php
            </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="publisher" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Name of the publisher of the layer.
                By default, layer developer is also the publisher of this layer.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="category" type="categoryType">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Kategorije, s pomočjo katerih lahko uporabnik najde aplikacijo.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="tags">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Največ 15 besed, med seboj ločenih z vejico ali za praznim prostorom.
                Uporabljene kot ključne besede pri iskanju.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="tagsType">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="type" type="layerType">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The type of layer, determining how the client should display the POIs: 1 = generic; 2= 2d and 3d objects in 3d space.
                Generic 2D: Use this if you only use default POI icons or you have uploaded customized icon sets under Look and feel tab.
                2D and 3D objects in 3D space: If you want to use 2D images or 3d models in 3D space. 
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="icons">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="icon_128" type="xs:string">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Največja ikona (logo) 128×128.
                            Zapisana pot na računalniku in/ali serverju, kjer je ta ikona shranjena,
                            preden se jo naloži preko layar administracije.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="icon_96" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Srednja ikona (logo) 96×96.
                            Zapisana pot na računalniku in/ali serverju, kjer je ta ikona shranjena,
                            preden se jo naloži preko layar administracije.
                            Če je ne naložimo, se zgenerira iz icon_128.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="icon_64" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Najmanjša ikona (logo) 64×64.
                            Zapisana pot na računalniku in/ali serverju, kjer je ta ikona shranjena,
                            preden se jo naloži preko layar administracije.
                            Če je ne naložimo, se zgenerira iz icon_128.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="screenshot" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Posnetek zaslona, ki se ga na spletni strani Layer prikazuje kot reklama za to aplikacijo.
                            Velikost 480×320.
                            Zapisana pot na računalniku in/ali serverju, kjer je ta posnetek zaslona shranjen,
                            preden se ga naloži preko layar administracije.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="bannerIcon120" type="xs:string">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Podolgovata ikona.
                            Resolucija 120×52
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="bannerIcon90" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation xml:lang="slv">
                            Podolgovata ikona.
                            Resolucija 90×39. Če je ne naložimo, se zgenerira iz bannerIcon_128.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="bannerIcon60" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>
                            Podolgovata ikona.
                            Resolucija 60×26. Če je ne naložimo, se zgenerira iz bannerIcon_128.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="colorsSet">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="bannerTextColor" type="collorsType"/>
                <xs:element name="bannerBackgroundColor" type="collorsType"/>
                <xs:element name="POIspotColor" type="collorsType"/>
                <xs:element name="POIouterColor" type="collorsType"/>
                <xs:element name="POImiddleColor" type="collorsType"/>
                <xs:element name="POIinnerColor" type="collorsType"/>
                <xs:element name="BIWbackgroundColor" type="collorsType"/>
                <xs:element name="BIWtitleColor" type="collorsType"/>
                <xs:element name="BIWtextColor" type="collorsType"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="filters">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="rangeSlider" minOccurs="0">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="minimumValue" type="xs:integer"/>
                            <xs:element name="defaultValue" type="xs:integer"/>
                            <xs:element name="maximumValue" type="xs:integer"/>
                        </xs:sequence>
                        <xs:attribute name="label" type="xs:string" use="required"/>            
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
            <xs:attribute name="showFiltersBeforeLoadingLayer" type="xs:boolean" use="required"/>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="additionalSettings">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="show_Take_me_there" type="xs:boolean"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    
    <!-- ZA CELOTEN LAYER -->
    <xs:element name="errorCode" type="xs:integer">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                If an error condition occurs, this will be notified using the error code.
                The error codes that can be used by developers are 0 and 20-30.
                NOTE that in this case, the server is actually responding, this is different than a HTTP 500 Error situation (server error).
                0 = "ok". No error, data available in the other fields.
                20-29, can be used to send back an message.The string of the error will be displayed as a message in the screen of the user. 
                NOTE that this will only be displayed if this is the first page in the response, errors sent in any successive page will be ignored.
                30, can be used to indicate that this layer requires authentication. 
                When this error code is returned in getPOI response, the client should open the webview at the 'URL for layer settings page' defined by the layer. 
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="errorString" type="string_maxLenght_80_Type">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The error message associated with the error code above.
                For each error code, developers can return custom messages which will be shown to the user in the AR view.
                This message can help improve user experience especially when something went wrong or you expect users to perform other actions.
                For instance when you expect users to change filter settings in order to see more POIs.
                NOTE that the maximum length is 80 Characters.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="nextPageKey" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The key to the page being returned.
                Default value: 	null.
                The key to the page being returned in the following getPOIs request.
                Pass this key to the page parameter in the request if the next page is requested.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="morePages" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Indicates whether more pages need to be retrieved.
                Default value: 	false.
                This parameter can be used to tell the service provider whether more pages need to be retrieved.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="radius" type="xs:integer">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Specifies the search radius when no radius value is present in the getPOIs request.
                Default value: NULL
                Instead of providing a fixed search range, developers can also return a radius value in the response 
                to assure that certain POIs are presented to the user. This can be done by emptying the default value
                of the search range filter on the publishing site. 
                NOTE that this parameter must be returned if the GetPOIs request doesn't contain a requested radius.
                It cannot be used to overrule a value of radius if that was provided in the request. the unit is meter.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="refreshInterval" type="xs:integer">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Indicates how many seconds to wait until the next getPOIs request is made.
                Default value: 	300.
                This tells the layar client how many seconds to wait until the next getPOIs request is made.
                By default, it is 300s. The minimum value is 10s.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <!-- TOČKE INTERESA -->
    <!-- POI -->
    <xs:element name="id" type="xs:ID">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The unique id which identifies a POI in the getPOIs response. This is used to track the POIs when refreshing the layer. 
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="lat">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Geografska širina.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:decimal">
                <xs:minInclusive value="-90"/>
                <xs:maxInclusive value="90"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    
    <xs:element name="lon">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Geografska dolžina.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:decimal">
                <xs:minInclusive value="-180"/>
                <xs:maxInclusive value="180"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>
    
    <xs:element name="alt" type="xs:integer">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Nadmorska višina.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="title">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                This is the first line in the BIW dialog on the client. It has larger font and uses the Banner text color defined under 
                the "Look and feel" tab of the publishing site.
                The recommended maximum string length is 60 characters and it will be wrapped over 2 lines. 
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_60_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">
                Some text can be used to explain the POI. It has normal font and uses the BIW Text Color defined 
                under the "Look and feel" tab of the publishing site.
                The recommended maximum string length is 140 characters and it will be wrapped over 3 lines.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_140_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="footnote">
        <xs:annotation>
            <xs:documentation xml:lang="slv">
                Samo 45 znakov dolg napis pod trivrstičnim opisom POI.
                V okviru providerINFO/layar/xml se lahko vpiše layar:footnote, ki bo veljal za vse POIs.
                Posameznem POI prilagojen individualni footnote se vpiše v POIs/poi layar:footnote
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_45_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="imageURL" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The location of the image to be displayed inside the BIW. If the image is too large, 
                it will be resized to fit within a bounding box of 100x75 pixels, preserving aspect ratio. 
                NOTE: the image file size should be smaller than 100kb, otherwise, the image will not be loaded.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="uri" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The URL to send the request to.
                The possible URIs are "tel:", "sms:", "mailto:", "http://", "https://", "layar://" , "layarshare://" and custom app schemes.
                Regarding custom app schemes, on Android, we firstly detect whether the user has the corresponding app installed, 
                if not, the action will not be shown. On iPhone, the action will be shown all the time. 
                If the corresponding app is not installed, nothing will happen when clicking on the action. 
                Therefore, it is not recommended to implement actions linking to custom app schemes 
                if you are not sure that target user groups have already installed the app. Note that "rtsp://" is NOT supported.
                The following HTTP headers will always be sent:
                - Cookie (if a cookie has been set for the domain)
                - User-Agent: The Layar app User-Agent is sent if the request is from within the AR view
                 (text/plain, audio/mpeg, audio/mp4, video/3gpp, video/mp4, application/vnd.layar.async).
                 The web browser's User-Agent is sent if the request is from within a web view
                 (text/html or application/vnd.layar.internal in combination with http:// or https:// protocols).
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="label" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The text displayed in the action button.
                The text will be displayed in the button corresponding to the action.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="contentType" type="contentTypeType">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The type of document that is being fetched.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="method" type="methodType">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The request type, GET or POST.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="params" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A list parameters can be added to the request.
                Comma-separated list of parameters to be added to the request:
                - For a GET request, the params will be added in the URL E.g. "lat=45.462&amp;lon=2.42346&amp;alt=560"
                - For a POST request, the params will be passed as URL-encoded parameters in the body of the response.
                Possible values: lat, lon, alt, lang, countryCode, localCountryCode, version.
                NOTE: countryCode is the home country of the user while localCountryCode is the country where the user is located at the moment.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="activityType" type="activityTypeType">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                This determines which icon should be used if the action is displayed in a button.
                Layar provides a predefined set of icons that content authors can use.
                The icon will give the user good hint on the meaning of an action.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="showActivity" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Indicates whether to show the background activity.
                This tells the layar client whether or not to show the user that there is background activity to fetch the action result.
                This is useful mostly for autoTriggered actions where it may not always be good user experience to show something suddenly.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="activityMessage" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The message shown while waiting for the activity response.
                Default value: NULL.
                This is shown to the user while waiting for the response, instead of the spinning wheel.
                Empty by default (spinning wheel shown by default).
                NOTE: this is only shown for actions that run in the background.
                The contentType should be text/plain or application/vnd.layar.async.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="closeBiw" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Geo Layer Only: specifies whether BIW should be closed after clicking the action button.
                Default value: false.
                If true, the layar client will close the BIW after the user clicked the button of the action. 
                This way, after the action has opened/played, the user returns in the POI view (AR, map, list) rather than in the BIW. 
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="autoTriggerRange" type="xs:integer">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                he presence of this parameter indicates whether of not this action can be autotriggered by reaching the POI.
                Note that only one action can be auto-triggered, the layar client will use the first one in the array having this parameter.
                The parameter itself is the distance in m within which the user must be of the POI position in order for the auto-trigger to launch.
                NOTE: not included in the layer level Actions object defined in the JSON response.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="autoTriggerOnly" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Indicates whether or not this action can be invoked manually.
                Default value: false.
                This indicates whether of not this action can also be invoked manually by the user outside of the range specified for a Geo POI
                or when a Vision POI is recognized. If true, the action will not be shown when pressing the button 
                to display all possible actions, unless the user is within the give range of a Geo POI or a Vision POI is recognized. 
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="anchor">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Placement of the POI. Can either be a geolocation or the key of a reference image in Layar Vision.
                For geolocation, alt is optional but lat and lon are mandatory.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="geolocation">
                    <xs:annotation>
                        <xs:documentation xml:lang="eng">
                            The geo location coordinates of a POI, alt is optional but lat and lon are mandatory.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element ref="lat"/>
                            <xs:element ref="lon"/>
                            <xs:element ref="alt" minOccurs="0"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="text">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="title"/>
                <xs:element ref="description" minOccurs="0"/>
                <xs:element ref="footnote" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="actions">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                This enables actions on the POI level. Each POI can have its own actions. They will appear on the expanded BIW dialog.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="uri"/>
                <xs:element ref="label"/>
                <xs:element ref="contentType"/>
                <xs:element ref="method" minOccurs="0"/>
                <xs:element ref="params" minOccurs="0"/>
                <xs:element ref="activityType" minOccurs="0"/>
                <xs:element ref="showActivity" minOccurs="0"/>
                <xs:element ref="activityMessage" minOccurs="0"/>
                <xs:element ref="closeBiw" minOccurs="0"/>
                <xs:element ref="autoTriggerRange" minOccurs="0"/>
                <xs:element ref="autoTriggerOnly" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
        
    <xs:element name="hotspots">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="id"/>
                <xs:element ref="anchor"/>
                <xs:element ref="text"/>
                <xs:element ref="imageURL" minOccurs="0"/>
                <xs:element ref="actions" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="root">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="hotspots" maxOccurs="unbounded"/>
                <xs:element ref="layer"/>
                <xs:element ref="errorCode"/>
                <xs:element ref="errorString"/>
                <xs:element ref="nextPageKey" minOccurs="0"/>
                <xs:element ref="morePages" minOccurs="0"/>
                <xs:element ref="radius" minOccurs="0"/>
                <xs:element ref="refreshInterval" minOccurs="0"/>
                <!-- dodaj še ostale -->
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
</xs:schema>
