Book a Demo

Author Topic: XSD include  (Read 3623 times)

patfada

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
XSD include
« on: January 23, 2007, 06:04:50 pm »
Hi - I am trying to get EA to generate an XSD which includes another XSD - but I cant get it to work. As a test I have two packages with the <<XSDSchema>> stereotype - one which has an address<<XSDComplexType>> stereotype , another which has a client<XSDComplexType>> which has an attribute of type address.


The doc says
"an import or include element is created for each referenced package. (An include element is used if the external package shares the same targetNamespace tagged value as the target package. An import element is used where the targetNamespaces differ"

I can get it it to generate an import element by giving the packages different targetNamespace values, but if I set the
targetNamespace values I dont get an include element

Anybody been able to get this feature to work?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: XSD include
« Reply #1 on: January 24, 2007, 06:04:06 am »
Quote
I can get it it to generate an import element by giving the packages different targetNamespace values, but if I set the
targetNamespace values I dont get an include element

I'm not quite sure what you mean here. Are you saying that this fails if you set the targetNamespace values to the same value?
No, you can't have it!

patfada

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: XSD include
« Reply #2 on: January 24, 2007, 12:09:57 pm »
Sorry - the original post should have said
"but if I set the  targetNamespace values *to be the same* I dont get an include element "

- it doesnt fail completely - it still generates an XSD, but not with an an include element (or an import)
« Last Edit: January 24, 2007, 12:12:56 pm by patfada »