Skip to main content
Participating Frequently
May 10, 2012
Question

sgml import issue

  • May 10, 2012
  • 2 replies
  • 1823 views

I am working on a structure application and EDD using the dtd for CMMs that is provided with iSpec2200. The issue that I can't seem to resolve is related to the display of .cgm graphic files that are stored as entities in the document instance's internal DTD subset. I have checked and re-checked the syntax of the declared entities and also the syntax of the element that references the entity in the body of the sgml document. I have included a Read/Write rule that defines the element as a fm graphic element and have all of the necessary parts of the structure application defined (i.e., entity locations, filename patterns, and search paths etc.) yet I still receive an error when opening the source sgml document that says "Error importing graphic for element (Sheet)." 

Any ideas on what might be the problem? 

This topic has been closed for replies.

2 replies

Inspiring
May 10, 2012

I struggled with the same issue a long long time ago, let's see if i remember..;)

Check that the dtd uses entity type of attribute (and only that) for the graphics element. Parser should then be able to look the internal entity defs and the strucapps provides the physical location path.

BR, Martti

Participating Frequently
May 10, 2012

The DTD does define the element to use an entity attribute to reference the entity name in the declaration.   The element also has a second entity attribute defined to use for reference to a filename, but I have tried to address this by creating a r/w rule that drops that specific attribute on import, but that didn't make any difference.

Inspiring
May 11, 2012

Filename reference should not be entity type attribute, but CDATA and you should only use either entity-attribute or file-attribute, not both.If your data contains both, frame does not survive.. (if again..i remember right).

Martti

Arnis Gubins
Inspiring
May 10, 2012

Have you tried manually importing just the cgm graphics into a blank FM file to verify if the files are ok?

Participating Frequently
May 10, 2012

I have tried that and they do work. Thanks for the quick reply!