powered by simpleCommunicator - 2.0.19     © 2024 Programmizd 02
Map
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / Корректная ли xsd схема
4 сообщений из 4, страница 1 из 1
Корректная ли xsd схема
    #39996809
vb_sub
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Всем привет, для "Честного знака" мне необходимо было составить xml-файл по выложенной xsd-схеме.
Она находится по ресурсу

Приведу её здесь для

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" class=" FB_FW_ext ProxyPlugin2">
<xs:include schemaLocation="../LP_base_types_v2.xsd"/>
<xs:element name="shipment" type="shipment"/>
<xs:complexType name="shipment">
<xs:annotation>
<xs:documentation>Отгрузка</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="trade_participant_inn_sender" type="inn_type">
<xs:annotation>
<xs:documentation>ИНН отправителя</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="trade_participant_inn_receiver" type="inn_type">
<xs:annotation>
<xs:documentation>ИНН получателя</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="transfer_date" type="date_type">
<xs:annotation>
<xs:documentation>Дата отгрузки</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="move_document_number" type="string255_type">
<xs:annotation>
<xs:documentation>Номер первичного документа</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="move_document_date" type="date_type">
<xs:annotation>
<xs:documentation>Дата первичного документа</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="turnover_type" type="turnover_enum_type">
<xs:annotation>
<xs:documentation>Вид оборота товаров</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="withdrawal_type" minOccurs="0" type="withdrawal_shipment_type">
<xs:annotation>
<xs:documentation>Причина вывода из оборота</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="withdrawal_date" minOccurs="0" type="date_type">
<xs:annotation>
<xs:documentation>Дата вывода из оборота</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="st_contract_id" minOccurs="0" type="string255_type">
<xs:annotation>
<xs:documentation>Идентификатор гос.контракта</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="to_not_participant" minOccurs="0" type="xs:boolean">
<xs:annotation>
<xs:documentation>Отгрузка неучастнику</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="products_list">
<xs:annotation>
<xs:documentation>Параметры товаров</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="product" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Параметры товара</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ki" minOccurs="0" type="ki_type">
<xs:annotation>
<xs:documentation>КИ</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="kitu" minOccurs="0" type="kitu_type">
<xs:annotation>
<xs:documentation>КИТУ</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cost" minOccurs="0" type="price_type">
<xs:annotation>
<xs:documentation>Цена за единицу</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="vat_value" minOccurs="0" type="price_type">
<xs:annotation>
<xs:documentation>Сумма НДС</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="children_products_list" minOccurs="0" type="shipment_children_products_list_type">
<xs:annotation>
<xs:documentation>Список КИ\КИТУ в составе транспортной упаковки</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="action_id" type="xs:int" use="required" fixed="10"/>
<xs:attribute name="version" type="xs:decimal" use="required" fixed="5"/>
</xs:complexType>
</xs:schema>




Проблема в том, что валидатор не может провадидировать XML, потому что он не может определить пользовательские типы данных(type="inn_type"), которые как я понимаю описаны в связанной xsd-схеме
<xs:include schemaLocation="../LP_base_types_v2.xsd"/>
Расположение "../LP_base_types_v2.xsd" недоступно на сайте. Соответственно подскажите пожалуйста, это некорректно выложенная схема или я как-то неправильно пытаюсь её использовать? Спасибо
...
Рейтинг: 0 / 0
Корректная ли xsd схема
    #39996850
Фотография _Vasilisk_
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
vb_sub
Соответственно подскажите пожалуйста, это некорректно выложенная схема
Да.

Пишите в саппорт, чтобы они выложили все инклуды
...
Рейтинг: 0 / 0
Корректная ли xsd схема
    #39996860
vb_sub
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
_Vasilisk_,
на данном этапа мне отвечает скрипт из поддержки, что валидация должна происходить своими силами.
...
Рейтинг: 0 / 0
Корректная ли xsd схема
    #39996917
Фотография _Vasilisk_
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
vb_sub
на данном этапа мне отвечает скрипт из поддержки, что валидация должна происходить своими силами.
Без всех схем вы ничего не сделаете.

Автомобиль не может ехать пока у него нет колес.
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / Корректная ли xsd схема
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали тему (0):
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]