[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Merging schemas

From: Michael Kay <mike@saxonica.com>
Date: Fri, 17 Aug 2007 14:01:40 +0100
To: "'Rich Adili'" <Rich.Adili@xata.com>, <xmlschema-dev@w3.org>
Message-ID: <012601c7e0ce$c1176850$9a09010a@turtle>
RE: Merging schemas
Well, at the moment there isn't a hierarchical relationship?
 
I think you're saying you want to modify the definition of DataWrapperNode
so that instead of containing a string it contains a DataNode. That sounds
like a simple text edit to me.
 
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:55
To: Michael Kay; xmlschema-dev@w3.org
Subject: RE: Merging schemas



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: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 13:01:44 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.