Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Merging schemas

From: "Rich Adili" <Rich.Adili@----.--->
To: "Michael Kay" <mike@--------.--->, <xmlschema-dev@--.--->
Date: 8/17/2007 3:21:00 AM
I have to deal with a server that emits the example XML as-is (inner
node converted to text), I can't change it. I guess what I wanted was a
way to express the relationship without modifying either schema, perhaps
by creating a third. Doesn't look feasible.

 

________________________________

From: Michael Kay [mailto:mike@s...] 
Sent: Friday, August 17, 2007 8:02 AM
To: Rich Adili; xmlschema-dev@w...
Subject: 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/

	 

=09
________________________________


	From: xmlschema-dev-request@w...
[mailto:xmlschema-dev-request@w...] On Behalf Of Rich Adili
	Sent: 17 August 2007 13:55
	To: Michael Kay; xmlschema-dev@w...
	Subject: RE: Merging schemas

	Well, neither schema is aware of the hierarchical relationship.

	 

=09
________________________________


	From: Michael Kay [mailto:mike@s...] 
	Sent: Friday, August 17, 2007 7:51 AM
	To: Rich Adili; xmlschema-dev@w...
	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/

	 

		 

	=09
________________________________


		From: xmlschema-dev-request@w...
[mailto:xmlschema-dev-request@w...] On Behalf Of Rich Adili
		Sent: 17 August 2007 13:00
		To: xmlschema-dev@w...
		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).

=09
<DataWrapperNode>&lt;DataNode&gt;yadyada&lt;/DataNode&gt;</DataWrapperNo
de>

		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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent