<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=419788&amp;view=findpost&amp;p=3839605</guid>
        <pubDate>Tue, 29 Sep 2020 07:07:15 +0000</pubDate>
        <title>К простенькой xsd добавить обязательный атрибут - описание типов</title>
        <link>https://forum.sources.ru/index.php?showtopic=419788&amp;view=findpost&amp;p=3839605</link>
        <description><![CDATA[vugluscr1991: Добрый день&#33;<br>
<br>
Вероятно вопрос очень прост для людей опытных, но мне пока видимо сложно,<br>
суть в том чтобы к документу, который строится по такой схеме<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;xs:complexType name=&quot;Structure&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;Property&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:complexType&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;Value&quot; nillable=&quot;true&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:attribute name=&quot;name&quot; type=&quot;xs:NMTOKEN&quot; use=&quot;required&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:complexType&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:element&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/xs:complexType&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
к &quot;Value&quot; в качестве атрибута обязательно добавлялся тип и без типа документ бы не проходил валидацию.<br>
А в качестве типов можно было бы указывать только те типы, которые (ну либо простые, либо из списка определенных<br>
- закрытый перечень).]]></description>
        <author>vugluscr1991</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      </channel>
      </rss>
	