<?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=339810&amp;view=findpost&amp;p=2978837</guid>
        <pubDate>Mon, 05 Sep 2011 14:54:28 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978837</link>
        <description><![CDATA[mitok: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=339810&view=findpost&p=2978824'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>ss &#064; <time class="tag-quote__quoted-time" datetime="2011-09-05T18:22:36+04:00">05.09.11, 14:22</time></span><div class='quote '>Решение он не подскажет. Я подскажу: найди схему, в которой определён TypeHeader_Base, и заимпорть её + xmlns:define=&quot;&lt;нэймспейс из той схемы&gt;&quot;.</div></div><br>
а я поубирал define в куске кода, где оно ругалось и ошибки пропали, потом сгенерировал XML. я не знаю правильно или нет. а зачем там define надо, в остальных местах в complexType нигде не юзается define...<br>
<br>
&lt;xs:element name=&quot;Header&quot;&gt;<br>
		&lt;xs:complexType&gt;<br>
			&lt;xs:complexContent&gt;<br>
				&lt;xs:extension base=&quot;TypeHeader_Base&quot;&gt;<br>
					&lt;xs:sequence&gt;<br>
						&lt;xs:element name=&quot;Document&quot; type=&quot;TypeDocument&quot; minOccurs=&quot;0&quot;/&gt;<br>
						&lt;xs:element name=&quot;TaskList&quot; type=&quot;TypeTaskList&quot; minOccurs=&quot;0&quot;/&gt;<br>
						&lt;xs:element name=&quot;AddDocuments&quot; type=&quot;TypeAddDocuments&quot; minOccurs=&quot;0&quot;/&gt;<br>
						&lt;xs:element name=&quot;Expansion&quot; type=&quot;TypeExpansion&quot; minOccurs=&quot;0&quot;/&gt;<br>
						&lt;xs:element name=&quot;Acknowledgement&quot; type=&quot;TypeAcknowledgement&quot; minOccurs=&quot;0&quot;/&gt;<br>
					&lt;/xs:sequence&gt;<br>
					&lt;xs:attribute name=&quot;msg_type&quot; type=&quot;TypeMsgType&quot; use=&quot;required&quot;/&gt;<br>
				&lt;/xs:extension&gt;<br>
			&lt;/xs:complexContent&gt;<br>
		&lt;/xs:complexType&gt;<br>
&lt;/xs:element&gt;]]></description>
        <author>mitok</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978824</guid>
        <pubDate>Mon, 05 Sep 2011 14:22:36 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978824</link>
        <description><![CDATA[ss: Решение он не подскажет. Я подскажу: найди схему, в которой определён TypeHeader_Base, и заимпорть её + xmlns:define=&quot;&lt;нэймспейс из той схемы&gt;&quot;.]]></description>
        <author>ss</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978816</guid>
        <pubDate>Mon, 05 Sep 2011 14:08:06 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978816</link>
        <description><![CDATA[mitok: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=339810&view=findpost&p=2978801'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>ss &#064; <time class="tag-quote__quoted-time" datetime="2011-09-05T13:47:21+00:00">05.09.11, 13:47</time></span><div class='quote '><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">&#60;xs:schema xmlns=&quot;moreq-ua.xsd&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; id=&quot;moreq-ua.xsd&quot; targetNamespace=&quot;moreq-ua.xsd&quot;&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-09-05T13:52:00+00:00">05.09.11, 13:52</time></span></span><br>
XMLSpy, кстати, сразу сказал &quot;у тебя де не задан targetNamespace. Позволь, я <s class='tag-s'>отрублю ему голову </s>сам создам его для тебя, о повелитель&quot;</div></div><br>
Спасибо большое :) осталось еще две ошибки<br>
<br>
1. [443:61]: s4s-att-invalid-value: Invalid attribute value for &#39;base&#39; in element &#39;extension&#39;. Recorded reason: UndeclaredPrefix: Cannot resolve &#39;define:TypeHeader_Base&#39; as a QName: the prefix &#39;define&#39; is not declared.<br>
<br>
2. [443:61]: s4s-att-must-appear: Attribute &#39;base&#39; must appear in element &#39;extension&#39;.<br>
<br>
Сейчас скачаю XMLSpy, может он подскажет решение :)]]></description>
        <author>mitok</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978801</guid>
        <pubDate>Mon, 05 Sep 2011 13:47:21 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978801</link>
        <description><![CDATA[ss: <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">&#60;xs:schema xmlns=&quot;moreq-ua.xsd&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; id=&quot;moreq-ua.xsd&quot; targetNamespace=&quot;moreq-ua.xsd&quot;&#62;</div></ol></div></div></div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-09-05T13:52:00+00:00">05.09.11, 13:52</time></span></span><br>
XMLSpy, кстати, сразу сказал &quot;у тебя де не задан targetNamespace. Позволь, я <s class='tag-s'>отрублю ему голову </s>сам создам его для тебя, о повелитель&quot;]]></description>
        <author>ss</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978793</guid>
        <pubDate>Mon, 05 Sep 2011 13:37:27 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978793</link>
        <description><![CDATA[mitok: аттач к предыдущему посту. сори, забыл прикрепить. в аттаче собственно сама схема...<br>
<span class="b-attach" data-size="2121" data-hits="300" data-attach-id="12285" data-attach-post-id="2978793">
			<span class="b-attach__title"></span><a class='b-attach-link' href='https://forum.sources.ru/index.php?act=Attach&amp;type=post&amp;id=2978793&amp;attach_id=12285' title='Скачать файл' target='_blank'>moreq_ua.zip</a> (, : 300)
		</span>]]></description>
        <author>mitok</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978791</guid>
        <pubDate>Mon, 05 Sep 2011 13:33:05 +0000</pubDate>
        <title>Валидация XSD схемы</title>
        <link>https://forum.sources.ru/index.php?showtopic=339810&amp;view=findpost&amp;p=2978791</link>
        <description><![CDATA[mitok: Подскажите пожалуйста как решить проблему с валидацие XSD. Использую программу XMLSpear, во время валидации получаю ошибки <br><br>1. src-resolve.4.2: Error resolving component &#39;TypeOrganization&#39;. It was detected that &#39;TypeOrganization&#39; is in namespace &#39;moreq-ua.xsd&#39;, but components from this namespace are not referenceable from schema document &#39;file:///D:/Work/tmp/moreq-ua.xsd&#39;. If this is the incorrect namespace, perhaps the prefix of &#39;TypeOrganization&#39; needs to be changed. If this is the correct namespace, then an appropriate &#39;import&#39; tag should be added to &#39;file:///D:/Work/tmp/moreq-ua.xsd&#39;.<br><br>2. src-resolve: Cannot resolve the name &#39;TypeDocType&#39; to a(n) &#39;simpleType definition&#39; component.<br><br>3. src-resolve: Cannot resolve the name &#39;TypeCollection&#39; to a(n) &#39;simpleType definition&#39; component.<br><br>4. src-resolve: Cannot resolve the name &#39;TypeDocType&#39; to a(n) &#39;simpleType definition&#39; component.<br><br>5. src-resolve: Cannot resolve the name &#39;TypeCollection&#39; to a(n) &#39;simpleType definition&#39; component.<br><br>6. s4s-att-invalid-value: Invalid attribute value for &#39;base&#39; in element &#39;extension&#39;. Recorded reason: UndeclaredPrefix: Cannot resolve &#39;define:TypeHeader_Base&#39; as a QName: the prefix &#39;define&#39; is not declared.<br><br>7. s4s-att-must-appear: Attribute &#39;base&#39; must appear in element &#39;extension&#39;.<br><br>в XSD не силен, по этому прошу помощи.<br><br>В итоге мне надо будет получить XML по этой схеме...]]></description>
        <author>mitok</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      </channel>
      </rss>
	