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

RE: Merging schemas

From: Michael Kay <mike@saxonica.com>
Date: Fri, 17 Aug 2007 13:50:54 +0100
To: "'Rich Adili'" <Rich.Adili@xata.com>, <xmlschema-dev@w3.org>
Message-ID: <011701c7e0cd$40616270$9a09010a@turtle>
Unless there's an overlap between the schemas, can't you just combine them
using
 
<xs:schema>
  <xs:include schemaLocation="schemaA.xsd"/>
  <xs:include schemaLocation="schemaB.xsd"/>
</xs:schema>
 
Or have I missed the point?
 
Michael Kay
http://www.saxonica.com/
 


  _____  

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).

<DataWrapperNode>&lt;DataNode&gt;yadyada&lt;/DataNode&gt;</DataWrapperNode>

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?



Rich
Received on Friday, 17 August 2007 12:51:08 GMT

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