EGCommon.xsd — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м
Строка 11: Строка 11:
 
       <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|
 
       <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|
 
         (1[012]))-((0[1-9])|([12][0-9])|(3[01]))T(([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]+)?" />
 
         (1[012]))-((0[1-9])|([12][0-9])|(3[01]))T(([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]+)?" />
      <xs:maxInclusive value="2100-12-31T23:59:59.997" />
+
      <xs:maxInclusive value="2100-12-31T23:59:59.997" />
      <xs:minInclusive value="2000-01-01T00:00:00.000" />
+
      <xs:minInclusive value="2000-01-01T00:00:00.000" />
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </xs:simpleType>
 
+
  <xs:simpleType name="DateNoTime">
  <xs:simpleType name="DateNoTime">
+
    <xs:annotation>
    <xs:annotation>
+
      <xs:documentation>Дата без времени</xs:documentation>
      <xs:documentation>Дата без времени</xs:documentation>
+
    </xs:annotation>
    </xs:annotation>
+
    <xs:restriction base="xs:date">
    <xs:restriction base="xs:date">
+
      <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|
      <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|(1[012]))-((0[1-9])|([12][0-9])|(3[01]))" />
+
        (1[012]))-((0[1-9])|([12][0-9])|(3[01]))" />
      <xs:maxInclusive value="2100-12-31" />
+
      <xs:maxInclusive value="2100-12-31" />
      <xs:minInclusive value="1900-01-01" />
+
      <xs:minInclusive value="1900-01-01" />
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </xs:simpleType>
 
+
  <xs:simpleType name="NoEmptyString">
  <xs:simpleType name="NoEmptyString">
+
    <xs:restriction base="xs:string">
    <xs:restriction base="xs:string">
+
      <xs:minLength value="1" fixed="true"/>
      <xs:minLength value="1" fixed="true"/>
+
      <xs:pattern value="\S+(.*\S+)*"/>
      <xs:pattern value="\S+(.*\S+)*"/>
+
    </xs:restriction>
    </xs:restriction>
+
  </xs:simpleType>
  </xs:simpleType>
+
  <xs:simpleType name="NoEmptyString50">
 
+
    <xs:restriction base="xs:string">
  <xs:simpleType name="NoEmptyString50">
+
      <xs:minLength value="1" fixed="true"/>
    <xs:restriction base="xs:string">
+
      <xs:maxLength value="50"/>
      <xs:minLength value="1" fixed="true"/>
+
      <xs:pattern value="\S+(.*\S+)*"/>
      <xs:maxLength value="50"/>
+
    </xs:restriction>
      <xs:pattern value="\S+(.*\S+)*"/>
+
  </xs:simpleType>
    </xs:restriction>
+
  <xs:simpleType name="IdentityType">
  </xs:simpleType>
+
    <xs:restriction base="ns:NoEmptyString">
 
+
      <xs:maxLength value="50"/>
  <xs:simpleType name="IdentityType">
+
    </xs:restriction>
    <xs:restriction base="ns:NoEmptyString">
+
  </xs:simpleType>
      <xs:maxLength value="50"/>
+
  <xs:simpleType name="PDF417String">
    </xs:restriction>
+
    <xs:restriction base="xs:string">
  </xs:simpleType>
+
      <xs:maxLength value="255"/>
 
+
      <xs:pattern value="[A-Za-z0-9]+" />
  <xs:simpleType name="PDF417String">
+
    </xs:restriction>
    <xs:restriction base="xs:string">
+
  </xs:simpleType>
      <xs:maxLength value="255"/>
+
  <xs:simpleType name="FSRARIDType">
      <xs:pattern value="[A-Za-z0-9]+" />
+
    <xs:restriction base="xs:string">
    </xs:restriction>
+
      <xs:maxLength value="50"/>
  </xs:simpleType>
+
      <xs:pattern value="[0-9]+" />
 
+
    </xs:restriction>
  <xs:simpleType name="FSRARIDType">
+
  </xs:simpleType>
    <xs:restriction base="xs:string">
+
  <xs:simpleType name="PositiveDecimalType">
      <xs:maxLength value="50"/>
+
    <xs:restriction base="xs:decimal">
      <xs:pattern value="[0-9]+" />
+
      <xs:minExclusive value="0"/>
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </xs:simpleType>
 
+
  <xs:simpleType name="NoNegativeDecimalType">
 
+
    <xs:restriction base="xs:decimal">
  <xs:simpleType name="PositiveDecimalType">
+
      <xs:minInclusive value="0"/>
    <xs:restriction base="xs:decimal">
+
    </xs:restriction>
      <xs:minExclusive value="0"/>
+
  </xs:simpleType>
    </xs:restriction>
+
  <xs:simpleType name="AlcPercentType">
  </xs:simpleType>
+
    <xs:restriction base="xs:decimal">
 
+
      <xs:minInclusive value="0"/>
  <xs:simpleType name="NoNegativeDecimalType">
+
      <xs:maxInclusive value="100"/>
    <xs:restriction base="xs:decimal">
+
    </xs:restriction>
      <xs:minInclusive value="0"/>
+
  </xs:simpleType>
    </xs:restriction>
+
  <xs:simpleType name="MonthType">
  </xs:simpleType>
+
    <xs:restriction base="xs:string">
 
+
      <xs:pattern value="\d{2}"/>
  <xs:simpleType name="AlcPercentType">
+
    </xs:restriction>
    <xs:restriction base="xs:decimal">
+
  </xs:simpleType>
      <xs:minInclusive value="0"/>
+
  <xs:simpleType name="YearType">
      <xs:maxInclusive value="100"/>
+
    <xs:restriction base="xs:string">
    </xs:restriction>
+
      <xs:pattern value="\d{4}"/>
  </xs:simpleType>
+
    </xs:restriction>
 
+
  </xs:simpleType>
  <xs:simpleType name="MonthType">
+
    <xs:restriction base="xs:string">
+
      <xs:pattern value="\d{2}"/>
+
    </xs:restriction>
+
  </xs:simpleType>
+
 
+
  <xs:simpleType name="YearType">
+
    <xs:restriction base="xs:string">
+
      <xs:pattern value="\d{4}"/>
+
    </xs:restriction>
+
  </xs:simpleType>
+
 
+
 
  </xs:schema>
 
  </xs:schema>

Версия 09:24, 5 декабря 2017

<?xml version="1.0" encoding="utf-8"?>
<xs:schema version="1.0"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:ns="http://fsrar.ru/WEGAIS/Common"
  targetNamespace="http://fsrar.ru/WEGAIS/Common">
  <xs:simpleType name="DateWTime">
    <xs:annotation>
      <xs:documentation>Дата со временем</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:dateTime">
      <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|
        (1[012]))-((0[1-9])|([12][0-9])|(3[01]))T(([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]+)?" />
      <xs:maxInclusive value="2100-12-31T23:59:59.997" />
      <xs:minInclusive value="2000-01-01T00:00:00.000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="DateNoTime">
    <xs:annotation>
      <xs:documentation>Дата без времени</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date">
      <xs:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|
        (1[012]))-((0[1-9])|([12][0-9])|(3[01]))" />
      <xs:maxInclusive value="2100-12-31" />
      <xs:minInclusive value="1900-01-01" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NoEmptyString">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" fixed="true"/>
      <xs:pattern value="\S+(.*\S+)*"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NoEmptyString50">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" fixed="true"/>
      <xs:maxLength value="50"/>
      <xs:pattern value="\S+(.*\S+)*"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="IdentityType">
    <xs:restriction base="ns:NoEmptyString">
      <xs:maxLength value="50"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PDF417String">
    <xs:restriction base="xs:string">
      <xs:maxLength value="255"/>
      <xs:pattern value="[A-Za-z0-9]+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="FSRARIDType">
    <xs:restriction base="xs:string">
      <xs:maxLength value="50"/>
      <xs:pattern value="[0-9]+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PositiveDecimalType">
    <xs:restriction base="xs:decimal">
      <xs:minExclusive value="0"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NoNegativeDecimalType">
    <xs:restriction base="xs:decimal">
      <xs:minInclusive value="0"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AlcPercentType">
    <xs:restriction base="xs:decimal">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive value="100"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MonthType">
    <xs:restriction base="xs:string">
      <xs:pattern value="\d{2}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="YearType">
    <xs:restriction base="xs:string">
      <xs:pattern value="\d{4}"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>