<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16912</id>
	<title>Nabble - w3.org - public-xml-processing-model-wg</title>
	<updated>2007-04-12T03:33:32Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/w3.org---public-xml-processing-model-wg-f16912.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/w3.org---public-xml-processing-model-wg-f16912.html" />
	<subtitle type="html">This is a discussion forum for the XML Processing Model Working Group.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-9956039</id>
	<title>problem in xml schema validation</title>
	<published>2007-04-12T03:33:32Z</published>
	<updated>2007-04-12T03:33:32Z</updated>
	<author>
		<name>nandana</name>
	</author>
	<content type="html">hi, 
&lt;br&gt;&lt;br&gt;while creating the below part of the xsd, I'm getting errors: 
&lt;br&gt;&lt;br&gt;&amp;lt;xs:element name=&amp;quot;HealthState&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:complexType&amp;gt; 
&lt;br&gt;&amp;lt;xs:simpleContent&amp;gt; 
&lt;br&gt;&amp;lt;xs:restriction base=&amp;quot;cim:cimUnsignedShort&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;xs:union&amp;gt; 
&lt;br&gt;&amp;lt;xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;xs:restriction base=&amp;quot;xs:unsignedShort&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;0&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;5&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;10&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;15&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;20&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;25&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;xs:enumeration value=&amp;quot;30&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/xs:restriction&amp;gt; 
&lt;br&gt;&amp;lt;/xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;xs:restriction base=&amp;quot;xs:unsignedShort&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:minInclusive value=&amp;quot;31&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/xs:restriction&amp;gt; 
&lt;br&gt;&amp;lt;/xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;/xs:union&amp;gt; 
&lt;br&gt;&amp;lt;/xs:simpleType&amp;gt; 
&lt;br&gt;&amp;lt;/xs:restriction&amp;gt; 
&lt;br&gt;&amp;lt;/xs:simpleContent&amp;gt; 
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt; 
&lt;br&gt;&amp;lt;/xs:element&amp;gt; 
&lt;br&gt;&lt;br&gt;where, the definition for cim:cimUnsignedShort is as follows in another xsd.: 
&lt;br&gt;&lt;br&gt;&amp;lt;xs:complexType name=&amp;quot;cimUnsignedShort&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:simpleContent&amp;gt; 
&lt;br&gt;&amp;lt;xs:extension base=&amp;quot;xs:unsignedShort&amp;quot;&amp;gt; 
&lt;br&gt;&amp;lt;xs:anyAttribute namespace=&amp;quot;##any&amp;quot; processContents=&amp;quot;lax&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/xs:extension&amp;gt; 
&lt;br&gt;&amp;lt;/xs:simpleContent&amp;gt; 
&lt;br&gt;&amp;lt;/xs:complexType&amp;gt; 
&lt;br&gt;&lt;br&gt;Im getting the following error while validating: 
&lt;br&gt;&lt;br&gt;Type '{anonymous}' is not a valid restriction of type 'cim:cimUnsignedShort'. 
&lt;br&gt;Error location: xs:schema / xs:element / xs:complexType / xs:simpleContent / xs:restriction / @base 
&lt;br&gt;derivation-ok-restriction.5.2: The simple type definition '{anonymous}' is not a valid restriction of the base type definition's content type 'xs:unsignedShort'. 
&lt;br&gt;&lt;br&gt;Please help me understand the problem. 
&lt;br&gt;&lt;br&gt;thanks in advance. 
&lt;br&gt;&lt;br&gt;Nandan.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-in-xml-schema-validation-tp9956039p9956039.html" />
</entry>

</feed>
