<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://water.usgs.gov/XML/NWIS/5.0" 
            xmlns="http://water.usgs.gov/XML/NWIS/5.0" version="5.0" elementFormDefault="qualified"
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    
  <xsd:element name="WSCDefaultOverride">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>Indicates that this style sheet is the default style sheet of the group for users in the Water Science Center.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="DistrictCode" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code that identifies the Water Science Center (district).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="StyleSheet">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A description of a style sheet for formating site visit data.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="FileName" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The file name of the style sheet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="Description" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the output that the style sheet (and XML data file) produces.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="URL" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The URL where the style sheet is located.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DefaultIndicator" type="xsd:boolean">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Flag indicating if this style sheet is the default style sheet for the style sheet group.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="WSCDefaultOverride" minOccurs="0"  maxOccurs="46"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="StyleSheetGroup">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A collection of style sheets for a given purpose.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="BaseName" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The base name of the style sheet group.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="StyleSheet" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="StyleSheetIndex">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>The index of NWIS style sheet groups with stylesheets.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="StyleSheetGroup" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
