EGCommon.xsd — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) м |
Hisava (обсуждение | вклад) м |
||
Строка 15: | Строка 15: | ||
</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"> | ||
Строка 26: | Строка 26: | ||
</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"/> | ||
Строка 32: | Строка 32: | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="NoEmptyString50"> | + | <xs:simpleType name="'''NoEmptyString50'''"> |
<xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||
<xs:minLength value="1" fixed="true"/> | <xs:minLength value="1" fixed="true"/> | ||
Строка 39: | Строка 39: | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="IdentityType"> | + | <xs:simpleType name="'''IdentityType'''"> |
<xs:restriction base="ns:NoEmptyString"> | <xs:restriction base="ns:NoEmptyString"> | ||
<xs:maxLength value="50"/> | <xs:maxLength value="50"/> | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="PDF417String"> | + | <xs:simpleType name="'''PDF417String'''"> |
<xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||
<xs:maxLength value="255"/> | <xs:maxLength value="255"/> | ||
Строка 50: | Строка 50: | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="FSRARIDType"> | + | <xs:simpleType name="'''FSRARIDType'''"> |
<xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||
<xs:maxLength value="50"/> | <xs:maxLength value="50"/> | ||
Строка 56: | Строка 56: | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="PositiveDecimalType"> | + | <xs:simpleType name="'''PositiveDecimalType'''"> |
<xs:restriction base="xs:decimal"> | <xs:restriction base="xs:decimal"> | ||
<xs:minExclusive value="0"/> | <xs:minExclusive value="0"/> | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="NoNegativeDecimalType"> | + | <xs:simpleType name="'''NoNegativeDecimalType'''"> |
<xs:restriction base="xs:decimal"> | <xs:restriction base="xs:decimal"> | ||
<xs:minInclusive value="0"/> | <xs:minInclusive value="0"/> | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="AlcPercentType"> | + | <xs:simpleType name="'''AlcPercentType'''"> |
<xs:restriction base="xs:decimal"> | <xs:restriction base="xs:decimal"> | ||
<xs:minInclusive value="0"/> | <xs:minInclusive value="0"/> | ||
Строка 72: | Строка 72: | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="MonthType"> | + | <xs:simpleType name="'''MonthType'''"> |
<xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||
<xs:pattern value="\d{2}"/> | <xs:pattern value="\d{2}"/> | ||
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="YearType"> | + | <xs:simpleType name="'''YearType'''"> |
<xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||
<xs:pattern value="\d{4}"/> | <xs:pattern value="\d{4}"/> |
Версия 09:26, 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>