2

xsl-fo レイアウトのデバッグ方法

テーブル、ブロック、およびこれらすべての外縁から 1 mm 離れた 1 つの画像があります。

<fo:table-row xsl:use-attribute-sets="blue-border">
      <fo:table-cell >
        <fo:block id="logo" xsl:use-attribute-sets="red-border">
          <fo:external-graphic src="url('{$headerLogoPath}')" width="100%" content-width="53mm" scaling="uniform" xsl:use-attribute-sets="green-border"/>
        </fo:block>
      </fo:table-cell>
      <fo:table-cell text-align="right" margin-right="1mm">
        <xsl:apply-templates select="/FOO" />
      </fo:table-cell>
    </fo:table-row>

その結果、次のようになります。

_____blue, red___ 
|______green_____|
|                |
|                |
|______green_____|
|____blue, red___|

スペーサーの原因をデバッグする方法は? 私が理解しているように、それはいくつかのもの(マージン、パディング、スペース)である可能性があります。ブロックとグラフィック用にこれらすべてを 0pt に設定しようとしましたが、助けにはなりません。

より高度な AWT プレビューのようなものは素晴らしいでしょう。すべての余白、パディング、領域の境界線、および領域の寸法が表示されることを望みます。そのような(できればフリーウェアの)ツールを知っている人はいますか?

4

0 に答える 0