W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

Re: abstract elements and late binding namespaces

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Fri, 14 Jun 2002 10:25:47 +1000
Message-ID: <3D09380B.30502@allette.com.au>
To: Eddie Robertsson <erobertsson@allette.com.au>
CC: Naomi Dushay <Naomi@cs.cornell.edu>, xmlschema-dev@w3.org

> Here is the first errors. What you have done by including a schema 
> with no namespace into a schema with a namespace is something that is 
> called a 'Chameleon' include (see [1] for more details). What this 
> means is that you bring in all the components of the included schema 
> to the namespace of the including schema. So, in the above element 
> declaration you have declared that the header and record element 
> should be in the substitutionGroup of abstractHeader and 
> abstractRecord respectively. The problem is that abstractHeader and 
> abstractRecord now have the namespace "http://the.namespace" just like 
> your other components so you need to reference them using the TNS 
> prefix. The following should do the trick: 

Sorry, forgot the link...


[1] http://www.xfront.com/ZeroOneOrManyNamespaces.pdf
Received on Thursday, 13 June 2002 20:12:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC