This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to import 2 xsd's which have same namespace?

 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a xsd (schema1.xsd) which refers to elements from two other xsd's. schema1.xsd is as follows

As can be seen the 2 imported xsd's have the same namespace. element2 is present within schema2.xsd and element3 is present within schema3.xsd. With the above xsd I get the following error: src-resolve: Cannot resolve the name 'typ:element3' to a(n) 'element declaration' component.

I have come up with a workaround by introducing a fourth schema. now schema1.xsd is as follows:

schema4.xsd is as follows:

Does anyone know of a better solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic