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

Re: Recursive import/include/redefine

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Mon, 7 Oct 2002 17:45:44 +0200 (MEST)
To: ht@cogsci.ed.ac.uk;xmlschema-dev@w3.org; (Henry S. Thompson);
Message-ID: <29695.1034005544@www44.gmx.net>

I thought that

<redfine schemaLocation="b.xsd"/>

is equal to 

<include schemaLocation="b.xsd"/>

i.e. all components contained in a redefined schema can be accessed
regardless if they are actually redefined.

--Stefan


> 
> "Lemmin, Harald" <Harald.Lemmin@softwareag.com> writes:
> 
> > as I read from the archives, import does not works recursive:
> > a imports b imports c does not mean: a imports c.
> 
> That's right -- import is primarily about establishing the legitimacy
> of referencing components from other that the target namespace.  For
> that purpose, transitivity would not be helpful.
> 
> > Include can be recursive:
> > a includes b includes c means: a includes b and c ("compound schema").
> 
> Yes.
> 
> > Now the questions:
> 
> > (1) redefine:
> > a redefines b redefines c means: every item that is redefined by a may
> be
> > used in a and this item may be previously redefined by b from c. But
> what
> > has not been redefined by a cannot be used in a.
> 
> Right, I think.
> 
> > (2) redefine / include:
> > a includes b redefines c means: a is assembled from itself, the global
> > element/types of b and from the redefinitions done in b.
> > 
> > Am I right?
> 
> Again, yes, I believe so.
> 
> Remember that appearances to the contrary notwithstanding, include,
> import and redefine are all about schemas and their components, not
> about documents.
> 
> ht
> -- 
>   Henry S. Thompson, HCRC Language Technology Group, University of
> Edinburgh
>           W3C Fellow 1999--2002, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
> 	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
> 		     URL: http://www.ltg.ed.ac.uk/~ht/
>  [mail really from me _always_ has this .sig -- mail without it is forged
> spam]
> 
Received on Monday, 7 October 2002 11:46:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT