OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   xml schema error when deriving by extension

[ Lists Home | Date Index | Thread Index ]
  • To: xml dev <xml-dev@lists.xml.org>
  • Subject: xml schema error when deriving by extension
  • From: Anil Philip <goodnewsforyou@yahoo.com>
  • Date: Mon, 27 Feb 2006 14:55:10 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gYYpec8KkpgsJWd9wpvIymaLRTcclju9E1r5xdd+7ReCD3WI/8jW304W0E/9wVoDJCQKT20PoEzQy13mWsRqoECxbIfGEdrEnF6jNjHpuzY30JbsX+YuJx9jQPGIlZwP3a7tQ6N1eg+vnb3mEnO2QcU12x0EfY+KKMi8S6AAnIU= ;
  • In-reply-to: <43F357AC.1040507@allette.com.au>

I am trying to derive from an existing type by
However I get the following error during validation in
"An 'all' model group is neither allowed in complex
type 'NodeType' nor in its extension

Where I have a tree of nodes consisting of

<xs:element name="AbcNode" type="NodeType"/>
<xs:complexType name="NodeType">
  <xs:element name="childNodes" type="ListOfNodes"/>
  <xs:element name="title" type="LocalSnippet"/>
 <xs:attribute name="id" type="xs:int"

I would like RemoteNodeType to extend NodeType and
contain two extra fields, url and id.

So I did:

<xs:element name="RemoteNode" type="RemoteNodeType"/>
  <xs:complexType name="RemoteNodeType">
      <xs:extension base="NodeType">
 		<xs:element name="remoteNodeUrl"
		<xs:element name="remoteNodeId" type="xs:int"/>

  However I get the error as above. I would really
appreciate any help since I am stumped. I
  went through the W3C XML Schema Primer, but could
not fix it.
Anil Philip

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS