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

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м
 
(не показано 5 промежуточных версий этого же участника)
Строка 4: Строка 4:
 
   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:simpleType name="'''DateWTime'''">
 
     <xs:annotation>
 
     <xs:annotation>
       <xs:documentation>Дата со временем</xs:documentation>
+
       <xs:documentation>'''Дата со временем'''</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
 
     <xs:restriction base="xs:dateTime">
 
     <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])|
 
       <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>
+
 
+
  <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:simpleType name="'''IdentityType'''">
    <xs:restriction base="xs:string">
+
    <xs:restriction base="ns:NoEmptyString">
      <xs:pattern value="\d{4}"/>
+
      <xs:maxLength value="50"/>
    </xs:restriction>
+
    </xs:restriction>
  </xs:simpleType>
+
  </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>
 
  </xs:schema>
 +
= Смотрите также =
 +
[[XML схемы]]

Текущая версия на 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 схемы