Book a Demo

Author Topic: EAModel.image used but not declared in DTD/Schema  (Read 5761 times)

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
EAModel.image used but not declared in DTD/Schema
« on: June 10, 2009, 09:30:16 am »
Hello all,

I exported a package and selected 'Use DTD' and also 'Export Alternate Images'.

When I try and import the exported .XMI into another EAP file I get this error:




If I open the .XML file I see that EAModel.image appears to contain a list of all the Images that I've set as 'Alternate Images':





If I deselect the 'Export Alternate Images' option on Export, this problem goes away, but none of my Screen elements retain their Alternate Images (which they must).

If I deselect the 'Use DTD' on Export the problem goes away, but none of the Alternate Image are retained either.

Any ideas how to fix this please?  Bottom line I need to retain elements' Alternate Images when exporting from one EAP and importing into another.

Thanks.

<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EAModel.image used but not declared in DTD/Sch
« Reply #1 on: June 11, 2009, 09:17:07 am »
Please contact Sparx Systems support directly with your question.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: EAModel.image used but not declared in DTD/Sch
« Reply #2 on: June 11, 2009, 09:31:58 am »
Please keep us in the loop Dorian. This one sounds a bit worrisome.

David
No, you can't have it!

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: EAModel.image used but not declared in DTD/Sch
« Reply #3 on: June 11, 2009, 09:44:32 am »
Response from Sparx below.  I was wrong; deselecting the 'Use DTD' option when exporting did fix the problem.  Phew.


When you export to XMI, the "Export Package to XMI" dialog has an option
called "Use DTD". When this option is checked and if you are exporting
to XMI 1.1, EA will insert "<!DOCTYPE XMI SYSTEM "UML_EA.dtd">" as the
second line of the XMI file. What this means is that the exported XMI
file should adhere to the rules specified in "UML_EA.dtd". Now, when you
import this XMI file, the XML Parser will validate the XMI file against
the DTD file to see if the XMI file adheres to the DTD. If not, it will
throw an error message.

Now "UML_EA.dtd" is the OMG specified DTD for XMI 1.1 along with EA
specific extensions. EA uses the element "EAModel.image" to round-trip
alternate-image details in XMI 1.1. This is not a standard element
defined in the OMG XMI 1.1 DTD - this is an EA custom-defined element
and this element has not yet been updated in the DTD. Hence the error
when importing the XMI back into EA.

To work-around this issue :
* un-check the option "Use DTD" in the "Export Package to XMI" dialog
when exporting to XMI 1.1

To import the already exported XMI 1.1 files :
* open the XMI file in a text-editor
* delete the line which specified the DTD .i.e., the line :  <!DOCTYPE
XMI SYSTEM "UML_EA.dtd">
* save the XMI file and import it into EA.

We will update the DTD file in the upcoming release of EA.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: EAModel.image used but not declared in DTD/Sch
« Reply #4 on: June 11, 2009, 10:36:54 pm »
Thanks Dorian,

So it is a bug, but not a show-stopper. Good to know!

David
No, you can't have it!