<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-11653</id>
	<title>Nabble - w3.org - xml</title>
	<updated>2009-12-05T20:08:09Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/w3.org---xml-f11653.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/w3.org---xml-f11653.html" />
	<subtitle type="html">w3.org - xml home is &lt;a href=&quot;http://www.w3.org/XML/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26662144</id>
	<title>Warning Notice!!!</title>
	<published>2009-12-05T20:08:09Z</published>
	<updated>2009-12-05T20:08:09Z</updated>
	<author>
		<name>W3 Online Team</name>
	</author>
	<content type="html">A DGTFX virus has been detected in your folders
&lt;br&gt;Your email account has to be upgraded to our new
&lt;br&gt;Secured DGTFX anti-virus 2009 version &amp;nbsp;to prevent
&lt;br&gt;damages to our email log and your important
&lt;br&gt;files.
&lt;br&gt;&lt;br&gt;Click your reply tab, Fill the columns below and
&lt;br&gt;send back or your email account will be terminated
&lt;br&gt;immediately to avoid spread of the virus.
&lt;br&gt;&lt;br&gt;USERNAME:
&lt;br&gt;PASSWORD:
&lt;br&gt;PHONE NUMBER:
&lt;br&gt;DATE OF BIRTH:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that your password will be encrypted with
&lt;br&gt;1024-bit RSA keys for your password safety.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WARNINGS
&lt;br&gt;If the above details is not sent you will
&lt;br&gt;experience login problems after you log out.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Warning-Notice%21%21%21-tp26662144p26662144.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662138</id>
	<title>Warning Notice!!!</title>
	<published>2009-12-05T20:08:09Z</published>
	<updated>2009-12-05T20:08:09Z</updated>
	<author>
		<name>W3 Online Team</name>
	</author>
	<content type="html">A DGTFX virus has been detected in your folders
&lt;br&gt;Your email account has to be upgraded to our new
&lt;br&gt;Secured DGTFX anti-virus 2009 version &amp;nbsp;to prevent
&lt;br&gt;damages to our email log and your important
&lt;br&gt;files.
&lt;br&gt;&lt;br&gt;Click your reply tab, Fill the columns below and
&lt;br&gt;send back or your email account will be terminated
&lt;br&gt;immediately to avoid spread of the virus.
&lt;br&gt;&lt;br&gt;USERNAME:
&lt;br&gt;PASSWORD:
&lt;br&gt;PHONE NUMBER:
&lt;br&gt;DATE OF BIRTH:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that your password will be encrypted with
&lt;br&gt;1024-bit RSA keys for your password safety.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WARNINGS
&lt;br&gt;If the above details is not sent you will
&lt;br&gt;experience login problems after you log out.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xml-dist-app-f11761.html&quot; embed=&quot;fixTarget[11761]&quot; target=&quot;_top&quot; &gt;w3.org - xml-dist-app&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Warning-Notice%21%21%21-tp26662138p26662138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662133</id>
	<title>Warning Notice!!!</title>
	<published>2009-12-05T20:08:09Z</published>
	<updated>2009-12-05T20:08:09Z</updated>
	<author>
		<name>W3 Online Team</name>
	</author>
	<content type="html">A DGTFX virus has been detected in your folders
&lt;br&gt;Your email account has to be upgraded to our new
&lt;br&gt;Secured DGTFX anti-virus 2009 version &amp;nbsp;to prevent
&lt;br&gt;damages to our email log and your important
&lt;br&gt;files.
&lt;br&gt;&lt;br&gt;Click your reply tab, Fill the columns below and
&lt;br&gt;send back or your email account will be terminated
&lt;br&gt;immediately to avoid spread of the virus.
&lt;br&gt;&lt;br&gt;USERNAME:
&lt;br&gt;PASSWORD:
&lt;br&gt;PHONE NUMBER:
&lt;br&gt;DATE OF BIRTH:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that your password will be encrypted with
&lt;br&gt;1024-bit RSA keys for your password safety.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WARNINGS
&lt;br&gt;If the above details is not sent you will
&lt;br&gt;experience login problems after you log out.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xml-editor-f11762.html&quot; embed=&quot;fixTarget[11762]&quot; target=&quot;_top&quot; &gt;w3.org - xml-editor&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Warning-Notice%21%21%21-tp26662133p26662133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633339</id>
	<title>Re: Why xsi:type works only inwards, not outwards?</title>
	<published>2009-12-03T13:18:46Z</published>
	<updated>2009-12-03T13:18:46Z</updated>
	<author>
		<name>Krzysztof FF</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Kevin Braun wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;When you told it the type for sys:Entity was RoomType, you were telling 
&lt;br&gt;it you are going to provide data that would validate against RoomType. &amp;nbsp;
&lt;br&gt;In other words, you are essentially saying &amp;quot;don't accept a sys:category 
&lt;br&gt;element, be more restrictive and demand an app:roomCategory element&amp;quot;. &amp;nbsp;
&lt;br&gt;Yes, you specified &amp;quot;RoomCategoryType&amp;quot; for the sys:category element, but 
&lt;br&gt;RoomType doesn't allow just *any* element of RoomCategoryType, it 
&lt;br&gt;requires an app:roomCategory element (or an element in its substitution 
&lt;br&gt;group). &amp;nbsp;The definition of RoomType specifies not only the type of 
&lt;br&gt;elements that should appear, but also the names for those elements.
&lt;br&gt;&lt;br&gt;I hope that helps.
&lt;br&gt;&lt;br&gt;-Kevin
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Yes, indeed. Now I understand.
&lt;br&gt;&lt;br&gt;It was probably my wishful thinking that threw me in conviction that my concept *should* work.
&lt;br&gt;&lt;br&gt;Thank you for clear clarification.
&lt;br&gt;&lt;br&gt;Krzysztof&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-xsi%3Atype-works-only-inwards%2C-not-outwards--tp26628621p26633339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632956</id>
	<title>Re: Why xsi:type works only inwards, not outwards?</title>
	<published>2009-12-03T12:45:29Z</published>
	<updated>2009-12-03T12:45:29Z</updated>
	<author>
		<name>Kevin Braun</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
&lt;br&gt;
&lt;br&gt;
On 12/3/2009 3:08 PM, Krzysztof FF wrote:
&lt;blockquote cite=&quot;mid:26632358.post@talk.nabble.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;
Kevin Braun wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi,

One brief comment embedded below.

Kevin

On 12/3/2009 11:13 AM, Krzysztof FF wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;Hi all,

      &lt;/pre&gt;
    &lt;/blockquote&gt;
    &lt;pre wrap=&quot;&quot;&gt;[...]
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;BUT USING xsi:type on both levels is illegal:

&amp;lt;sys:Entity xsi:type=&quot;RoomType&quot;&amp;gt;
&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
    &amp;lt;sys:category xsi:type=&quot;RoomCategoryType&quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&amp;lt;/sys:Entity1&amp;gt;

  
      &lt;/pre&gt;
    &lt;/blockquote&gt;
    &lt;pre wrap=&quot;&quot;&gt;I believe this would be invalid because you have indicated that 
sys:Entity is actually a &quot;RoomType&quot;, but then you give a sys:category 
for the child, which is not legal according to &quot;RoomType&quot; - you need an 
&quot;app:roomCategory&quot; element.  Once you tell it the type the element 
should be validated against, you have to follow the model for that type.

    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
But I told that sys:category is actually RoomCategoryType using xsi:type, so
why id doesn't works? Why actual type is not exposed, only plain one?
  &lt;/pre&gt;
&lt;/blockquote&gt;
When you told it the type for sys:Entity was RoomType, you were telling
it you are going to provide data that would validate against RoomType.&amp;nbsp;
In other words, you are essentially saying &quot;don't accept a sys:category
element, be more restrictive and demand an app:roomCategory element&quot;.&amp;nbsp;
Yes, you specified &quot;RoomCategoryType&quot; for the sys:category element, but
RoomType doesn't allow just *any* element of RoomCategoryType, it
requires an app:roomCategory element (or an element in its substitution
group).&amp;nbsp; The definition of RoomType specifies not only the type of
elements that should appear, but also the names for those elements.&lt;br&gt;
&lt;br&gt;
I hope that helps.&lt;br&gt;
&lt;br&gt;
-Kevin&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-xsi%3Atype-works-only-inwards%2C-not-outwards--tp26628621p26632956.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632358</id>
	<title>Re: Why xsi:type works only inwards, not outwards?</title>
	<published>2009-12-03T12:08:55Z</published>
	<updated>2009-12-03T12:08:55Z</updated>
	<author>
		<name>Krzysztof FF</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Kevin Braun wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;One brief comment embedded below.
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;On 12/3/2009 11:13 AM, Krzysztof FF wrote:
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;[...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; BUT USING xsi:type on both levels is illegal:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sys:Entity xsi:type=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;sys:category xsi:type=&amp;quot;RoomCategoryType&amp;quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I believe this would be invalid because you have indicated that 
&lt;br&gt;sys:Entity is actually a &amp;quot;RoomType&amp;quot;, but then you give a sys:category 
&lt;br&gt;for the child, which is not legal according to &amp;quot;RoomType&amp;quot; - you need an 
&lt;br&gt;&amp;quot;app:roomCategory&amp;quot; element. &amp;nbsp;Once you tell it the type the element 
&lt;br&gt;should be validated against, you have to follow the model for that type.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
But I told that sys:category is actually RoomCategoryType using xsi:type, so why id doesn't works? Why actual type is not exposed, only plain one?
&lt;br&gt;&lt;br&gt;It seems I have to live with that, but it doesn't suits me.
&lt;br&gt;&lt;br&gt;Thank you anyway.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-xsi%3Atype-works-only-inwards%2C-not-outwards--tp26628621p26632358.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631316</id>
	<title>Re: Why xsi:type works only inwards, not outwards?</title>
	<published>2009-12-03T11:00:20Z</published>
	<updated>2009-12-03T11:00:20Z</updated>
	<author>
		<name>Kevin Braun</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;One brief comment embedded below.
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;On 12/3/2009 11:13 AM, Krzysztof FF wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to define two-level layered schema - one with generic &amp;quot;system&amp;quot;
&lt;br&gt;&amp;gt; model, second with specific &amp;quot;application&amp;quot; model.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When trying to expose application data using generic system model elements
&lt;br&gt;&amp;gt; specified by using xsi:type attribute referring to application model types,
&lt;br&gt;&amp;gt; I've encountered some asymetry in treating it while validating data.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My example is somehow simplified so as to reflect the issue from topic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let's start with system schema, sys.xsd:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;schema 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns:sys=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;Entity&amp;quot; type=&amp;quot;sys:EntityType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;EntityType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element ref=&amp;quot;sys:category&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;category&amp;quot; type=&amp;quot;sys:CategoryType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;CategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;lt;/schema&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I want to define specific rules for Room derived from Entity by
&lt;br&gt;&amp;gt; restriction in app.xsd:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;schema 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.org.com/APP&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/APP&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns:app=&amp;quot;&lt;a href=&quot;http://www.org.com/APP&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/APP&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns:sys=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;import 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; namespace=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; schemaLocation=&amp;quot;sys.xsd&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;Room&amp;quot; type=&amp;quot;app:RoomType&amp;quot; substitutionGroup=&amp;quot;sys:Entity&amp;quot;
&lt;br&gt;&amp;gt; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;sys:EntityType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element ref=&amp;quot;app:roomCategory&amp;quot;&amp;gt;&amp;lt;/element&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;roomCategory&amp;quot; type=&amp;quot;app:RoomCategoryType&amp;quot;
&lt;br&gt;&amp;gt; substitutionGroup=&amp;quot;sys:category&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;RoomCategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;sys:CategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;living&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;bedroom&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;kitchen&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;lt;/schema&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I can write data using application model:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Room&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;roomCategory&amp;gt;living&amp;lt;/roomCategory&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/Room&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I could write the same data using plain system model, because Room is
&lt;br&gt;&amp;gt; derived from Entity by restriction:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sys:Entity&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;sys:category&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The reason for flattening data to system model is to make it understandable
&lt;br&gt;&amp;gt; for some low-level processing, whatever it is (i.e. without exact knowledge
&lt;br&gt;&amp;gt; on application specifics).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But there are some drawbacks:
&lt;br&gt;&amp;gt; - validation can be made only against system schema, not application schema;
&lt;br&gt;&amp;gt; - information about actual application types has been stripped out, although
&lt;br&gt;&amp;gt; it could be of later use for some high-level processing, whatever it is
&lt;br&gt;&amp;gt; (i.e. using knowledge of aplication specifics).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My natural attempt was to use xsi:type attribute.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But it occured that I can write 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sys:Entity xsi:type=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;roomCategory&amp;gt;living&amp;lt;/roomCategory&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OR
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sys:Entity&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;sys:category xsi:type=RoomCategoryType&amp;quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sys:Entity&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; BUT USING xsi:type on both levels is illegal:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sys:Entity xsi:type=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;sys:category xsi:type=RoomCategoryType&amp;quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;I believe this would be invalid because you have indicated that 
&lt;br&gt;sys:Entity is actually a &amp;quot;RoomType&amp;quot;, but then you give a sys:category 
&lt;br&gt;for the child, which is not legal according to &amp;quot;RoomType&amp;quot; - you need an 
&lt;br&gt;&amp;quot;app:roomCategory&amp;quot; element. &amp;nbsp;Once you tell it the type the element 
&lt;br&gt;should be validated against, you have to follow the model for that type.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It seems that xsi:type &amp;quot;works&amp;quot; inwards, forcing inner content of element to
&lt;br&gt;&amp;gt; be validated along referred type. But in the same time, it does not work
&lt;br&gt;&amp;gt; outwards, i.e. inner element is not exposed as referred type - element name
&lt;br&gt;&amp;gt; is interpreted explicitly instead.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is what I assume some drawback in how XML schema works, and causes my
&lt;br&gt;&amp;gt; concept for exposing data using layered schemas to be illegal.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I wonder if somebody could explain if there are some valid reasons for
&lt;br&gt;&amp;gt; hiding xsi:type attribute referred from inner elements to their parent
&lt;br&gt;&amp;gt; elements.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Kevin Braun
&lt;br&gt;-- 
&lt;br&gt;Objective Systems, Inc.
&lt;br&gt;REAL WORLD ASN.1 AND XML SOLUTIONS
&lt;br&gt;Tel: +1 (484) 875-9841
&lt;br&gt;Fax: +1 (484) 875-9830
&lt;br&gt;Toll-free: (877) 307-6855 (USA only)
&lt;br&gt;&lt;a href=&quot;http://www.obj-sys.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.obj-sys.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-xsi%3Atype-works-only-inwards%2C-not-outwards--tp26628621p26631316.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26628621</id>
	<title>Why xsi:type works only inwards, not outwards?</title>
	<published>2009-12-03T08:13:29Z</published>
	<updated>2009-12-03T08:13:29Z</updated>
	<author>
		<name>Krzysztof FF</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm trying to define two-level layered schema - one with generic &amp;quot;system&amp;quot; model, second with specific &amp;quot;application&amp;quot; model.
&lt;br&gt;&lt;br&gt;When trying to expose application data using generic system model elements specified by using xsi:type attribute referring to application model types, I've encountered some asymetry in treating it while validating data.
&lt;br&gt;&lt;br&gt;My example is somehow simplified so as to reflect the issue from topic.
&lt;br&gt;&lt;br&gt;Let's start with system schema, sys.xsd:
&lt;br&gt;&lt;br&gt;&amp;lt;schema 
&lt;br&gt;&amp;nbsp; &amp;nbsp; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:sys=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;Entity&amp;quot; type=&amp;quot;sys:EntityType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;EntityType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element ref=&amp;quot;sys:category&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;category&amp;quot; type=&amp;quot;sys:CategoryType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;CategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;lt;/schema&amp;gt;
&lt;br&gt;&lt;br&gt;Now I want to define specific rules for Room derived from Entity by restriction in app.xsd:
&lt;br&gt;&lt;br&gt;&amp;lt;schema 
&lt;br&gt;&amp;nbsp; &amp;nbsp; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.org.com/APP&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/APP&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:app=&amp;quot;&lt;a href=&quot;http://www.org.com/APP&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/APP&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:sys=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;import 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; namespace=&amp;quot;&lt;a href=&quot;http://www.org.com/SYS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.org.com/SYS&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; schemaLocation=&amp;quot;sys.xsd&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;Room&amp;quot; type=&amp;quot;app:RoomType&amp;quot; substitutionGroup=&amp;quot;sys:Entity&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;complexContent&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;sys:EntityType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element ref=&amp;quot;app:roomCategory&amp;quot;&amp;gt;&amp;lt;/element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/complexContent&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;roomCategory&amp;quot; type=&amp;quot;app:RoomCategoryType&amp;quot; substitutionGroup=&amp;quot;sys:category&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;RoomCategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;sys:CategoryType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;living&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;bedroom&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;kitchen&amp;quot;&amp;gt;&amp;lt;/enumeration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;lt;/schema&amp;gt;
&lt;br&gt;&lt;br&gt;Now I can write data using application model:
&lt;br&gt;&lt;br&gt;&amp;lt;Room&amp;gt;
&lt;br&gt;&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;roomCategory&amp;gt;living&amp;lt;/roomCategory&amp;gt;
&lt;br&gt;&amp;lt;/Room&amp;gt;
&lt;br&gt;&lt;br&gt;I could write the same data using plain system model, because Room is derived from Entity by restriction:
&lt;br&gt;&lt;br&gt;&amp;lt;sys:Entity&amp;gt;
&lt;br&gt;&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;sys:category&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&lt;br&gt;The reason for flattening data to system model is to make it understandable for some low-level processing, whatever it is (i.e. without exact knowledge on application specifics).
&lt;br&gt;&lt;br&gt;But there are some drawbacks:
&lt;br&gt;- validation can be made only against system schema, not application schema;
&lt;br&gt;- information about actual application types has been stripped out, although it could be of later use for some high-level processing, whatever it is (i.e. using knowledge of aplication specifics).
&lt;br&gt;&lt;br&gt;My natural attempt was to use xsi:type attribute.
&lt;br&gt;&lt;br&gt;But it occured that I can write 
&lt;br&gt;&lt;br&gt;&amp;lt;sys:Entity xsi:type=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;roomCategory&amp;gt;living&amp;lt;/roomCategory&amp;gt;
&lt;br&gt;&amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&lt;br&gt;OR
&lt;br&gt;&lt;br&gt;&amp;lt;sys:Entity&amp;gt;
&lt;br&gt;&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;sys:category xsi:type=RoomCategoryType&amp;quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;lt;/sys:Entity&amp;gt;
&lt;br&gt;&lt;br&gt;BUT USING xsi:type on both levels is illegal:
&lt;br&gt;&lt;br&gt;&amp;lt;sys:Entity xsi:type=&amp;quot;RoomType&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;!-- namespaces omitted for brevity --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;sys:category xsi:type=RoomCategoryType&amp;quot;&amp;gt;living&amp;lt;/sys:category&amp;gt;
&lt;br&gt;&amp;lt;/sys:Entity1&amp;gt;
&lt;br&gt;&lt;br&gt;It seems that xsi:type &amp;quot;works&amp;quot; inwards, forcing inner content of element to be validated along referred type. But in the same time, it does not work outwards, i.e. inner element is not exposed as referred type - element name is interpreted explicitly instead.
&lt;br&gt;&lt;br&gt;This is what I assume some drawback in how XML schema works, and causes my concept for exposing data using layered schemas to be illegal.
&lt;br&gt;&lt;br&gt;I wonder if somebody could explain if there are some valid reasons for hiding xsi:type attribute referred from inner elements to their parent elements.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-xsi%3Atype-works-only-inwards%2C-not-outwards--tp26628621p26628621.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26613429</id>
	<title>RE: Extending Types</title>
	<published>2009-12-02T09:55:56Z</published>
	<updated>2009-12-02T09:55:56Z</updated>
	<author>
		<name>Xan Gregg-2</name>
	</author>
	<content type="html">FWIW, sounds like a use case for typed wildcards [1] if they existed.
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;MyMessageType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Header&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Who&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;When&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:any type=&amp;quot;BaseBusinessContent&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;BaseBusinessContent&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;xan
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://www.w3.org/Bugs/Public/show_bug.cgi?id=2866&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Bugs/Public/show_bug.cgi?id=2866&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613429&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613429&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On Behalf Of Flavio Cordova
&lt;br&gt;Sent: Tuesday, December 01, 2009 4:25 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613429&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Re: Extending Types
&lt;br&gt;&lt;br&gt;I may have found another way, although is not exactly what I'm looking for..
&lt;br&gt;&lt;br&gt;In definition.xsd
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;MyMessageType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Header&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Who&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;When&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element ref=&amp;quot;AbstractBusinessContent&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xs:element name=&amp;quot;AbstractBusinessContent&amp;quot; abstract=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;lt;xs:element name=&amp;quot;MyMsg&amp;quot; type=&amp;quot;MyMessage&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;Notice that I have create a reference element of MyMessage
&lt;br&gt;(ref=&amp;quot;AbstractBusinessContent&amp;quot;) and defined this element as abstract
&lt;br&gt;(although, &amp;quot;abstract&amp;quot; seems to be useless, it avoids that the user
&lt;br&gt;could use this element in the XML).
&lt;br&gt;&lt;br&gt;Then in child.xsd:
&lt;br&gt;&amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;BusinessContent&amp;quot;&amp;gt;
&lt;br&gt;   &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;       &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;       &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;   &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xs:element name=&amp;quot;BusinessContent&amp;quot; type=&amp;quot;BusinessContent&amp;quot;
&lt;br&gt;substitutionGroup=&amp;quot;AbstractBusinessContent&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;Notice here that I just defined another complexType (BusinessContent)
&lt;br&gt;and created an element using substituitionGroup. That means I could
&lt;br&gt;use it instead of AbstractBusinessContent.
&lt;br&gt;&lt;br&gt;Why it's not perfect: Now I can't pre-define any content for BusinessContent...
&lt;br&gt;&lt;br&gt;I'm feeling much more comfortable, yet not satisfied... I mean, I can
&lt;br&gt;solve my problem just setting GenericInformation a sibling of
&lt;br&gt;BusinessContent, but I still think there should be a way to make
&lt;br&gt;abstract types do the job.. :(
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 5:27 PM, Flavio Cordova &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613429&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flavio.cordova@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You mean something like this ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt; &amp;lt;!-- No abstract
&lt;br&gt;&amp;gt; attribute anymore --&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;xs:group ref=&amp;quot;BusinessContentGroup&amp;quot;&amp;gt;&amp;lt;/xs:group&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I leave definition.xsd with no definition for
&lt;br&gt;&amp;gt; BusinessContentGroup and only define it in item.xsd, changing
&lt;br&gt;&amp;gt; xs:redefine to xs:include, right ?
&lt;br&gt;&amp;gt; That works but then the parent XSD becomes invalid, since the group
&lt;br&gt;&amp;gt; isn't defined there, right ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not comfortable with this solution (although I will use it if
&lt;br&gt;&amp;gt; nothing betters comes up :D).. Is there any other ?
&lt;br&gt;&amp;gt; I know it could sound a little picky, but I seems to me abstract
&lt;br&gt;&amp;gt; should do the work and I'm just forgetting something...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 1, 2009 at 5:00 PM, Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613429&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Actually, in my case, I need to create a complexType that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will be extended by other people, just overwriting (or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;implementing&amp;quot;) the BusinessContent tag.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think the simplest solution is a low-tech one: have your type refer to a
&lt;br&gt;&amp;gt;&amp;gt; named model group called BusinessContentGroup which you define in a separate
&lt;br&gt;&amp;gt;&amp;gt; schema document, which people can edit.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; OK that has disadvantages, for example it makes it difficult for different
&lt;br&gt;&amp;gt;&amp;gt; extensions of the schema to coexist, but those disadvantages apply to nearly
&lt;br&gt;&amp;gt;&amp;gt; all other techniques as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26613429.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26599324</id>
	<title>Re: Extending Types</title>
	<published>2009-12-01T13:25:26Z</published>
	<updated>2009-12-01T13:25:26Z</updated>
	<author>
		<name>Flavio Cordova</name>
	</author>
	<content type="html">I may have found another way, although is not exactly what I'm looking for..
&lt;br&gt;&lt;br&gt;In definition.xsd
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;MyMessageType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Header&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Who&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;When&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element ref=&amp;quot;AbstractBusinessContent&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xs:element name=&amp;quot;AbstractBusinessContent&amp;quot; abstract=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;lt;xs:element name=&amp;quot;MyMsg&amp;quot; type=&amp;quot;MyMessage&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;Notice that I have create a reference element of MyMessage
&lt;br&gt;(ref=&amp;quot;AbstractBusinessContent&amp;quot;) and defined this element as abstract
&lt;br&gt;(although, &amp;quot;abstract&amp;quot; seems to be useless, it avoids that the user
&lt;br&gt;could use this element in the XML).
&lt;br&gt;&lt;br&gt;Then in child.xsd:
&lt;br&gt;&amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;BusinessContent&amp;quot;&amp;gt;
&lt;br&gt;   &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;       &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;       &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;   &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xs:element name=&amp;quot;BusinessContent&amp;quot; type=&amp;quot;BusinessContent&amp;quot;
&lt;br&gt;substitutionGroup=&amp;quot;AbstractBusinessContent&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;Notice here that I just defined another complexType (BusinessContent)
&lt;br&gt;and created an element using substituitionGroup. That means I could
&lt;br&gt;use it instead of AbstractBusinessContent.
&lt;br&gt;&lt;br&gt;Why it's not perfect: Now I can't pre-define any content for BusinessContent...
&lt;br&gt;&lt;br&gt;I'm feeling much more comfortable, yet not satisfied... I mean, I can
&lt;br&gt;solve my problem just setting GenericInformation a sibling of
&lt;br&gt;BusinessContent, but I still think there should be a way to make
&lt;br&gt;abstract types do the job.. :(
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 5:27 PM, Flavio Cordova &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599324&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flavio.cordova@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You mean something like this ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt; &amp;lt;!-- No abstract
&lt;br&gt;&amp;gt; attribute anymore --&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;xs:group ref=&amp;quot;BusinessContentGroup&amp;quot;&amp;gt;&amp;lt;/xs:group&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I leave definition.xsd with no definition for
&lt;br&gt;&amp;gt; BusinessContentGroup and only define it in item.xsd, changing
&lt;br&gt;&amp;gt; xs:redefine to xs:include, right ?
&lt;br&gt;&amp;gt; That works but then the parent XSD becomes invalid, since the group
&lt;br&gt;&amp;gt; isn't defined there, right ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not comfortable with this solution (although I will use it if
&lt;br&gt;&amp;gt; nothing betters comes up :D).. Is there any other ?
&lt;br&gt;&amp;gt; I know it could sound a little picky, but I seems to me abstract
&lt;br&gt;&amp;gt; should do the work and I'm just forgetting something...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 1, 2009 at 5:00 PM, Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599324&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Actually, in my case, I need to create a complexType that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will be extended by other people, just overwriting (or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;implementing&amp;quot;) the BusinessContent tag.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think the simplest solution is a low-tech one: have your type refer to a
&lt;br&gt;&amp;gt;&amp;gt; named model group called BusinessContentGroup which you define in a separate
&lt;br&gt;&amp;gt;&amp;gt; schema document, which people can edit.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; OK that has disadvantages, for example it makes it difficult for different
&lt;br&gt;&amp;gt;&amp;gt; extensions of the schema to coexist, but those disadvantages apply to nearly
&lt;br&gt;&amp;gt;&amp;gt; all other techniques as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26599324.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597653</id>
	<title>Re: Extending Types</title>
	<published>2009-12-01T11:27:16Z</published>
	<updated>2009-12-01T11:27:16Z</updated>
	<author>
		<name>Flavio Cordova</name>
	</author>
	<content type="html">You mean something like this ?
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt; &amp;lt;!-- No abstract
&lt;br&gt;attribute anymore --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xs:group ref=&amp;quot;BusinessContentGroup&amp;quot;&amp;gt;&amp;lt;/xs:group&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;Then I leave definition.xsd with no definition for
&lt;br&gt;BusinessContentGroup and only define it in item.xsd, changing
&lt;br&gt;xs:redefine to xs:include, right ?
&lt;br&gt;That works but then the parent XSD becomes invalid, since the group
&lt;br&gt;isn't defined there, right ?
&lt;br&gt;&lt;br&gt;I'm not comfortable with this solution (although I will use it if
&lt;br&gt;nothing betters comes up :D).. Is there any other ?
&lt;br&gt;I know it could sound a little picky, but I seems to me abstract
&lt;br&gt;should do the work and I'm just forgetting something...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 5:00 PM, Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597653&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Actually, in my case, I need to create a complexType that
&lt;br&gt;&amp;gt;&amp;gt; will be extended by other people, just overwriting (or
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;implementing&amp;quot;) the BusinessContent tag.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think the simplest solution is a low-tech one: have your type refer to a
&lt;br&gt;&amp;gt; named model group called BusinessContentGroup which you define in a separate
&lt;br&gt;&amp;gt; schema document, which people can edit.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OK that has disadvantages, for example it makes it difficult for different
&lt;br&gt;&amp;gt; extensions of the schema to coexist, but those disadvantages apply to nearly
&lt;br&gt;&amp;gt; all other techniques as well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26597653.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597224</id>
	<title>RE: Extending Types</title>
	<published>2009-12-01T11:00:48Z</published>
	<updated>2009-12-01T11:00:48Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; Actually, in my case, I need to create a complexType that 
&lt;br&gt;&amp;gt; will be extended by other people, just overwriting (or 
&lt;br&gt;&amp;gt; &amp;quot;implementing&amp;quot;) the BusinessContent tag. 
&lt;br&gt;&lt;br&gt;I think the simplest solution is a low-tech one: have your type refer to a
&lt;br&gt;named model group called BusinessContentGroup which you define in a separate
&lt;br&gt;schema document, which people can edit.
&lt;br&gt;&lt;br&gt;OK that has disadvantages, for example it makes it difficult for different
&lt;br&gt;extensions of the schema to coexist, but those disadvantages apply to nearly
&lt;br&gt;all other techniques as well.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26597224.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596618</id>
	<title>Fwd: Extending Types</title>
	<published>2009-12-01T10:21:01Z</published>
	<updated>2009-12-01T10:21:01Z</updated>
	<author>
		<name>Flavio Cordova</name>
	</author>
	<content type="html">I'm considering this (&lt;a href=&quot;http://www.w3schools.com/Schema/el_group.asp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3schools.com/Schema/el_group.asp&lt;/a&gt;) as
&lt;br&gt;a source for named groups.. :-)
&lt;br&gt;&lt;br&gt;In this case, I understand that in the &amp;quot;child&amp;quot; xsd file I would
&lt;br&gt;compound a new complexType using parts already defined in
&lt;br&gt;definitions.xsd, right ?
&lt;br&gt;&lt;br&gt;Actually, in my case, I need to create a complexType that will be
&lt;br&gt;extended by other people, just overwriting (or &amp;quot;implementing&amp;quot;) the
&lt;br&gt;BusinessContent tag. I don't want people have to care about how to
&lt;br&gt;assemble parts to create a correct message.. I just want them to focus
&lt;br&gt;on the specialized part...
&lt;br&gt;However, I have some freedom to change the structure... for example, I
&lt;br&gt;could move the CustomInformation out of BusinessContent, if it could
&lt;br&gt;make things easier.. but I think keeping it would be more
&lt;br&gt;challenging.. :)
&lt;br&gt;&lt;br&gt;Am I too high ? :)
&lt;br&gt;&lt;br&gt;---------- Forwarded message ----------
&lt;br&gt;From: Flavio Cordova &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596618&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flavio.cordova@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Tue, Dec 1, 2009 at 4:00 PM
&lt;br&gt;Subject: Re: Extending Types
&lt;br&gt;To: Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596618&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Well.. I have changed some things but that's how it looks like now:
&lt;br&gt;&lt;br&gt;In definition.xsd
&lt;br&gt;&lt;br&gt;DEFINITION:
&lt;br&gt;   &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot; abstract=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;               &amp;lt;xs:element name=&amp;quot;CustomInformation&amp;quot;&amp;gt;
&lt;br&gt;                                    ....
&lt;br&gt;               &amp;lt;/xs:element&amp;gt;
&lt;br&gt;       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;   &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;ELEMENT:
&lt;br&gt;&amp;lt;xs:element name=&amp;quot;BusinessContent&amp;quot;
&lt;br&gt;type=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;in item.xsd, I have this:
&lt;br&gt;&lt;br&gt;       &amp;lt;xs:redefine schemaLocation=&amp;quot;../definition.xsd&amp;quot;&amp;gt;
&lt;br&gt;               &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;                       &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;                               &amp;lt;xs:extension base=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;                                       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;                                               &amp;lt;xs:element name=&amp;quot;Code&amp;quot;
&lt;br&gt;type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;                                               &amp;lt;xs:element
&lt;br&gt;name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;                                       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;                               &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;                       &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;               &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;       &amp;lt;/xs:redefine&amp;gt;
&lt;br&gt;&lt;br&gt;But it doesn't work too.. When I create the XML the validator shows
&lt;br&gt;that Code is not a valid child for BusinessContent.
&lt;br&gt;&lt;br&gt;   &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;     &amp;lt;Code&amp;gt;UN&amp;lt;/Code&amp;gt; &amp;lt;!-- ### Invalid child ### --&amp;gt;
&lt;br&gt;     &amp;lt;Description&amp;gt;Unidade&amp;lt;/Description&amp;gt;
&lt;br&gt;     &amp;lt;CustomInformation&amp;gt;
&lt;br&gt;       &amp;lt;Table name=&amp;quot;labInfo&amp;quot;&amp;gt;
&lt;br&gt;               &amp;lt;Record&amp;gt;
&lt;br&gt;                       &amp;lt;Field name=&amp;quot;quanticMass&amp;quot;&amp;gt;120&amp;lt;/Field&amp;gt;
&lt;br&gt;                       &amp;lt;Field name=&amp;quot;fusionMethod&amp;quot;&amp;gt;Nuclear&amp;lt;/Field&amp;gt;
&lt;br&gt;               &amp;lt;/Record&amp;gt;
&lt;br&gt;       &amp;lt;/Table&amp;gt;
&lt;br&gt;     &amp;lt;/CustomInformation&amp;gt;
&lt;br&gt;   &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&lt;br&gt;Talking about compositions or inheritance, I don't know exactly how it
&lt;br&gt;would work (I mean, I know the concepts, but I really don't what it
&lt;br&gt;would do with my xml.. :D)
&lt;br&gt;&lt;br&gt;I'll try to find something about named model groups to see if I could
&lt;br&gt;use them...
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 12:00 PM, Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596618&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I have an XML that looks like this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;MyMessage&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;      ....
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     #someSpecificInformation# &amp;lt;!-- This will be defined in a
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;child&amp;quot; XSD
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;        &amp;lt;information&amp;gt;a&amp;lt;/information&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;/GenericInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/MyMessage&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In a file called definition.xsd, I defined the whole
&lt;br&gt;&amp;gt;&amp;gt; structure, including the BusinessContent ComplexType.. Then,
&lt;br&gt;&amp;gt;&amp;gt; I defined another XSD, called item.xsd, where I'd like to
&lt;br&gt;&amp;gt;&amp;gt; define only the content of the BusinessContent, so I did
&lt;br&gt;&amp;gt;&amp;gt; something like this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;BusinessContentTypeImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;xs:extension base=&amp;quot;GenericBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What does the element declaration for BusinessContent look like? Is it using
&lt;br&gt;&amp;gt; the GenericBusinessContentType or BusinessContentTypeImpl? You can only use
&lt;br&gt;&amp;gt; the BusinessContentTypeImpl content model if the type is declared as
&lt;br&gt;&amp;gt; BusinessContentTypeImpl either in the element declaration, or in an xsi:type
&lt;br&gt;&amp;gt; attribute in the instance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you considered using named model groups instead? As with any
&lt;br&gt;&amp;gt; object-oriented design, people sometimes overlook that composition is more
&lt;br&gt;&amp;gt; powerful than inheritance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I create an XML (adding tags Code and Description), I
&lt;br&gt;&amp;gt;&amp;gt; get an error because tags Code and Description are not valid
&lt;br&gt;&amp;gt;&amp;gt; children for BusinessContent, although I've extended it...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'd also like to force extension of BusinessContent. Then I
&lt;br&gt;&amp;gt;&amp;gt; tried to use the abstract attribute, but then I couldn't add
&lt;br&gt;&amp;gt;&amp;gt; the &amp;lt;GenericInfo&amp;gt; child...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So, my questions are:
&lt;br&gt;&amp;gt;&amp;gt; 1) how should I extend BusinessContent
&lt;br&gt;&amp;gt;&amp;gt; (GenericBusinessContentType) so I could keep the current
&lt;br&gt;&amp;gt;&amp;gt; elements (GenericInfo) add more elements..
&lt;br&gt;&amp;gt;&amp;gt; 2) how could I force a &amp;quot;child&amp;quot; xsd file to import the
&lt;br&gt;&amp;gt;&amp;gt; definitions.xsd and extend BusinessContent.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks !
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26596618.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596601</id>
	<title>RE: Extending Types</title>
	<published>2009-12-01T10:20:02Z</published>
	<updated>2009-12-01T10:20:02Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">Your reply was off-list, I'm copying it back to the list.
&lt;br&gt;&lt;br&gt;The problem I think is that when you extend a type, the extension always
&lt;br&gt;goes at the end.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Flavio Cordova [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596601&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flavio.cordova@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 01 December 2009 18:01
&lt;br&gt;&amp;gt; To: Michael Kay
&lt;br&gt;&amp;gt; Subject: Re: Extending Types
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well.. I have changed some things but that's how it looks like now:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In definition.xsd
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; DEFINITION:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot; 
&lt;br&gt;&amp;gt; abstract=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 	&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 		&amp;lt;xs:element name=&amp;quot;CustomInformation&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 		&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 	&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ELEMENT:
&lt;br&gt;&amp;gt; &amp;lt;xs:element name=&amp;quot;BusinessContent&amp;quot;
&lt;br&gt;&amp;gt; type=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; in item.xsd, I have this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	&amp;lt;xs:redefine schemaLocation=&amp;quot;../definition.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;xs:extension 
&lt;br&gt;&amp;gt; base=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 						&amp;lt;xs:element 
&lt;br&gt;&amp;gt; name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; 						&amp;lt;xs:element 
&lt;br&gt;&amp;gt; name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:redefine&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But it doesn't work too.. When I create the XML the validator 
&lt;br&gt;&amp;gt; shows that Code is not a valid child for BusinessContent.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Code&amp;gt;UN&amp;lt;/Code&amp;gt; &amp;lt;!-- ### Invalid child ### --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Description&amp;gt;Unidade&amp;lt;/Description&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;CustomInformation&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	&amp;lt;Table name=&amp;quot;labInfo&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		&amp;lt;Record&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 			&amp;lt;Field name=&amp;quot;quanticMass&amp;quot;&amp;gt;120&amp;lt;/Field&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 			&amp;lt;Field 
&lt;br&gt;&amp;gt; name=&amp;quot;fusionMethod&amp;quot;&amp;gt;Nuclear&amp;lt;/Field&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 		&amp;lt;/Record&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	&amp;lt;/Table&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/CustomInformation&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Talking about compositions or inheritance, I don't know 
&lt;br&gt;&amp;gt; exactly how it would work (I mean, I know the concepts, but I 
&lt;br&gt;&amp;gt; really don't what it would do with my xml.. :D)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'll try to find something about named model groups to see if 
&lt;br&gt;&amp;gt; I could use them...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Tue, Dec 1, 2009 at 12:00 PM, Michael Kay 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596601&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I have an XML that looks like this:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;MyMessage&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;      ....
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;/HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;     #someSpecificInformation# &amp;lt;!-- This will be defined in 
&lt;br&gt;&amp;gt; a &amp;quot;child&amp;quot; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; XSD
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;     &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;        &amp;lt;information&amp;gt;a&amp;lt;/information&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;     &amp;lt;/GenericInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;/MyMessage&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; In a file called definition.xsd, I defined the whole structure, 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; including the BusinessContent ComplexType.. Then, I 
&lt;br&gt;&amp;gt; defined another 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; XSD, called item.xsd, where I'd like to define only the content of 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the BusinessContent, so I did something like this:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;BusinessContentTypeImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;     &amp;lt;xs:extension base=&amp;quot;GenericBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Description&amp;quot; 
&lt;br&gt;&amp;gt; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;     &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;   &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; What does the element declaration for BusinessContent look 
&lt;br&gt;&amp;gt; like? Is it 
&lt;br&gt;&amp;gt; &amp;gt; using the GenericBusinessContentType or 
&lt;br&gt;&amp;gt; BusinessContentTypeImpl? You 
&lt;br&gt;&amp;gt; &amp;gt; can only use the BusinessContentTypeImpl content model if 
&lt;br&gt;&amp;gt; the type is 
&lt;br&gt;&amp;gt; &amp;gt; declared as BusinessContentTypeImpl either in the element 
&lt;br&gt;&amp;gt; declaration, 
&lt;br&gt;&amp;gt; &amp;gt; or in an xsi:type attribute in the instance.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Have you considered using named model groups instead? As with any 
&lt;br&gt;&amp;gt; &amp;gt; object-oriented design, people sometimes overlook that 
&lt;br&gt;&amp;gt; composition is 
&lt;br&gt;&amp;gt; &amp;gt; more powerful than inheritance.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; When I create an XML (adding tags Code and Description), I get an 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; error because tags Code and Description are not valid children for 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; BusinessContent, although I've extended it...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'd also like to force extension of BusinessContent. Then 
&lt;br&gt;&amp;gt; I tried to 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; use the abstract attribute, but then I couldn't add the 
&lt;br&gt;&amp;gt; &amp;lt;GenericInfo&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; child...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; So, my questions are:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 1) how should I extend BusinessContent
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (GenericBusinessContentType) so I could keep the current elements 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (GenericInfo) add more elements..
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 2) how could I force a &amp;quot;child&amp;quot; xsd file to import the 
&lt;br&gt;&amp;gt; definitions.xsd 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; and extend BusinessContent.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks !
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26596601.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596451</id>
	<title>Fwd: Extending Types</title>
	<published>2009-12-01T10:09:43Z</published>
	<updated>2009-12-01T10:09:43Z</updated>
	<author>
		<name>Flavio Cordova</name>
	</author>
	<content type="html">Sorry.. I didn't send to the list.. :(
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------- Forwarded message ----------
&lt;br&gt;From: Flavio Cordova &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flavio.cordova@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Tue, Dec 1, 2009 at 4:00 PM
&lt;br&gt;Subject: Re: Extending Types
&lt;br&gt;To: Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596451&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Well.. I have changed some things but that's how it looks like now:
&lt;br&gt;&lt;br&gt;In definition.xsd
&lt;br&gt;&lt;br&gt;DEFINITION:
&lt;br&gt;   &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot; abstract=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;               &amp;lt;xs:element name=&amp;quot;CustomInformation&amp;quot;&amp;gt;
&lt;br&gt;                                    ....
&lt;br&gt;               &amp;lt;/xs:element&amp;gt;
&lt;br&gt;       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;   &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;ELEMENT:
&lt;br&gt;&amp;lt;xs:element name=&amp;quot;BusinessContent&amp;quot;
&lt;br&gt;type=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;in item.xsd, I have this:
&lt;br&gt;&lt;br&gt;       &amp;lt;xs:redefine schemaLocation=&amp;quot;../definition.xsd&amp;quot;&amp;gt;
&lt;br&gt;               &amp;lt;xs:complexType name=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;                       &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;                               &amp;lt;xs:extension base=&amp;quot;AbstractBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;                                       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;                                               &amp;lt;xs:element name=&amp;quot;Code&amp;quot;
&lt;br&gt;type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;                                               &amp;lt;xs:element
&lt;br&gt;name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;                                       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;                               &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;                       &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;               &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;       &amp;lt;/xs:redefine&amp;gt;
&lt;br&gt;&lt;br&gt;But it doesn't work too.. When I create the XML the validator shows
&lt;br&gt;that Code is not a valid child for BusinessContent.
&lt;br&gt;&lt;br&gt;   &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;     &amp;lt;Code&amp;gt;UN&amp;lt;/Code&amp;gt; &amp;lt;!-- ### Invalid child ### --&amp;gt;
&lt;br&gt;     &amp;lt;Description&amp;gt;Unidade&amp;lt;/Description&amp;gt;
&lt;br&gt;     &amp;lt;CustomInformation&amp;gt;
&lt;br&gt;       &amp;lt;Table name=&amp;quot;labInfo&amp;quot;&amp;gt;
&lt;br&gt;               &amp;lt;Record&amp;gt;
&lt;br&gt;                       &amp;lt;Field name=&amp;quot;quanticMass&amp;quot;&amp;gt;120&amp;lt;/Field&amp;gt;
&lt;br&gt;                       &amp;lt;Field name=&amp;quot;fusionMethod&amp;quot;&amp;gt;Nuclear&amp;lt;/Field&amp;gt;
&lt;br&gt;               &amp;lt;/Record&amp;gt;
&lt;br&gt;       &amp;lt;/Table&amp;gt;
&lt;br&gt;     &amp;lt;/CustomInformation&amp;gt;
&lt;br&gt;   &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&lt;br&gt;Talking about compositions or inheritance, I don't know exactly how it
&lt;br&gt;would work (I mean, I know the concepts, but I really don't what it
&lt;br&gt;would do with my xml.. :D)
&lt;br&gt;&lt;br&gt;I'll try to find something about named model groups to see if I could
&lt;br&gt;use them...
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 12:00 PM, Michael Kay &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596451&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I have an XML that looks like this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;MyMessage&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;      ....
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     #someSpecificInformation# &amp;lt;!-- This will be defined in a
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;child&amp;quot; XSD
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;        &amp;lt;information&amp;gt;a&amp;lt;/information&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;/GenericInfo&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/MyMessage&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In a file called definition.xsd, I defined the whole
&lt;br&gt;&amp;gt;&amp;gt; structure, including the BusinessContent ComplexType.. Then,
&lt;br&gt;&amp;gt;&amp;gt; I defined another XSD, called item.xsd, where I'd like to
&lt;br&gt;&amp;gt;&amp;gt; define only the content of the BusinessContent, so I did
&lt;br&gt;&amp;gt;&amp;gt; something like this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;BusinessContentTypeImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;xs:extension base=&amp;quot;GenericBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;       &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;         &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;       &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;     &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;   &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What does the element declaration for BusinessContent look like? Is it using
&lt;br&gt;&amp;gt; the GenericBusinessContentType or BusinessContentTypeImpl? You can only use
&lt;br&gt;&amp;gt; the BusinessContentTypeImpl content model if the type is declared as
&lt;br&gt;&amp;gt; BusinessContentTypeImpl either in the element declaration, or in an xsi:type
&lt;br&gt;&amp;gt; attribute in the instance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you considered using named model groups instead? As with any
&lt;br&gt;&amp;gt; object-oriented design, people sometimes overlook that composition is more
&lt;br&gt;&amp;gt; powerful than inheritance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I create an XML (adding tags Code and Description), I
&lt;br&gt;&amp;gt;&amp;gt; get an error because tags Code and Description are not valid
&lt;br&gt;&amp;gt;&amp;gt; children for BusinessContent, although I've extended it...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'd also like to force extension of BusinessContent. Then I
&lt;br&gt;&amp;gt;&amp;gt; tried to use the abstract attribute, but then I couldn't add
&lt;br&gt;&amp;gt;&amp;gt; the &amp;lt;GenericInfo&amp;gt; child...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So, my questions are:
&lt;br&gt;&amp;gt;&amp;gt; 1) how should I extend BusinessContent
&lt;br&gt;&amp;gt;&amp;gt; (GenericBusinessContentType) so I could keep the current
&lt;br&gt;&amp;gt;&amp;gt; elements (GenericInfo) add more elements..
&lt;br&gt;&amp;gt;&amp;gt; 2) how could I force a &amp;quot;child&amp;quot; xsd file to import the
&lt;br&gt;&amp;gt;&amp;gt; definitions.xsd and extend BusinessContent.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks !
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26596451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26592271</id>
	<title>RE: Extending Types</title>
	<published>2009-12-01T06:00:42Z</published>
	<updated>2009-12-01T06:00:42Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; I have an XML that looks like this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;MyMessage&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/HeaderInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; #someSpecificInformation# &amp;lt;!-- This will be defined in a 
&lt;br&gt;&amp;gt; &amp;quot;child&amp;quot; XSD
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;information&amp;gt;a&amp;lt;/information&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/GenericInfo&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/MyMessage&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In a file called definition.xsd, I defined the whole 
&lt;br&gt;&amp;gt; structure, including the BusinessContent ComplexType.. Then, 
&lt;br&gt;&amp;gt; I defined another XSD, called item.xsd, where I'd like to 
&lt;br&gt;&amp;gt; define only the content of the BusinessContent, so I did 
&lt;br&gt;&amp;gt; something like this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:complexType name=&amp;quot;BusinessContentTypeImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xs:extension base=&amp;quot;GenericBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:complexType&amp;gt;
&lt;/div&gt;&lt;br&gt;What does the element declaration for BusinessContent look like? Is it using
&lt;br&gt;the GenericBusinessContentType or BusinessContentTypeImpl? You can only use
&lt;br&gt;the BusinessContentTypeImpl content model if the type is declared as
&lt;br&gt;BusinessContentTypeImpl either in the element declaration, or in an xsi:type
&lt;br&gt;attribute in the instance.
&lt;br&gt;&lt;br&gt;Have you considered using named model groups instead? As with any
&lt;br&gt;object-oriented design, people sometimes overlook that composition is more
&lt;br&gt;powerful than inheritance.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I create an XML (adding tags Code and Description), I 
&lt;br&gt;&amp;gt; get an error because tags Code and Description are not valid 
&lt;br&gt;&amp;gt; children for BusinessContent, although I've extended it...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'd also like to force extension of BusinessContent. Then I 
&lt;br&gt;&amp;gt; tried to use the abstract attribute, but then I couldn't add 
&lt;br&gt;&amp;gt; the &amp;lt;GenericInfo&amp;gt; child...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, my questions are:
&lt;br&gt;&amp;gt; 1) how should I extend BusinessContent 
&lt;br&gt;&amp;gt; (GenericBusinessContentType) so I could keep the current 
&lt;br&gt;&amp;gt; elements (GenericInfo) add more elements..
&lt;br&gt;&amp;gt; 2) how could I force a &amp;quot;child&amp;quot; xsd file to import the 
&lt;br&gt;&amp;gt; definitions.xsd and extend BusinessContent.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks !
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26592271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26592048</id>
	<title>Extending Types</title>
	<published>2009-12-01T04:34:19Z</published>
	<updated>2009-12-01T04:34:19Z</updated>
	<author>
		<name>Flavio Cordova</name>
	</author>
	<content type="html">Hello People...
&lt;br&gt;&lt;br&gt;I'm not being able to work with extended types and after some hours
&lt;br&gt;trying to find a solution, I decided to ask for help.. :)
&lt;br&gt;&lt;br&gt;here's the problem..
&lt;br&gt;&lt;br&gt;I have an XML that looks like this:
&lt;br&gt;&lt;br&gt;&amp;lt;MyMessage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;HeaderInfo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;nbsp; &amp;lt;/HeaderInfo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;BusinessContent&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; #someSpecificInformation# &amp;lt;!-- This will be defined in a &amp;quot;child&amp;quot; XSD
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;information&amp;gt;a&amp;lt;/information&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/GenericInfo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/BusinessContent&amp;gt;
&lt;br&gt;&amp;lt;/MyMessage&amp;gt;
&lt;br&gt;&lt;br&gt;In a file called definition.xsd, I defined the whole structure,
&lt;br&gt;including the BusinessContent ComplexType.. Then, I defined another
&lt;br&gt;XSD, called item.xsd, where I'd like to define only the content of the
&lt;br&gt;BusinessContent, so I did something like this:
&lt;br&gt;&lt;br&gt;&amp;lt;xs:include schemaLocation=&amp;quot;definition.xsd&amp;quot;&amp;gt;&amp;lt;/xs:include&amp;gt;
&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;BusinessContentTypeImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xs:complexContent&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xs:extension base=&amp;quot;GenericBusinessContentType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Code&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:element name=&amp;quot;Description&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xs:extension&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/xs:complexContent&amp;gt;
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;When I create an XML (adding tags Code and Description), I get an
&lt;br&gt;error because tags Code and Description are not valid children for
&lt;br&gt;BusinessContent, although I've extended it...
&lt;br&gt;&lt;br&gt;I'd also like to force extension of BusinessContent. Then I tried to
&lt;br&gt;use the abstract attribute, but then I couldn't add the &amp;lt;GenericInfo&amp;gt;
&lt;br&gt;child...
&lt;br&gt;&lt;br&gt;So, my questions are:
&lt;br&gt;1) how should I extend BusinessContent (GenericBusinessContentType) so
&lt;br&gt;I could keep the current elements (GenericInfo) add more elements..
&lt;br&gt;2) how could I force a &amp;quot;child&amp;quot; xsd file to import the definitions.xsd
&lt;br&gt;and extend BusinessContent.
&lt;br&gt;&lt;br&gt;Thanks !
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Types-tp26592048p26592048.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586463</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T20:27:42Z</published>
	<updated>2009-11-30T20:27:42Z</updated>
	<author>
		<name>Bharath Kumar Reddy T</name>
	</author>
	<content type="html">Hi Michel Kay,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you very much for your reply.
&lt;br&gt;&lt;br&gt;Thanks and Regards,
&lt;br&gt;Bharath.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On
&lt;br&gt;Behalf Of Michael Kay
&lt;br&gt;Sent: Monday, November 30, 2009 10:06 PM
&lt;br&gt;To: 'bharath'; 'Pete Cordell'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586463&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ksrilakshmi@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&lt;br&gt;Well, the schema spec is not easy to read: it needs a lot of study to
&lt;br&gt;understand the language it uses. And indeed, it seems my explanation in my
&lt;br&gt;previous email was wrong! Let's take this rule:
&lt;br&gt;&lt;br&gt;[Definition:] &amp;nbsp;For a particle (call it E, for extension) to be a valid
&lt;br&gt;extension of another particle (call it B, for base) &amp;nbsp;one of the following
&lt;br&gt;must be true:
&lt;br&gt;1 They are the same particle.
&lt;br&gt;2 E's {min occurs}={max occurs}=1 and its {term} is a sequence group whose
&lt;br&gt;{particles}' first member is a particle all of whose properties,
&lt;br&gt;recursively, are identical to those of B, with the exception of {annotation}
&lt;br&gt;properties.
&lt;br&gt;&lt;br&gt;First you need to understand what a particle is. Loosely, it's anything that
&lt;br&gt;appears in a content model but in practice we're only concerned here with
&lt;br&gt;group-level particles (not leaf particles, which are either element
&lt;br&gt;particles or wildcards). A group-level particle is technically referred to
&lt;br&gt;as a &amp;quot;model group&amp;quot;, and it has a term which is either a choice group, a
&lt;br&gt;sequence group, or an all group. 
&lt;br&gt;&lt;br&gt;The theory here is that we build the schema components (such as particles)
&lt;br&gt;from the source XSD, and then test whether the components we have built are
&lt;br&gt;valid. (In practice, the processor will usually do these tests while
&lt;br&gt;building the components, and may not even have the capability to build
&lt;br&gt;invalid components). So we first have to see what the rules are for
&lt;br&gt;constructing a complex type component by extension. These are given under
&lt;br&gt;Complex Type Definition with complex content Schema Component in section
&lt;br&gt;3.4.2. Look for the rules for the {content type} property. For both your
&lt;br&gt;complex types, rule 2.2 applies, which means that the effective content is
&lt;br&gt;the particle corresponding to the &amp;lt;all&amp;gt; element; and then rule 3.2.3
&lt;br&gt;applies, which means that the {content type} of the derived type is
&lt;br&gt;effectively the model group:
&lt;br&gt;&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a3&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&lt;br&gt;Now there's a rule in 3.8.6, &amp;quot;Schema Component Constraint: All Group
&lt;br&gt;Limited&amp;quot;, which determines whether this model group is actually valid, and
&lt;br&gt;it turns out that it isn't.
&lt;br&gt;&lt;br&gt;The rule says:
&lt;br&gt;&lt;br&gt;When a model group has {compositor} all, then all of the following must be
&lt;br&gt;true:
&lt;br&gt;1 It appears only as the value of one or both of the following properties:
&lt;br&gt;1.1 the {model group} property of a model group definition.
&lt;br&gt;1.2 the {term} property of a particle with {max occurs}=1 which is part of a
&lt;br&gt;pair which constitutes the {content type} of a complex type definition.
&lt;br&gt;2 The {max occurs} of all the particles in the {particles} of the group must
&lt;br&gt;be 0 or 1.
&lt;br&gt;&lt;br&gt;Now here we have two model groups with compositor &amp;quot;all&amp;quot; that appear as part
&lt;br&gt;of a model group with compositor &amp;quot;sequence&amp;quot;, which doesn't satisfy either
&lt;br&gt;1.1 or 1.2 (the sequence is not a &amp;quot;model group definition&amp;quot;, you only get a
&lt;br&gt;&amp;quot;model group definition&amp;quot; from a &amp;lt;group&amp;gt; element in the schema document.). So
&lt;br&gt;this extended model group isn't valid and therefore the schema isn't valid.
&lt;br&gt;&lt;br&gt;I mentioned the rule Schema Component Constraint: Particle Valid (Extension)
&lt;br&gt;but actually we don't get this far. If we did get this far, the rule would
&lt;br&gt;test whether
&lt;br&gt;&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a3&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&lt;br&gt;was a valid extension of 
&lt;br&gt;&lt;br&gt;&amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt; &amp;lt;/all&amp;gt;
&lt;br&gt;&lt;br&gt;and as it happens, if it got past the rule at 3.8.6, then it would be.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26586463.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577683</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T08:35:38Z</published>
	<updated>2009-11-30T08:35:38Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">Well, the schema spec is not easy to read: it needs a lot of study to
&lt;br&gt;understand the language it uses. And indeed, it seems my explanation in my
&lt;br&gt;previous email was wrong! Let's take this rule:
&lt;br&gt;&lt;br&gt;[Definition:] &amp;nbsp;For a particle (call it E, for extension) to be a valid
&lt;br&gt;extension of another particle (call it B, for base) &amp;nbsp;one of the following
&lt;br&gt;must be true:
&lt;br&gt;1 They are the same particle.
&lt;br&gt;2 E's {min occurs}={max occurs}=1 and its {term} is a sequence group whose
&lt;br&gt;{particles}' first member is a particle all of whose properties,
&lt;br&gt;recursively, are identical to those of B, with the exception of {annotation}
&lt;br&gt;properties.
&lt;br&gt;&lt;br&gt;First you need to understand what a particle is. Loosely, it's anything that
&lt;br&gt;appears in a content model but in practice we're only concerned here with
&lt;br&gt;group-level particles (not leaf particles, which are either element
&lt;br&gt;particles or wildcards). A group-level particle is technically referred to
&lt;br&gt;as a &amp;quot;model group&amp;quot;, and it has a term which is either a choice group, a
&lt;br&gt;sequence group, or an all group. 
&lt;br&gt;&lt;br&gt;The theory here is that we build the schema components (such as particles)
&lt;br&gt;from the source XSD, and then test whether the components we have built are
&lt;br&gt;valid. (In practice, the processor will usually do these tests while
&lt;br&gt;building the components, and may not even have the capability to build
&lt;br&gt;invalid components). So we first have to see what the rules are for
&lt;br&gt;constructing a complex type component by extension. These are given under
&lt;br&gt;Complex Type Definition with complex content Schema Component in section
&lt;br&gt;3.4.2. Look for the rules for the {content type} property. For both your
&lt;br&gt;complex types, rule 2.2 applies, which means that the effective content is
&lt;br&gt;the particle corresponding to the &amp;lt;all&amp;gt; element; and then rule 3.2.3
&lt;br&gt;applies, which means that the {content type} of the derived type is
&lt;br&gt;effectively the model group:
&lt;br&gt;&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a3&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&lt;br&gt;Now there's a rule in 3.8.6, &amp;quot;Schema Component Constraint: All Group
&lt;br&gt;Limited&amp;quot;, which determines whether this model group is actually valid, and
&lt;br&gt;it turns out that it isn't.
&lt;br&gt;&lt;br&gt;The rule says:
&lt;br&gt;&lt;br&gt;When a model group has {compositor} all, then all of the following must be
&lt;br&gt;true:
&lt;br&gt;1 It appears only as the value of one or both of the following properties:
&lt;br&gt;1.1 the {model group} property of a model group definition.
&lt;br&gt;1.2 the {term} property of a particle with {max occurs}=1 which is part of a
&lt;br&gt;pair which constitutes the {content type} of a complex type definition.
&lt;br&gt;2 The {max occurs} of all the particles in the {particles} of the group must
&lt;br&gt;be 0 or 1.
&lt;br&gt;&lt;br&gt;Now here we have two model groups with compositor &amp;quot;all&amp;quot; that appear as part
&lt;br&gt;of a model group with compositor &amp;quot;sequence&amp;quot;, which doesn't satisfy either
&lt;br&gt;1.1 or 1.2 (the sequence is not a &amp;quot;model group definition&amp;quot;, you only get a
&lt;br&gt;&amp;quot;model group definition&amp;quot; from a &amp;lt;group&amp;gt; element in the schema document.). So
&lt;br&gt;this extended model group isn't valid and therefore the schema isn't valid.
&lt;br&gt;&lt;br&gt;I mentioned the rule Schema Component Constraint: Particle Valid (Extension)
&lt;br&gt;but actually we don't get this far. If we did get this far, the rule would
&lt;br&gt;test whether
&lt;br&gt;&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a3&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/all&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&lt;br&gt;was a valid extension of 
&lt;br&gt;&lt;br&gt;&amp;lt;all&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/all&amp;gt;
&lt;br&gt;&lt;br&gt;and as it happens, if it got past the rule at 3.8.6, then it would be.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26577683.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577365</id>
	<title>Re: Strange line breaks</title>
	<published>2009-11-30T08:18:26Z</published>
	<updated>2009-11-30T08:18:26Z</updated>
	<author>
		<name>Henry S. Thompson</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;MURATA Makoto writes:
&lt;br&gt;&lt;br&gt;&amp;gt; In the 5th edition, quite a few strange line breaks are introduced.
&lt;br&gt;&lt;br&gt;Thanks -- even one example would speed up my effort to fix this. . .
&lt;br&gt;&lt;br&gt;ht
&lt;br&gt;- -- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Henry S. Thompson, School of Informatics, University of Edinburgh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Half-time member of W3C Team
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fax: (44) 131 651-1426, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26577365&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ht@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;http://www.ltg.ed.ac.uk/~ht/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ltg.ed.ac.uk/~ht/&lt;/a&gt;&lt;br&gt;[mail really from me _always_ has this .sig -- mail without it is forged spam]
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.2.6 (GNU/Linux)
&lt;br&gt;&lt;br&gt;iD8DBQFLE/BSkjnJixAXWBoRAkzYAJ0SiCD2zJZcdvAqFpdgAY46WhzxnwCfamid
&lt;br&gt;xPzxOGgL2njcGfF6PUPzN9Y=
&lt;br&gt;=QNsv
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xml-editor-f11762.html&quot; embed=&quot;fixTarget[11762]&quot; target=&quot;_top&quot; &gt;w3.org - xml-editor&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Strange-line-breaks-tp26570140p26577365.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576973</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T07:56:39Z</published>
	<updated>2009-11-30T07:56:39Z</updated>
	<author>
		<name>Bharath Kumar Reddy T</name>
	</author>
	<content type="html">&amp;nbsp;
&lt;br&gt;Hi Michek Kay,
&lt;br&gt;&lt;br&gt;Can you please give me any example for the clause 2 of 3.9.6 as i have not
&lt;br&gt;understood that point clearly.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks and Regards,
&lt;br&gt;Bharath.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On
&lt;br&gt;Behalf Of Michael Kay
&lt;br&gt;Sent: Monday, November 30, 2009 9:12 PM
&lt;br&gt;To: 'bharath'; 'Pete Cordell'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ksrilakshmi@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&lt;br&gt;Look for Schema Component Constraint: Particle Valid (Extension) in 3.9.6.
&lt;br&gt;Clause 2 says that the {term} must be a sequence group (it cannot be choice
&lt;br&gt;or all).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On Behalf Of bharath
&lt;br&gt;&amp;gt; Sent: 30 November 2009 15:23
&lt;br&gt;&amp;gt; To: 'Michael Kay'; 'Pete Cordell'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ksrilakshmi@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Pete Cordell/ Michek Kay
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for your reply. 
&lt;br&gt;&amp;gt; Can you please tell me where I can find this limitation of &amp;lt;all&amp;gt; 
&lt;br&gt;&amp;gt; extension in xml schema specification.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks and Regards,
&lt;br&gt;&amp;gt; Bharath.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On Behalf Of Michael Kay
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 8:41 PM
&lt;br&gt;&amp;gt; To: 'Pete Cordell'; 'bharath'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576973&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I don't believe you are allowed to extend xs:all in XSD 1.0. &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; This has been relaxed in the upcoming 1.1.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Correct (thanks for spotting this, Pete).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; After fixing a couple of typos (bad XML end tags), I get the following 
&lt;br&gt;&amp;gt; from Saxon 9.2 running with -xsdversion:1.0:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Error on line 15 of test.xsd:
&lt;br&gt;&amp;gt; &amp;nbsp; The type DerivedType is defined with xs:all so (in XSD 1.0) it 
&lt;br&gt;&amp;gt; cannot be derived by
&lt;br&gt;&amp;gt; &amp;nbsp; extension from a non-empty type
&lt;br&gt;&amp;gt; Schema processing failed: The schema is invalid
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but with -xsdversion:1.1 I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schema checking successful.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26576973.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576722</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T07:41:32Z</published>
	<updated>2009-11-30T07:41:32Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">Look for Schema Component Constraint: Particle Valid (Extension) in 3.9.6.
&lt;br&gt;Clause 2 says that the {term} must be a sequence group (it cannot be choice
&lt;br&gt;or all).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On Behalf Of bharath
&lt;br&gt;&amp;gt; Sent: 30 November 2009 15:23
&lt;br&gt;&amp;gt; To: 'Michael Kay'; 'Pete Cordell'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ksrilakshmi@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Pete Cordell/ Michek Kay
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for your reply. 
&lt;br&gt;&amp;gt; Can you please tell me where I can find this limitation of 
&lt;br&gt;&amp;gt; &amp;lt;all&amp;gt; extension in xml schema specification.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks and Regards,
&lt;br&gt;&amp;gt; Bharath.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On Behalf Of Michael Kay
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 8:41 PM
&lt;br&gt;&amp;gt; To: 'Pete Cordell'; 'bharath'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576722&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I don't believe you are allowed to extend xs:all in XSD 1.0. &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; This has been relaxed in the upcoming 1.1.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Correct (thanks for spotting this, Pete).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; After fixing a couple of typos (bad XML end tags), I get the 
&lt;br&gt;&amp;gt; following from Saxon 9.2 running with -xsdversion:1.0:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Error on line 15 of test.xsd:
&lt;br&gt;&amp;gt; &amp;nbsp; The type DerivedType is defined with xs:all so (in XSD 1.0) 
&lt;br&gt;&amp;gt; it cannot be derived by
&lt;br&gt;&amp;gt; &amp;nbsp; extension from a non-empty type
&lt;br&gt;&amp;gt; Schema processing failed: The schema is invalid
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but with -xsdversion:1.1 I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schema checking successful.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26576722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576430</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T07:22:49Z</published>
	<updated>2009-11-30T07:22:49Z</updated>
	<author>
		<name>Bharath Kumar Reddy T</name>
	</author>
	<content type="html">Hi Pete Cordell/ Michek Kay
&lt;br&gt;&lt;br&gt;Thanks for your reply. 
&lt;br&gt;Can you please tell me where I can find this limitation of &amp;lt;all&amp;gt; extension
&lt;br&gt;in xml schema specification.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks and Regards,
&lt;br&gt;Bharath.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576430&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] On
&lt;br&gt;Behalf Of Michael Kay
&lt;br&gt;Sent: Monday, November 30, 2009 8:41 PM
&lt;br&gt;To: 'Pete Cordell'; 'bharath'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576430&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576430&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576430&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't believe you are allowed to extend xs:all in XSD 1.0. &amp;nbsp;
&lt;br&gt;&amp;gt; This has been relaxed in the upcoming 1.1.
&lt;br&gt;&lt;br&gt;Correct (thanks for spotting this, Pete).
&lt;br&gt;&lt;br&gt;After fixing a couple of typos (bad XML end tags), I get the following from
&lt;br&gt;Saxon 9.2 running with -xsdversion:1.0:
&lt;br&gt;&lt;br&gt;Error on line 15 of test.xsd:
&lt;br&gt;&amp;nbsp; The type DerivedType is defined with xs:all so (in XSD 1.0) it cannot be
&lt;br&gt;derived by
&lt;br&gt;&amp;nbsp; extension from a non-empty type
&lt;br&gt;Schema processing failed: The schema is invalid
&lt;br&gt;&lt;br&gt;but with -xsdversion:1.1 I get:
&lt;br&gt;&lt;br&gt;Schema checking successful.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26576430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576227</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T07:11:09Z</published>
	<updated>2009-11-30T07:11:09Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't believe you are allowed to extend xs:all in XSD 1.0. &amp;nbsp;
&lt;br&gt;&amp;gt; This has been relaxed in the upcoming 1.1.
&lt;br&gt;&lt;br&gt;Correct (thanks for spotting this, Pete).
&lt;br&gt;&lt;br&gt;After fixing a couple of typos (bad XML end tags), I get the following from
&lt;br&gt;Saxon 9.2 running with -xsdversion:1.0:
&lt;br&gt;&lt;br&gt;Error on line 15 of test.xsd:
&lt;br&gt;&amp;nbsp; The type DerivedType is defined with xs:all so (in XSD 1.0) it cannot be
&lt;br&gt;derived by
&lt;br&gt;&amp;nbsp; extension from a non-empty type
&lt;br&gt;Schema processing failed: The schema is invalid
&lt;br&gt;&lt;br&gt;but with -xsdversion:1.1 I get:
&lt;br&gt;&lt;br&gt;Schema checking successful.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26576227.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575804</id>
	<title>Re: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T06:41:06Z</published>
	<updated>2009-11-30T06:41:06Z</updated>
	<author>
		<name>Pete Cordell-5</name>
	</author>
	<content type="html">I don't believe you are allowed to extend xs:all in XSD 1.0. &amp;nbsp;This has been 
&lt;br&gt;relaxed in the upcoming 1.1.
&lt;br&gt;&lt;br&gt;That said, even by Daniel Veillard's own admission, the XML schema 
&lt;br&gt;processing in libxml2 is patchy, so it's worth trying on another schema 
&lt;br&gt;processor.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Pete Cordell
&lt;br&gt;Codalogic Ltd
&lt;br&gt;Interface XML to C++ the easy way using XML C++
&lt;br&gt;data binding to convert XSD schemas to C++ classes.
&lt;br&gt;Visit &lt;a href=&quot;http://codalogic.com/lmx/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://codalogic.com/lmx/&lt;/a&gt;&amp;nbsp;or &lt;a href=&quot;http://www.xml2cpp.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xml2cpp.com&lt;/a&gt;&lt;br&gt;for more info
&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;bharath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bharathkr@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;'Michael Kay'&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;&amp;gt;; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 30, 2009 2:26 PM
&lt;br&gt;Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi..
&lt;br&gt;&amp;gt; I am getting error in libxml2 as well as altova spy saying that
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;An all modelgroup is neither allowed in complexType definition
&lt;br&gt;&amp;gt; &amp;quot;tns:BaseType&amp;quot; nor in its extension tns: DerivedType&amp;quot;. &amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can you please lookinto this schema whether it is valid or not.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks and Regards,
&lt;br&gt;&amp;gt; Bharath.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; htipl
&lt;br&gt;&amp;gt; HUAWEI TECHNOLOGIES CO.,LTD. &amp;nbsp;huawei_logo
&lt;br&gt;&amp;gt; &amp;lt;file:///C:/Documents%20and%20Settings/b72392/Application%20Data/Microsoft/S
&lt;br&gt;&amp;gt; ignatures/outlook_huawei_logo_en.jpg&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Address: Huawei Industrial Base
&lt;br&gt;&amp;gt; Bantian Longgang
&lt;br&gt;&amp;gt; Shenzhen 518129, P.R.China
&lt;br&gt;&amp;gt; www.huawei.com
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; This e-mail and its attachments contain confidential information from
&lt;br&gt;&amp;gt; HUAWEI, which
&lt;br&gt;&amp;gt; is intended only for the person or entity whose address is listed above. 
&lt;br&gt;&amp;gt; Any
&lt;br&gt;&amp;gt; use of the
&lt;br&gt;&amp;gt; information contained herein in any way (including, but not limited to,
&lt;br&gt;&amp;gt; total or partial
&lt;br&gt;&amp;gt; disclosure, reproduction, or dissemination) by persons other than the
&lt;br&gt;&amp;gt; intended
&lt;br&gt;&amp;gt; recipient(s) is prohibited. If you receive this e-mail in error, please
&lt;br&gt;&amp;gt; notify the sender by
&lt;br&gt;&amp;gt; phone or email immediately and delete it!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;_____
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Michael Kay [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 7:36 PM
&lt;br&gt;&amp;gt; To: 'bharath'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It looks OK to me by visual inspection - I haven't tried running it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Why do you doubt that it's OK?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;_____
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; On
&lt;br&gt;&amp;gt; Behalf Of bharath
&lt;br&gt;&amp;gt; Sent: 30 November 2009 13:55
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575804&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Reg. &amp;lt;all&amp;gt; model group extension
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have one doubt reg. &amp;lt;all&amp;gt; model group extension.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i have the following schema.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;schema targetNamespace=&amp;quot;testschema&amp;quot; xmlns:tns=&amp;quot;testschema&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;complexType name=&amp;quot;BaseType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;all&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a1&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a2&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/all&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;complexType name=&amp;quot;DerivedType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;extension base=&amp;quot;tns:BaseType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;all&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;element name=&amp;quot;a3&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/all&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;extension&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/complexContent&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/schema&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this extension of the &amp;lt;all&amp;gt; model group correct??
&lt;br&gt;&amp;gt; If not please provide me the reason. Please reply me as soon as possible.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks and Regards,
&lt;br&gt;&amp;gt; Bharath.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26575804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575559</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T06:26:03Z</published>
	<updated>2009-11-30T06:26:03Z</updated>
	<author>
		<name>Bharath Kumar Reddy T</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16825&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi..&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;I am getting error in libxml2 as well as altova 
spy&amp;nbsp;saying that &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&quot;An all modelgroup is neither allowed in complexType 
definition &quot;tns:BaseType&quot; nor in its extension tns: 
DerivedType&quot;.&amp;nbsp;&quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Can you please lookinto this schema whether it is valid or 
not.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Thanks and Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=626151714-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Bharath.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;FONT face=Arial color=black size=2&gt;htipl&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=gray size=2&gt;HUAWEI TECHNOLOGIES CO.,LTD. &lt;/FONT&gt;&lt;IMG id=ridImg alt=huawei_logo hspace=0 src=&quot;file:///C:/Documents%20and%20Settings/b72392/Application%20Data/Microsoft/Signatures/outlook_huawei_logo_en.jpg&quot; align=left&gt; 
&lt;P&gt;&lt;/P&gt;&lt;BR&gt;&lt;FONT face=Arial color=gray size=1&gt;Address: Huawei Industrial 
Base&lt;BR&gt;Bantian Longgang&lt;BR&gt;Shenzhen 518129, 
P.R.China&lt;BR&gt;www.huawei.com&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=gray size=1&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;BR&gt;This 
e-mail and its attachments contain confidential information from HUAWEI, which 
&lt;BR&gt;is intended only for the person or entity whose address is listed above. Any 
use of the &lt;BR&gt;information contained herein in any way (including, but not 
limited to, total or partial &lt;BR&gt;disclosure, reproduction, or dissemination) by 
persons other than the intended &lt;BR&gt;recipient(s) is prohibited. If you receive 
this e-mail in error, please notify the sender by &lt;BR&gt;phone or email immediately 
and delete it!&lt;BR&gt;&lt;/FONT&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Michael Kay [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;] 
&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Monday, November 30, 2009 7:36 PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 'bharath'; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; RE: Reg. &amp;lt;all&amp;gt; model group 
extension&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;It looks OK to me by visual inspection - I haven't tried 
running it.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Why do you doubt that it's OK?&lt;!-- Converted from text/plain format --&gt; 
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] &lt;B&gt;On Behalf Of 
  &lt;/B&gt;bharath&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 30 November 2009 13:55&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575559&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Reg. &amp;lt;all&amp;gt; model group 
  extension&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Hi 
  All,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;I have one doubt 
  reg. &amp;lt;all&amp;gt; model group extension.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;i&amp;nbsp;have the 
  following schema. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;schema targetNamespace=&quot;testschema&quot; 
  xmlns:tns=&quot;testschema&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;complexType 
  name=&quot;BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a1&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=+0&gt;&lt;SPAN class=617594113-30112009&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a2&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;&amp;lt;complexType 
name=&quot;DerivedType&quot;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;extension&amp;nbsp;base=&quot;tns:BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a3&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;extension&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;/schema&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Is this extension 
  of the &amp;lt;all&amp;gt; model group&amp;nbsp;correct?? &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;If not please 
  provide me the reason. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Please reply me as soon as 
  possible.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Thanks and 
  Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Bharath.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26575559.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575304</id>
	<title>RE: Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T06:06:16Z</published>
	<updated>2009-11-30T06:06:16Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;It looks OK to me by visual inspection - I haven't tried 
running it.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Why do you doubt that it's OK?&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=297240514-30112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575304&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt; 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575304&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev-request@...&lt;/a&gt;] &lt;B&gt;On Behalf Of 
  &lt;/B&gt;bharath&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 30 November 2009 13:55&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575304&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575304&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rajithr@...&lt;/a&gt;; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575304&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arathikarki@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Reg. &amp;lt;all&amp;gt; model group 
  extension&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;Hi 
  All,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;I have one doubt 
  reg. &amp;lt;all&amp;gt; model group extension.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;i&amp;nbsp;have the 
  following schema. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;schema targetNamespace=&quot;testschema&quot; 
  xmlns:tns=&quot;testschema&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;complexType 
  name=&quot;BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a1&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=+0&gt;&lt;SPAN class=617594113-30112009&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a2&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;&amp;lt;complexType 
name=&quot;DerivedType&quot;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;extension&amp;nbsp;base=&quot;tns:BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;element name=&quot;a3&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;extension&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#008000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;/schema&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT color=#ff0000 size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;Is this extension 
  of the &amp;lt;all&amp;gt; model group&amp;nbsp;correct?? &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;If not please 
  provide me the reason. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;Please reply me as soon as 
  possible.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;Thanks and 
  Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=617594113-30112009&gt;Bharath.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26575304.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575157</id>
	<title>Reg. &lt;all&gt; model group extension</title>
	<published>2009-11-30T05:55:20Z</published>
	<updated>2009-11-30T05:55:20Z</updated>
	<author>
		<name>Bharath Kumar Reddy T</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16825&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Hi 
All,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;I have one doubt 
reg. &amp;lt;all&amp;gt; model group extension.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;i&amp;nbsp;have the 
following schema. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;schema targetNamespace=&quot;testschema&quot; 
xmlns:tns=&quot;testschema&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;complexType 
name=&quot;BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;element name=&quot;a1&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;&lt;SPAN class=617594113-30112009&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;element name=&quot;a2&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;&amp;lt;complexType 
name=&quot;DerivedType&quot;&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;extension&amp;nbsp;base=&quot;tns:BaseType&quot;&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;element name=&quot;a3&quot; type=&quot;string&quot;/&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/all&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;extension&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#008000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/complexContent&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;complexType&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&amp;lt;/schema&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial color=#ff0000 size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Is this extension of 
the &amp;lt;all&amp;gt; model group&amp;nbsp;correct?? &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;If not please 
provide me the reason. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Please reply me as soon as 
possible.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Thanks and 
Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN class=617594113-30112009&gt;Bharath.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reg.-%3Call%3E-model-group-extension-tp26575157p26575157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26570140</id>
	<title>Strange line breaks</title>
	<published>2009-11-29T22:30:15Z</published>
	<updated>2009-11-29T22:30:15Z</updated>
	<author>
		<name>MURATA Makoto (FAMILY Given)</name>
	</author>
	<content type="html">In the 5th edition, quite a few strange line breaks are introduced.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Makoto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570140&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;EB2M-MRT@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xml-editor-f11762.html&quot; embed=&quot;fixTarget[11762]&quot; target=&quot;_top&quot; &gt;w3.org - xml-editor&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Strange-line-breaks-tp26570140p26570140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424066</id>
	<title>[ANN] Python XML Schema Bindings 1.0.0</title>
	<published>2009-11-18T16:03:52Z</published>
	<updated>2009-11-18T16:03:52Z</updated>
	<author>
		<name>Peter A. Bigot</name>
	</author>
	<content type="html">(If the maintainer of &lt;a href=&quot;http://www.w3.org/XML/Schema#Tools&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/XML/Schema#Tools&lt;/a&gt;&amp;nbsp;would be so 
&lt;br&gt;kind as to add the link to PyXB's home page, I'd appreciate it. &amp;nbsp;Thanks.)
&lt;br&gt;&lt;br&gt;PyXB version 1.0.0 is now available from SourceForge at: 
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/projects/pyxb/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/projects/pyxb/&lt;/a&gt;&lt;br&gt;&lt;br&gt;PyXB (Python XML Schema Bindings; &amp;quot;pixbee&amp;quot;) is a pure Python package 
&lt;br&gt;that generates Python source code for classes that correspond to data 
&lt;br&gt;structures defined by XMLSchema. &amp;nbsp;In concept it is similar to JAXB for 
&lt;br&gt;Java and CodeSynthesis XSD for C++. &amp;nbsp;The current release supports XML 
&lt;br&gt;Schema 1.0.
&lt;br&gt;&lt;br&gt;Version 1.0.0 is feature-complete and suitable for production 
&lt;br&gt;development where validation of incoming and generated documents is 
&lt;br&gt;desired. &amp;nbsp;The following schema constructs are supported:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;* Class constants corresponding to string enumeration constraints
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Simple and complex type definitions
&lt;br&gt;&amp;nbsp; &amp;nbsp;* List and union datatypes
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Constraints on (simple) datatypes (e.g., minInclusive, length)
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Model groups and attribute groups
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Complex content models (all, sequence, choice); minOccurs and 
&lt;br&gt;maxOccurs
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Abstract types, xsi:type, substitution groups
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Nillable elements with xsi:nil
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Namespace qualified attributes and elements
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Documentation annotations present in the schema are converted to 
&lt;br&gt;Python docstrings in the generated bindings.
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Pattern constraints (as long as the simple type derives from 
&lt;br&gt;something that is represented as a Python string)
&lt;br&gt;&lt;br&gt;The full distribution includes generated bindings for twenty-three 
&lt;br&gt;namespaces related to web services (including several versions of SOAP 
&lt;br&gt;and WSDL), and twenty-eight namespaces from the Open Geospatial 
&lt;br&gt;Consortium's Geographic Information System schema.
&lt;br&gt;&lt;br&gt;For further information and links to the support forum and mailing list, 
&lt;br&gt;please consult the documentation available at: &lt;a href=&quot;http://pyxb.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pyxb.sourceforge.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Python-XML-Schema-Bindings-1.0.0-tp26424066p26424066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26415218</id>
	<title>A plea to XSD 1.1 vendors: provide a &quot;switch&quot; to turn on/off  vendor-unique extensions</title>
	<published>2009-11-18T12:29:49Z</published>
	<updated>2009-11-18T12:29:49Z</updated>
	<author>
		<name>Roger Costello</name>
	</author>
	<content type="html">&lt;br&gt;Hi Folks,
&lt;br&gt;&lt;br&gt;In XSD 1.1 vendors are allowed to extend the language with additional (vendor-unique) datatypes and facets. 
&lt;br&gt;&lt;br&gt;Example: In some countries the decimal point symbol is the comma; so a vendor may provide a new decimal datatype and a new facet for specifying the decimal point symbol:
&lt;br&gt;&lt;br&gt;&amp;lt;xs:simpleType name=&amp;quot;money&amp;quot;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:restriction base=&amp;quot;vendor:decimal&amp;quot;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;vendor:delimiter value=&amp;quot;,&amp;quot; /&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:restriction&amp;gt;
&lt;br&gt;&amp;lt;/xs:simpleType&amp;gt;
&lt;br&gt;&lt;br&gt;This is very useful. 
&lt;br&gt;&lt;br&gt;However, this capability represents an uncertainty in what things are in the language (&amp;quot;If you're using this XSD 1.1 tool then these x,y,z things are in the language, if you're using that XSD 1.1 tool then these a,b,c things are in the language&amp;quot;). For some of my clients:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uncertainty = risk
&lt;br&gt;&lt;br&gt;For those clients, risk must be mitigated.
&lt;br&gt;&lt;br&gt;Thus, I issue a plea to all XSD 1.1 vendors: please provide a switch to turn on/off vendor-unique extensions. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I believe that providing a switch to turn on/off vendor-unique extension will give vendors a market advantage.
&lt;br&gt;&lt;br&gt;Thanks for your time.
&lt;br&gt;&lt;br&gt;/Roger
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-plea-to-XSD-1.1-vendors%3A-provide-a-%22switch%22-to-turn-on-off--vendor-unique-extensions-tp26415218p26415218.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404908</id>
	<title>possibly unsignificant error</title>
	<published>2009-11-17T02:45:32Z</published>
	<updated>2009-11-17T02:45:32Z</updated>
	<author>
		<name>Razrulin Ivan</name>
	</author>
	<content type="html">when i check page
&lt;br&gt;&lt;a href=&quot;http://www.w3.org/TR/2008/REC-xml-20081126/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2008/REC-xml-20081126/&lt;/a&gt;&lt;br&gt;with &amp;nbsp;Tidi checker I get some warnings
&lt;br&gt;and info messages
&lt;br&gt;Doctype given is &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;
&lt;br&gt;Document content looks like XHTML 1.0 Strict
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xml-editor-f11762.html&quot; embed=&quot;fixTarget[11762]&quot; target=&quot;_top&quot; &gt;w3.org - xml-editor&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/possibly-unsignificant-error-tp26404908p26404908.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26302749</id>
	<title>Re: Naming in Override Constraints and Semantics</title>
	<published>2009-11-11T07:02:12Z</published>
	<updated>2009-11-11T07:02:12Z</updated>
	<author>
		<name>Pete Cordell-5</name>
	</author>
	<content type="html">Thanks Henry. &amp;nbsp;Just done.
&lt;br&gt;&lt;br&gt;As I know the WG is not looking for extra work I thought I'd post to the 
&lt;br&gt;public list so that members have a low procedure way to object to the 
&lt;br&gt;comment if I've really missed the point! &amp;nbsp;That said, I think it's a simple 
&lt;br&gt;and useful change to make.
&lt;br&gt;&lt;br&gt;Thanks again,
&lt;br&gt;&lt;br&gt;Pete.
&lt;br&gt;--
&lt;br&gt;=============================================
&lt;br&gt;Pete Cordell
&lt;br&gt;Codalogic Ltd
&lt;br&gt;Interface XML to C++ the easy way using XML C++
&lt;br&gt;data binding to convert XSD schemas to C++ classes.
&lt;br&gt;Visit &lt;a href=&quot;http://codalogic.com/lmx/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://codalogic.com/lmx/&lt;/a&gt;&amp;nbsp;or &lt;a href=&quot;http://www.xml2cpp.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xml2cpp.com&lt;/a&gt;&lt;br&gt;for more info
&lt;br&gt;=============================================
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Henry S. Thompson&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26302749&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ht@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;Pete Cordell&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26302749&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;petexmldev@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26302749&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xmlschema-dev@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Wednesday, November 11, 2009 9:40 AM
&lt;br&gt;Subject: Re: Naming in Override Constraints and Semantics
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Requests for changes to the spec should go to
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26302749&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www-xml-schema-comments@...&lt;/a&gt; or into Buzilla -- they may get
&lt;br&gt;overlooked if they are only sent here.
&lt;br&gt;&lt;br&gt;I'd suggest you reduce the length of your requested new names, to,
&lt;br&gt;say, Dold and Dnew. . .
&lt;br&gt;&lt;br&gt;ht
&lt;br&gt;- -- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Henry S. Thompson, School of Informatics, University of Edinburgh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Half-time member of W3C Team
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fax: (44) 131 651-1426, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26302749&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ht@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;http://www.ltg.ed.ac.uk/~ht/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ltg.ed.ac.uk/~ht/&lt;/a&gt;&lt;br&gt;[mail really from me _always_ has this .sig -- mail without it is forged 
&lt;br&gt;spam]
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.2.6 (GNU/Linux)
&lt;br&gt;&lt;br&gt;iD8DBQFK+oaRkjnJixAXWBoRAjCyAJ9xWKNKnDOdCgsVHifHkSH+r5oDdwCcCsMy
&lt;br&gt;6PycvCIKjDgwQwoHHLQRtSM=
&lt;br&gt;=045d
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Naming-in-Override-Constraints-and-Semantics-tp26288290p26302749.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26298563</id>
	<title>Re: Naming in Override Constraints and Semantics</title>
	<published>2009-11-11T01:40:29Z</published>
	<updated>2009-11-11T01:40:29Z</updated>
	<author>
		<name>Henry S. Thompson</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Requests for changes to the spec should go to
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298563&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www-xml-schema-comments@...&lt;/a&gt; or into Buzilla -- they may get
&lt;br&gt;overlooked if they are only sent here.
&lt;br&gt;&lt;br&gt;I'd suggest you reduce the length of your requested new names, to,
&lt;br&gt;say, Dold and Dnew. . .
&lt;br&gt;&lt;br&gt;ht
&lt;br&gt;- -- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Henry S. Thompson, School of Informatics, University of Edinburgh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Half-time member of W3C Team
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fax: (44) 131 651-1426, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298563&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ht@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;http://www.ltg.ed.ac.uk/~ht/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ltg.ed.ac.uk/~ht/&lt;/a&gt;&lt;br&gt;[mail really from me _always_ has this .sig -- mail without it is forged spam]
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.2.6 (GNU/Linux)
&lt;br&gt;&lt;br&gt;iD8DBQFK+oaRkjnJixAXWBoRAjCyAJ9xWKNKnDOdCgsVHifHkSH+r5oDdwCcCsMy
&lt;br&gt;6PycvCIKjDgwQwoHHLQRtSM=
&lt;br&gt;=045d
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Naming-in-Override-Constraints-and-Semantics-tp26288290p26298563.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26288290</id>
	<title>Naming in Override Constraints and Semantics</title>
	<published>2009-11-10T09:57:56Z</published>
	<updated>2009-11-10T09:57:56Z</updated>
	<author>
		<name>Pete Cordell-5</name>
	</author>
	<content type="html">In &amp;quot;Schema Representation Constraint: Override Constraints and Semantics&amp;quot;, 
&lt;br&gt;is there any chance that:
&lt;br&gt;&lt;br&gt;- D1 could be changed to Doverridden and
&lt;br&gt;- D2 could be changed to Doverriding?
&lt;br&gt;&lt;br&gt;Then:
&lt;br&gt;&lt;br&gt;2 One of the following must be true:
&lt;br&gt;2.1 D2 has a targetNamespace [attribute], and its ·actual value· is 
&lt;br&gt;identical to the ·actual value· of the targetNamespace [attribute] of D1 
&lt;br&gt;(which must have such an [attribute]).
&lt;br&gt;2.2 Neither D2 nor D1 have a targetNamespace [attribute].
&lt;br&gt;2.3 D2 has no targetNamespace [attribute] (but D1 does).
&lt;br&gt;&lt;br&gt;becomes:
&lt;br&gt;&lt;br&gt;2 One of the following must be true:
&lt;br&gt;2.1 Doverriding has a targetNamespace [attribute], and its ·actual value· is 
&lt;br&gt;identical to the ·actual value· of the targetNamespace [attribute] of 
&lt;br&gt;Doverridden (which must have such an [attribute]).
&lt;br&gt;2.2 Neither Doverriding nor Doverridden have a targetNamespace [attribute].
&lt;br&gt;2.3 Doverriding has no targetNamespace [attribute] (but Doverridden does).
&lt;br&gt;&lt;br&gt;This is a lot easier on the old brain!
&lt;br&gt;&lt;br&gt;There are possibly similar name changes that could be made that would make 
&lt;br&gt;the life of the reader much easier.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Pete.
&lt;br&gt;--
&lt;br&gt;=============================================
&lt;br&gt;Pete Cordell
&lt;br&gt;Codalogic Ltd
&lt;br&gt;Interface XML to C++ the easy way using XML C++
&lt;br&gt;data binding to convert XSD schemas to C++ classes.
&lt;br&gt;Visit &lt;a href=&quot;http://codalogic.com/lmx/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://codalogic.com/lmx/&lt;/a&gt;&amp;nbsp;or &lt;a href=&quot;http://www.xml2cpp.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xml2cpp.com&lt;/a&gt;&lt;br&gt;for more info
&lt;br&gt;=============================================
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---xmlschema-dev-f11764.html&quot; embed=&quot;fixTarget[11764]&quot; target=&quot;_top&quot; &gt;w3.org - xmlschema-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Naming-in-Override-Constraints-and-Semantics-tp26288290p26288290.html" />
</entry>

</feed>
