W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2003

Question regarding xsd:include

From: Mikkel Porse Rasmussen <mpr@webpartner.dk>
Date: Wed, 30 Jul 2003 16:49:11 -0600
Message-Id: <5.1.0.14.1.20030730164909.02eb70f8@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:00 UTC