Question regarding xsd:include

Hi

I was just wondering...
	
Suppose you have a schema "basetypes.xsd", and two schemas
"customer.xsd" and "product.xsd", both of which include the basetypes
from "basetypes.xsd" using the xsd:include element.

Now you want to create an "order.xsd" schema which includes both
"customer.xsd" and "product.xsd".

This schema would declare the basetypes of "basetypes.xsd" twice.

Are there any means of avoiding this? Perhaps a "#if defined"-ish directive?
Or just a "best-practice" that I haven't been able to find. Otherwise you
would never safely be able to build a tree deeper that 2 levels...




Regards


Mikkel Rasmussen
mpr@Webpartner.dk

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.497 / Virus Database: 296 - Release Date: 04-07-2003
  

Received on Wednesday, 30 July 2003 18:49:46 UTC