title: xsl-fo absolute placement of images
body: <p>I am trying to put an image in the left upper corner of the page.</p>
  
  <p>However hard I try, i cannot place the image correctly. There is always ca 1mm space between the image and the top of the page!</p>
  
  <p>The problem seems to be in the placement of the external-graphic. the enclosing block (yellow) is placed correctly but the image is shifted down. you can see this in the pdf, the enclosing yellow block is visible above the gray image!</p>
  
  <p>I tried some combinations of attributes trying to influence the placement of the image (absolute-position, position, space-before) but with no effect.</p>
  
  <p>appreciate your help!</p>
  
  <p>here is how it looks like:
  <a href="http://www.lazafi.com/drop/g.pdf" rel="nofollow">boxes.pdf</a></p>
  
  <p>here is my fo.xml:</p>
  
  <pre><code>&lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:r="http://xml.lazalab.com/reditor" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" language="DE"&gt;
   &lt;fo:layout-master-set&gt;
    &lt;fo:simple-page-master  fox:scale="1" fox:crop-offset="5mm" fox:crop-box="media-box" fox:bleed="5mm" margin-right="0mm" margin-left="0mm" margin-bottom="0mm" margin-top="0mm" master-name="MASTERsite1" page-width="214mm" page-height="301mm"&gt;
     &lt;fo:region-body background-color="green" margin="0mm"/&gt;
     &lt;fo:region-before background-color="yellow" precedence="true" extent="0mm"/&gt;
     &lt;fo:region-after background-color="cyan" precedence="true" extent="0mm"/&gt;
     &lt;fo:region-start background-color="pink" extent="0mm"/&gt;
     &lt;fo:region-end background-color="gold" extent="0mm"/&gt;
    &lt;/fo:simple-page-master&gt;
   &lt;/fo:layout-master-set&gt;
  
   &lt;fo:page-sequence master-reference="MASTERsite1"&gt;
    &lt;fo:flow reference-orientation="0" border-collapse="collapse" flow-name="xsl-region-body"&gt;         
  
     &lt;fo:block-container absolute-position="absolute" width="214mm" height="301mm" background-color="cyan"&gt;
      &lt;fo:block-container overflow="hidden" width="100mm" height="200mm" background-color="cyan"&gt;
          &lt;fo:block  top="0mm" left="0mm" padding="0mm" margin="0mm" background-color="yellow"&gt;
              &lt;fo:external-graphic  line-height="0mm" padding="0mm" margin="0mm"  width="100mm" height="200mm" background-color="grey" src="#"/&gt;
          &lt;/fo:block&gt;
      &lt;/fo:block-container&gt;
     &lt;/fo:block-container&gt;
  
    &lt;/fo:flow&gt;
   &lt;/fo:page-sequence&gt; 
  &lt;/fo:root&gt;
  </code></pre>