A.xml — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) м |
Hisava (обсуждение | вклад) м |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
− | + | <?xml version = "1.0" encoding = "utf-8"?> | |
− | <xs:schema id="A" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | + | <xs:schema id = "A" xmlns:xs = "http://www.w3.org/2001/XMLSchema"> |
− | + | <xs:element name = "A"> | |
− | + | <xs:complexType> | |
− | + | <xs:annotation> | |
− | + | <xs:documentation>'''Квитанция УТМ'''</xs:documentation> | |
− | + | </xs:annotation> | |
− | + | <xs:sequence> | |
− | + | <xs:element name = "url" type = "URL" minOccurs = "1" maxOccurs = "1"/> | |
− | + | <xs:element name = "sign" type = "SIGN" minOccurs = "1" maxOccurs = "1"/> | |
− | + | <xs:element name = "ver" type = "xs:integer" minOccurs = "1" maxOccurs = "1"/> | |
− | + | </xs:sequence> | |
− | + | </xs:complexType> | |
− | + | </xs:element> | |
− | + | <xs:simpleType name = "URL"> | |
− | + | <xs:restriction base = "xs:string"> | |
− | + | <xs:pattern value = "(http:\/\/check\.egais\.ru\?id=)?([0-9a-f]{4}-?){8}(&dt=[0-9]{10}&cn=[0-9]{12})?"/> | |
− | + | </xs:restriction> | |
− | + | </xs:simpleType> | |
− | + | <xs:simpleType name = "SIGN"> | |
− | + | <xs:restriction base = "xs:string"> | |
− | + | <xs:pattern value = "[0-9A-F]{128}"/> | |
− | + | </xs:restriction> | |
− | + | </xs:simpleType> | |
</xs:schema> | </xs:schema> | ||
+ | = Смотрите также = | ||
+ | [[XML схемы]] |
Текущая версия на 15:10, 27 марта 2020
<?xml version = "1.0" encoding = "utf-8"?>
<xs:schema id = "A" xmlns:xs = "http://www.w3.org/2001/XMLSchema"> <xs:element name = "A"> <xs:complexType> <xs:annotation> <xs:documentation>Квитанция УТМ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name = "url" type = "URL" minOccurs = "1" maxOccurs = "1"/> <xs:element name = "sign" type = "SIGN" minOccurs = "1" maxOccurs = "1"/> <xs:element name = "ver" type = "xs:integer" minOccurs = "1" maxOccurs = "1"/> </xs:sequence> </xs:complexType> </xs:element> <xs:simpleType name = "URL"> <xs:restriction base = "xs:string"> <xs:pattern value = "(http:\/\/check\.egais\.ru\?id=)?([0-9a-f]{4}-?){8}(&dt=[0-9]{10}&cn=[0-9]{12})?"/> </xs:restriction> </xs:simpleType> <xs:simpleType name = "SIGN"> <xs:restriction base = "xs:string"> <xs:pattern value = "[0-9A-F]{128}"/> </xs:restriction> </xs:simpleType> </xs:schema>