<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!-- Klasifikatoriaus JAR/FAKTU_POTIPIAI xsd byla -->

<xs:element name="INFO">
  <xs:annotation><xs:documentation>Pranešimas, informuojantis kad po nurodytos datos pasikeitimų klasifikatoriuje nebuvo. Būna tik tuomet kai užklausoje naudojamas parametras 'd_nuo'</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="200"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

<xs:element name="ROWSET">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="ROW" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="ROW">
  <xs:annotation><xs:documentation>Juridinių faktų potipiai. 
Pagrindinių duomenų išraše rodomi Fakto 90 - žymos, potipiai 601, 602, 603, 604, 605, t.y. iš intervalo FAKP_POTIPIS &gt; 600 and FAKP_POTIPIS &lt; 650</xs:documentation></xs:annotation>
    <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" ref="FAKT_TIPAS" />
      <xs:element minOccurs="1" maxOccurs="1" ref="FAKP_POTIPIS" />
      <xs:element minOccurs="1" maxOccurs="1" ref="FAKP_PAV_I" />
      <xs:element minOccurs="0" maxOccurs="1" ref="FAKP_PAV_ENGLISH" />
      <xs:element minOccurs="1" maxOccurs="1" ref="FAKP_KOREGAVIMO_DATA" />
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="FAKT_TIPAS">
  <xs:annotation><xs:documentation>Fakto  tipas</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:int">
      <xs:totalDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

<xs:element name="FAKP_POTIPIS">
  <xs:annotation><xs:documentation>Fakto potipis</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:int">
      <xs:totalDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

<xs:element name="FAKP_PAV_I">
  <xs:annotation><xs:documentation>Pavadinimas (ilgas)</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="600"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

<xs:element name="FAKP_PAV_ENGLISH">
  <xs:annotation><xs:documentation>Pavadinimas anglų kalba</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="600"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

<xs:element name="FAKP_KOREGAVIMO_DATA">
  <xs:annotation><xs:documentation>Įrašo koregavimo data</xs:documentation></xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:dateTime">
    </xs:restriction>
  </xs:simpleType>
</xs:element>

</xs:schema>
