<?xml version="1.0" encoding="UTF-8"?>

<!-- Schema for description of availability of a VObs service.
     Guy Rixon, 2004-05-07, from specification by Wil O'Mullane, 2004-01.
     The target namespace is temporary, pending discussion in IVOA. -->
<xsd:schema 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  targetNamespace="urn:ivoa:namespace:temporary:gtr:availability"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified">

 <xsd:element name="availability">
    <xsd:complexType>
      <xsd:all>
     
        <!-- Time since last restart of service. -->
        <xsd:element name="uptime" type="xsd:duration"/>
      
        <!-- Next scheduled down-time, if known. 
             Set nil=true if the value is unknown. -->
        <xsd:element name="validTo" type="xsd:dateTime" nillable="true"/>
      
        <!-- Specification also requires Position and ContactDetails,
             but these elements are contentious. Therefore, they are
             not coded at this stage in the discussion. -->
           
      </xsd:all>
    </xsd:complexType>
  </xsd:element>
 
</xsd:schema>
