| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsd:schema |
| 3 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 4 |
xmlns:ns1="http://www.croc.ru/Schemas/XmlFramework/Core/Config/XStorageFactoryProvider/1.0" |
| 5 |
targetNamespace="http://www.croc.ru/Schemas/XmlFramework/Core/Config/XStorageFactoryProvider/1.0" |
| 6 |
elementFormDefault="qualified" |
| 7 |
> |
| 8 |
<xsd:annotation> |
| 9 |
<xsd:documentation>Схема для описания содержимого узла {x-net-config-schema.xsd}:connection, |
| 10 |
используемое стандартным провайдером фабрик XStorage (XStorageFactoryProvider) |
| 11 |
</xsd:documentation> |
| 12 |
</xsd:annotation> |
| 13 |
<xsd:element name="connection-string"> |
| 14 |
<xsd:complexType mixed="true"> |
| 15 |
<xsd:sequence> |
| 16 |
<xsd:element name="secret" minOccurs="0" maxOccurs="unbounded"> |
| 17 |
<xsd:annotation> |
| 18 |
<xsd:documentation>Описание секрета</xsd:documentation> |
| 19 |
</xsd:annotation> |
| 20 |
<xsd:complexType> |
| 21 |
<xsd:simpleContent> |
| 22 |
<xsd:extension base="xsd:string"> |
| 23 |
<xsd:attribute name="n" type="xsd:string" use="required"> |
| 24 |
<xsd:annotation> |
| 25 |
<xsd:documentation>Наименование секрета</xsd:documentation> |
| 26 |
</xsd:annotation> |
| 27 |
</xsd:attribute> |
| 28 |
</xsd:extension> |
| 29 |
</xsd:simpleContent> |
| 30 |
</xsd:complexType> |
| 31 |
</xsd:element> |
| 32 |
<xsd:element name="text" type="xsd:string"> |
| 33 |
<xsd:annotation> |
| 34 |
<xsd:documentation>Текст строки соединения. Может содержать ссылки на значения секретов в виде @ + наименование_секрета</xsd:documentation> |
| 35 |
</xsd:annotation> |
| 36 |
</xsd:element> |
| 37 |
</xsd:sequence> |
| 38 |
</xsd:complexType> |
| 39 |
<xsd:unique name="uniqueSecret"> |
| 40 |
<xsd:annotation> |
| 41 |
<xsd:documentation>Наименования секретов должны быть уникальны</xsd:documentation> |
| 42 |
</xsd:annotation> |
| 43 |
<xsd:selector xpath="secret"/> |
| 44 |
<xsd:field xpath="@n"/> |
| 45 |
</xsd:unique> |
| 46 |
</xsd:element> |
| 47 |
<xsd:element name="params"> |
| 48 |
<xsd:complexType> |
| 49 |
<xsd:sequence> |
| 50 |
<xsd:element name="param" maxOccurs="unbounded"> |
| 51 |
<xsd:annotation> |
| 52 |
<xsd:documentation>Описание параметра XStorageConnection</xsd:documentation> |
| 53 |
</xsd:annotation> |
| 54 |
<xsd:complexType> |
| 55 |
<xsd:simpleContent> |
| 56 |
<xsd:extension base="xsd:string"> |
| 57 |
<xsd:attribute name="n" type="xsd:string" use="required"> |
| 58 |
<xsd:annotation> |
| 59 |
<xsd:documentation>Наименование параметра</xsd:documentation> |
| 60 |
</xsd:annotation> |
| 61 |
</xsd:attribute> |
| 62 |
</xsd:extension> |
| 63 |
</xsd:simpleContent> |
| 64 |
</xsd:complexType> |
| 65 |
</xsd:element> |
| 66 |
</xsd:sequence> |
| 67 |
</xsd:complexType> |
| 68 |
<xsd:unique name="uniqueParam"> |
| 69 |
<xsd:annotation> |
| 70 |
<xsd:documentation>Наименование параметра должно быть уникальным</xsd:documentation> |
| 71 |
</xsd:annotation> |
| 72 |
<xsd:selector xpath="param"/> |
| 73 |
<xsd:field xpath="@n"/> |
| 74 |
</xsd:unique> |
| 75 |
</xsd:element> |
| 76 |
</xsd:schema> |