<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:is-ext-host="urn:is.isnic:xml:ns:is-ext-host-1.0"
        xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
        targetNamespace="urn:is.isnic:xml:ns:is-ext-host-1.0"
        elementFormDefault="qualified">

    <annotation><documentation>.is host extension</documentation></annotation>

    <import namespace="urn:ietf:params:xml:ns:eppcom-1.0" schemaLocation="eppcom-1.0.xsd"/>

    <element name="create" type="is-ext-host:createType"/>
    <element name="update" type="is-ext-host:updateType"/>

    <complexType name="contactType">
        <annotation><documentation>Only the admin contact is returned here</documentation></annotation>
        <simpleContent>
            <extension base="eppcom:clIDType">
                <attribute name="type" type="is-ext-host:contactAttrType"/>
            </extension>
        </simpleContent>
    </complexType>

    <simpleType name="contactAttrType">
        <restriction base="token">
            <enumeration value="admin"><annotation><documentation>Admin contact on host becomes the Zone contact on domains for the first host defined on a domain.</documentation></annotation></enumeration>
        </restriction>
    </simpleType>

    <complexType name="createType">
        <sequence>
            <element name="contact" type="is-ext-host:contactType" minOccurs="0" maxOccurs="unbounded"><annotation><documentation>If nothing set the logged in user will be set to admin contact</documentation></annotation></element>
        </sequence>
    </complexType>

    <complexType name="updateType">
        <sequence>
            <element name="contact" type="is-ext-host:contactType" minOccurs="0" maxOccurs="unbounded"><annotation><documentation>Since there is no host transfer, and there is no domain->host subordinate connection all host object haf admin contacts</documentation></annotation></element>        </sequence>
    </complexType>

</schema>