<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.openarml.org/wikitude/1.0"
    xmlns="http://www.openarml.org/wikitude/1.0"
    elementFormDefault="qualified">
    
    <xs:annotation>
        <xs:documentation xml:lang="slv">
            Andrej Pančur, Inštitut za novejšo zgodovino, Ljubljana
            Datum: 2013-10-10
            
            Ker uradna XML shema pri Wikitude ne obstaja, sem s to shemo navedel vse elemente, 
            ki so zajeti z SIstory augmented reality XML shemo (sistory-ar.xsd).
            
            Ločim 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 so specifični za Wikitude.
            
            Elementi, ki izhajajo iz ARML sheme, so v ARML XML shemi arml.xsd
            Elementi za KML XML so v originalni KML XML Shemi ogckml22.xsd
        </xs:documentation>
    </xs:annotation>
    
    <xs:annotation>
        <xs:documentation xml:lang="eng">
            Wikitude administration V1.0 XML Schema
            Version: 1.0
            Date: 2013-10-10
            Used to validate XML instances of Data Sets to be inserted in Wikitude http://developer.wikitude.com/tools/publish-in-wikitude.
            
            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_20_Type">
        <xs:restriction base="xs:string">
            <xs:maxLength value="20"/>
        </xs:restriction>
    </xs:simpleType>
    
    <!-- za POIs -->
    
    <xs:element name="info">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="thumbnail" minOccurs="0"/>
                <xs:element ref="hiResImageUrl" minOccurs="0"/>
                <xs:element ref="markerIconUrl" minOccurs="0"/>
                <xs:element ref="phone" minOccurs="0"/>
                <xs:element ref="url" minOccurs="0"/>
                <xs:element ref="email" minOccurs="0"/>
                <xs:element ref="adress" minOccurs="0"/>
                <xs:element ref="attachments" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="thumbnail" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                pecific POI image that is displayed in the bubble.
                This could be for instance a hotel picture for a hotel booking content provider.
                Format: 64x64 pixel, PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="hiResImageUrl" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                pecific POI high resolution image that is displayed in the detail page.
                This could be for instance a crystal clear hotel picture for a hotel booking content provider.
                Format: PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="markerIconUrl" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Specific an image url which points to an image used as a marker icon.
                If it is not given then default will be the related World's icon.
                Available on Android, iPhone and BlackBerry.
                Format: 32x32 pixel, PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="phone" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                When a phone number is given, Wikitude displays a "call me" button in the bubble.
                You can directly call the person/organization behind the POI. E.g. call a restaurant to reserve a table for dinner.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="url" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Link to a web page that contains additional information about the POI.
                The element has the following optional attribute
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="email" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Write the person/organization an email directly from Wikitude.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="adress" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Address of the POI. Also used to route to the location of the POI.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="attachments">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="attachment-url" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="attachment-url">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Can be a link to a resource (image, PDF file, ...).
                You could use this to issue coupons or vouchers for potential clients that found you via Wikitude.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:anyURI">
                    <xs:attribute ref="name"/>
                    <xs:attribute ref="type"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="attachment-thumbnail">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Used to display a thumbnail of the attachment.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:anyURI">
                    <xs:attribute ref="name"/>
                    <xs:attribute ref="type"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    <xs:attribute name="name" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Used to display the name of an attachment link
            </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute name="type" type="xs:string">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Mime type of the attachment. If it is a known type it can automatically trigger an application start 
                (e.g. audio/mpeg can start the attachment in the phones media player)
            </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    
    <!-- XML za aplikacijo (providerINFO) -->
    <xs:element name="providerURL" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Link to the content provider. If the content provider adds an own logo
                the user will be redirected to the providerUrl when clicking on the logo.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="tags">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Comma separated list of keywords that characterize the content provider.
                When users search for content in Wikitude the tags will be searched as well.
                A match in the tags is higher ranked than in the description.
            </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="logo" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Logo displayed on the left bottom corner on Wikitude when an icon is selected.
                Format: 96x96 pixel, transparent PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="icon" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                The icons are displayed in the cam view of Wikitude to indicate a point of interest (POI).
                Format: 32x32 pixel, transparent PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="shortName">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A short name for your World, should only be up to 20 characters, to be used when there's not enough space.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="string_maxLenght_20_Type">
                    <xs:attribute name="lang" type="languageType" use="required"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="promotionText">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A promotion text describing your World in more details.
            </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="promotionGraphic" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A graphic advertising your World.
                Format: 180x120 pixel, transparent PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="hiResIcon" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A high resolution icon for your World which can be included in features.
                Format: 512x512 pixel, transparent PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="featureGraphic" type="xs:anyURI">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                A graphic spotlighting your World in promotions.
                Format: 1024x500 pixel, transparent PNG
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="noPromotion" type="xs:boolean">
        <xs:annotation>
            <xs:documentation xml:lang="eng">
                Opt-out from being promoted. (defaults to false)
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
</xs:schema>