W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

RE: Merging schemas

From: Rich Adili <Rich.Adili@xata.com>
Date: Fri, 17 Aug 2007 07:55:07 -0500
Message-ID: <A0340B4A1C76734798D48BF3F09C6206304255@EXCHVS01.xata.com>
To: "Michael Kay" <mike@saxonica.com>, <xmlschema-dev@w3.org>
Well, neither schema is aware of the hierarchical relationship.



From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Friday, August 17, 2007 7:51 AM
To: Rich Adili; xmlschema-dev@w3.org
Subject: RE: Merging schemas


Unless there's an overlap between the schemas, can't you just combine
them using



  <xs:include schemaLocation="schemaA.xsd"/>

  <xs:include schemaLocation="schemaB.xsd"/>



Or have I missed the point?


Michael Kay





	From: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org] On Behalf Of Rich Adili
	Sent: 17 August 2007 13:00
	To: xmlschema-dev@w3.org
	Subject: Merging schemas

	Hi all,

	I have to deal with some legacy XML that resembles the example
snippet below. For historical reasons they've split the thing in two.
The outer bit is in schema A and the inner bit is encoded as text and
represented by schema B. (schema A simply defines the DataWrapperNode as
a trivial element).


	I would like to run this thing through a code generator and what
I need as output is code representing the union of the two. Does this
problem have an elegant solution?

Received on Friday, 17 August 2007 12:55:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:43 UTC