Connecting Tech Pros Worldwide Forums | Help | Site Map

XSD redefine question

Newbie
 
Join Date: Oct 2006
Posts: 1
#1: Oct 16 '06
Hi!
I don't know if this is right place to ask, but I tryed many places and still don't have an answer :-(

I have application that uses complex XSD schemas. Also some elements & types can be customized by end user.

We using something like:

--------- s1.xsd ---------
sometypes
-----------------------------

-------- s2.xsd ---------
redefine of s1.xsd
<!-- end user ads here some customization -->
----------------------------

-------- s3.xsd --------
include s2.xsd
<!-- actual elements here -->
--------------------------

So the application uses customized version of elements. But we can't break cycle in following schema:

--------------------

<xsd:complexType name="customerType">
<xsd:sequence>
<xsd:element name="rootCustomer" ref="customer"/>
<!-- ... -->
</xsd:sequence>
</xsd:complexType>

<xsd:element name="customer" type="customerType"/>

--------------------
So the question: how to implement end user customization for this case?

Reply