🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #1482

tables and graphics

#1482
From: Trevor_Nicholls
Date: Fri, 21 Jul 2006 04:19
34 lines
2668 bytes
More layout that I don't understand.

Several of the "big" blocks in my documents are <para>, <screenshot> and <tabula>. They're self-explanatory: container, graphic and table respectively.

The problem I am having is that wherever my XML contains a <tabula> followed by a <screenshot>, the graphic is appearing first. Where the XML contains a sequence of alternating <tabula> and <screenshot> elements, all the screenshots appear followed by all the tables. However if there is anything at all in the XML between the <tabula> and the <screenshot>, they appear where I expect them to, e.g. table, para, screenshot.

All my table designs are defined with:
 spaceAbove = 12pt, spaceBelow = 12pt
 LI = RI = 0cm
 align = Left, start = Anywhere

The relevant read/write rules are:
 element "screenshot" {
  is fm graphic element;
  writer facet default specify size in pt;
  attribute "src" is fm property file;
  fm property import by reference or copy value is "ref";
  fm property alignment value is "acenter";
  fm property position value is "below";
  fm property horizontal offset value is "0pt";
  fm property vertical offset value is "0pt";
  attribute "height" is fm property height;
  attribute "width" is fm property width;
  attribute "dpi" is fm property dpi;
 }

I could speculate (dangerous, but the doco isn't helping me much) that the problem is that both tables and graphic objects place an insertion point at the end of the preceding element (I can see this insertion point before the end of paragraph marker above the image or the table), and the graphic object, being placed "below" the insertion point, is taking priority over the table (which is placed "anywhere"). Am I right?

Whether right or wrong, is there anything I can do to fix this - short of inserting empty paragraphs everywhere that that I have images preceded by tables?

Incidentally, they're not <tabula> elements, but we're not allowed to see < t a b l e >. (That* doesn't need explaining!)

Thanks
Trevor
Technical Details
Message-ID: <3bc0fcfb.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!colt.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,2a4092904f4b4e38,start
X-Google-Attributes: gidfcc08,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Trevor_Nicholls@adobeforums.com
Newsgroups: adobe.framemaker.sgml
Subject: tables and graphics
Message-ID: <3bc0fcfb.-1@webcrossing.la2eafNXanI>
Date: Thu, 20 Jul 2006 21:19:05 -0700
Lines: 49
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!colt.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing