Приложение 7

ОПИСАНИЕ XSD СХЕМЫ ФАЙЛА СПРАВОЧНИКА KGSNO

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns="http://ts/ref/kgsno" targetNamespace="http://ts/ref/kgsno"

elementFormDefault="qualified" version="1.0">

<xs:element name="kgsno" type="kgsno"/>

<xs:complexType name="kgsno">

<xs:sequence>

<xs:element name="inspection_info" type="InspectionInfo"

minOccurs="1" maxOccurs="unbounded"/>

</xs:sequence>

<xs:attribute name="version" use="required" fixed="1.0">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="5"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="InspectionInfo">

<xs:sequence>

<xs:element name="code" minOccurs="1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

<xs:element name="name" minOccurs="1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="250"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

<xs:element name="address" minOccurs="1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="128"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

<xs:element name="phone" minOccurs="1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="64"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

</xs:sequence>

</xs:complexType>

</xs:schema>