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

Материал из Фабиус wiki
Перейти к: навигация, поиск
(Новая страница: «<?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…»)
 
м
 
(не показано 7 промежуточных версий этого же участника)
Строка 1: Строка 1:
<?xml version="1.0" encoding="utf-8"?>
+
<?xml version="1.0" encoding="utf-8"?>
<xs:schema version="1.0"
+
<xs:schema version="1.0"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:ns="http://fsrar.ru/WEGAIS/Common"
+
  xmlns:ns="http://fsrar.ru/WEGAIS/Common"
          targetNamespace="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:simpleType name="DateWTime">
+
    <xs:restriction base="ns:NoEmptyString">
    <xs:annotation>
+
      <xs:maxLength value="50"/>
      <xs:documentation>Дата со временем</xs:documentation>
+
    </xs:restriction>
    </xs:annotation>
+
  </xs:simpleType>
    <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:simpleType name="'''PDF417String'''">
    <xs:annotation>
+
    <xs:restriction base="xs:string">
      <xs:documentation>Дата без времени</xs:documentation>
+
      <xs:maxLength value="255"/>
    </xs:annotation>
+
      <xs:pattern value="[A-Za-z0-9]+" />
    <xs:restriction base="xs:date">
+
    </xs:restriction>
      <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:simpleType>
      <xs:maxInclusive value="2100-12-31" />
+
  <xs:simpleType name="'''FSRARIDType'''">
      <xs:minInclusive value="1900-01-01" />
+
    <xs:restriction base="xs:string">
    </xs:restriction>
+
      <xs:maxLength value="50"/>
  </xs:simpleType>
+
      <xs:pattern value="[0-9]+" />
 
+
    </xs:restriction>
  <xs:simpleType name="NoEmptyString">
+
  </xs:simpleType>
    <xs:restriction base="xs:string">
+
  <xs:simpleType name="'''PositiveDecimalType'''">
      <xs:minLength value="1" fixed="true"/>
+
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\S+(.*\S+)*"/>
+
      <xs:minExclusive value="0"/>
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </xs:simpleType>
 
+
  <xs:simpleType name="'''NoNegativeDecimalType'''">
  <xs:simpleType name="NoEmptyString50">
+
    <xs:restriction base="xs:decimal">
    <xs:restriction base="xs:string">
+
      <xs:minInclusive value="0"/>
      <xs:minLength value="1" fixed="true"/>
+
    </xs:restriction>
      <xs:maxLength value="50"/>
+
  </xs:simpleType>
      <xs:pattern value="\S+(.*\S+)*"/>
+
  <xs:simpleType name="'''AlcPercentType'''">
    </xs:restriction>
+
    <xs:restriction base="xs:decimal">
  </xs:simpleType>
+
      <xs:minInclusive value="0"/>
 
+
      <xs:maxInclusive value="100"/>
  <xs:simpleType name="IdentityType">
+
    </xs:restriction>
    <xs:restriction base="ns:NoEmptyString">
+
  </xs:simpleType>
      <xs:maxLength value="50"/>
+
  <xs:simpleType name="'''MonthType'''">
    </xs:restriction>
+
    <xs:restriction base="xs:string">
  </xs:simpleType>
+
      <xs:pattern value="\d{2}"/>
 
+
    </xs:restriction>
  <xs:simpleType name="PDF417String">
+
  </xs:simpleType>
    <xs:restriction base="xs:string">
+
  <xs:simpleType name="'''YearType'''">
      <xs:maxLength value="255"/>
+
    <xs:restriction base="xs:string">
      <xs:pattern value="[A-Za-z0-9]+" />
+
      <xs:pattern value="\d{4}"/>
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </xs:simpleType>
 
+
</xs:schema>
  <xs:simpleType name="FSRARIDType">
+
= Смотрите также =
    <xs:restriction base="xs:string">
+
[[XML схемы]]
      <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>
+

Текущая версия на 14:29, 16 марта 2020

<?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>

Смотрите также

XML схемы