Skip to main content
Known Participant
October 9, 2015
Question

Graphic Element Boardno Attribute

  • October 9, 2015
  • 1 reply
  • 735 views

FM2015 / SGML

In my EDDs, I have been setting up the Graphic element as seen below:

Element (Graphic): Graphic

   Initial graphic element format

      If context is: Figure [Imported = “Yes”]

         Insert imported graphic file.

      Else

         Insert anchored frame.

Now I have a customer DTD which defines the Graphic element as a Container and uses the Boardno attribute to identify the graphic to be displayed. This is probably something people do all the time but I haven't run into it. Can anyone point me to information that would help me educate myself. I assume it involves some kind of reference but I've looked around and I'm not finding the information I need for some reason.

This topic has been closed for replies.

1 reply

Participant
June 24, 2016

Add:

element "graphic" {

  is fm graphic element;

    attribute "boardno" {is fm property entity;}

}

to your read/write rules.

The top of your FM XML files will look something like this:

<!DOCTYPE div SYSTEM "http://demo.eglootech.com/library/tekreader/1/tekreader-fm.dtd" [

<!-- Begin Document Specific Declarations -->

<!NOTATION png     PUBLIC "">

<!ENTITY graphic1  SYSTEM "graphics/elementCatalog_TABLE.png" NDATA png>

<!ENTITY graphic2  SYSTEM "graphics/windowInsertTable.png" NDATA png>

<!ENTITY graphic3  SYSTEM "graphics/tableInserted.png" NDATA png>

<!ENTITY graphic4  SYSTEM "graphics/tableAddContent.png" NDATA png>

<!ENTITY graphic5  SYSTEM "graphics/structureViewTable.png" NDATA png>

<!ENTITY graphic6  SYSTEM "graphics/attributesWindow_TABLE.png" NDATA png>

<!ENTITY graphic7  SYSTEM "graphics/elementTable.png" NDATA png>

<!ENTITY graphic8  SYSTEM "graphics/elementCatalog_STRONG.png" NDATA png>

<!ENTITY graphic9  SYSTEM "graphics/unwrap.png" NDATA png>

<!ENTITY graphic10 SYSTEM "graphics/elementStrong.png" NDATA png>

<!ENTITY graphic11 SYSTEM "graphics/elementEm.png" NDATA png>

<!ENTITY graphic12 SYSTEM "graphics/elementU.png" NDATA png>

<!ENTITY graphic13 SYSTEM "graphics/elementSub.png" NDATA png>

<!ENTITY graphic14 SYSTEM "graphics/elementSup.png" NDATA png>

<!ENTITY graphic15 SYSTEM "graphics/elementSpan.png" NDATA png>

<!-- End Document Specific Declarations -->

]>

And example markup in same FM XML file something like this:

<figure id = "part09tr2E103E10D76211E4415809173F13E4C5">

<graphic boardno = "graphic1" reprodep = "2.895in" reprowid = "6.693in"

    hplace = "center" scale = "0.984in 2.712in" render = "thumbnail"

    type = "img"/>

</figure>