title: XSL-FO border-overlapping graphic
body: <p>I have some problems with realizing the following layout in XSL-FO:</p>
  
  <p><img src="https://i.stack.imgur.com/R5Uhb.png" alt="enter image description here"></p>
  
  <p>I thought that I'd create a simple block with a solid black border around it. 
  Then I'd place the image on the top-right corner in this block, so that it overlays the border. At the end I could give a left and bottom border to this image.</p>
  
  <p>EDIT: This is my code for placing the image..In the first block i'll tried to place the image from inside the block, and in the second from outside the block.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
      &lt;!-- Layout--&gt;
      &lt;fo:layout-master-set&gt;
          &lt;fo:simple-page-master master-name = "ticket_layout"
                                                  page-height = "297mm"
                                                  page-width = "210mm"
                                                  margin-left = "10mm"
                                                  margin-right = "5mm"
                                                  margin-top = "10mm"
                                                  margin-bottom = "10mm"&gt;
  
              &lt;fo:region-body margin-bottom = "20mm" margin-top = "25mm"/&gt;
          &lt;/fo:simple-page-master&gt;
      &lt;/fo:layout-master-set&gt;
      &lt;!-- page sequence--&gt;
      &lt;fo:page-sequence master-reference = "ticket_layout"&gt;
          &lt;!-- Body--&gt;
          &lt;fo:flow flow-name = "xsl-region-body"&gt;
          &lt;!-- Info Image--&gt;
              &lt;fo:block-container position="absolute" bottom="10" left="10"&gt;
                  &lt;fo:block text-align = "right"&gt;
                      &lt;fo:external-graphic src="url('Info_Icon.jpg')" border-left= "1pt solid black" border-bottom = "1pt solid black" content-height = "50%"/&gt;
                  &lt;/fo:block&gt;
              &lt;/fo:block-container&gt;
              &lt;!-- Table--&gt;
                  &lt;fo:table margin-top = "2mm" padding-bottom = "230mm" font-family = "Agenda" font-size = "11"&gt;
                      &lt;fo:table-body&gt;
                          &lt;fo:table-row&gt;
                              &lt;!-- InfoBlock1--&gt;
                              &lt;fo:table-cell &gt;
                                  &lt;fo:block padding-bottom= "48mm" margin-right = "1mm" margin-bottom = "1mm" border = "1pt solid black" &gt;
                                      &lt;!-- InfoImage--&gt;
                                      &lt;fo:block-container position="absolute" bottom="60" left="110"&gt;
                                          &lt;fo:block text-align = "right"&gt;
                                              &lt;fo:external-graphic src="url('Info_Icon.jpg')" border-left= "1pt solid black" border-bottom = "1pt solid black" content-height = "50%"/&gt;
                                          &lt;/fo:block&gt;
                                      &lt;/fo:block-container&gt;
                                  &lt;/fo:block&gt;
                              &lt;/fo:table-cell&gt;
                              &lt;!-- InfoBlock_2--&gt;
                              &lt;fo:table-cell &gt;
                                  &lt;fo:block  padding-bottom= "48mm" margin-left = "1mm" margin-bottom = "1mm" border = "1pt solid black"&gt;
                                  &lt;/fo:block&gt;
                              &lt;/fo:table-cell&gt;
                          &lt;/fo:table-row&gt;
                      &lt;/fo:table-body&gt;
                  &lt;/fo:table&gt;
          &lt;/fo:flow&gt;
      &lt;/fo:page-sequence&gt;
  &lt;/fo:root&gt;
  </code></pre>
  
  <p>But I have problems placing the image exactly on the border. Is it even possible?</p>
  
  <p>Link to the image: <a href="https://i.stack.imgur.com/9FvVr.jpg" rel="nofollow noreferrer">http://i.stack.imgur.com/9FvVr.jpg</a></p>
  
  <p>I'd also welcome some other suggestions!</p>