fo: float не работает, используя apache fop 2.4 - PullRequest
0 голосов
/ 11 февраля 2020

Я создал следующий вывод xslfo, который пытается использовать fo: float для плавания изображения, используя apache fop 2.4, однако изображения не отображаются.

    <fo:flow flow-name="xsl-region-body">
   <fo:block keep-with-next="always"><fo:marker marker-class-name="body-header-marker"/></fo:block>
   <fo:block break-before="auto" id="unique_1" keep-with-next.within-page="auto" keep-with-previous.within-page="auto" margin-left="0cm" margin-top="9mm"><fo:block break-after="auto" id="_OPENTOPIC_TOC_PROCESSING_d92e109" keep-with-previous.within-line="auto"/><fo:block color="#333333" font-size="24pt" font-style="normal" font-weight="normal" keep-with-next.within-page="auto" letter-spacing="2px" margin-left="0mm" margin-top="0mm" text-align="left" text-indent="0" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Medium"><fo:table>
      <fo:table-column/>
      <fo:table-body>
       <fo:table-row>
        <fo:table-cell>
         <fo:block color="inherit" font-size="inherit">Industry Outlook</fo:block>
        </fo:table-cell>
       </fo:table-row>
      </fo:table-body>
     </fo:table></fo:block><fo:block/><fo:block><!-- concept/concept --><fo:block id=""><fo:block><fo:inline id="unique_2"/><fo:inline id="_OPENTOPIC_TOC_PROCESSING_d92e131"/><fo:table keep-with-next.within-page="auto" margin-bottom="3mm" margin-top="3mm" page-break-after="auto">
        <fo:table-column/>
        <fo:table-column column-width="144mm"/>
        <fo:table-body>
         <fo:table-row>
          <fo:table-cell keep-together.within-column="auto">
           <fo:block color="#333333" font-size="14pt" keep-together.within-page="always" keep-with-next.within-page="auto" line-height="16.8pt" margin-right="2mm" page-break-after="avoid" text-align="left" text-indent="0" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Bold">Outlook</fo:block>
          </fo:table-cell>
          <fo:table-cell keep-together.within-column="auto">
           <fo:block color="#333333" font-size="11pt" line-height="16.8pt" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">
            <fo:block margin-bottom="4mm" margin-top="0mm" page-break-inside="avoid"><fo:table>
              <fo:table-column column-width="2mm"/>
              <fo:table-column column-width="142mm"/>
              <fo:table-body>
               <fo:table-row>
                <fo:table-cell border-left-color="#7A1315" border-left-style="solid" border-left-width="1mm" padding-bottom="1mm" padding-top="1mm">
                 <fo:block/>
                </fo:table-cell>
                <fo:table-cell>
                 <fo:block color="#7A1315" font-size="13pt" font-weight="900" keep-together.within-page="always" line-height="16pt" text-align="left" text-indent="0" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Black">.</fo:block>
                </fo:table-cell>
               </fo:table-row>
              </fo:table-body>
             </fo:table></fo:block><fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular"/>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">11111111111111111111111111111111111111111111111111111111111111111111111111111111 1111111111111111111111111111111111111111111111111111111111111111</fo:block>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">
             <fo:float float="left">
              <fo:block id="unique_2_Connect_42_chart_d1e19"><fo:external-graphic content-height="50mm" content-width="80mm" src="url(file:/home/vmdovs/NetBeansProjects/IBISWorld/content/source/gfx/document/YYY.png)"/></fo:block>
             </fo:float>FLOAT LEFT The text the text the text The text the text the text The text the text the text</fo:block>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">111111111111111111111111111111111111111112222222222222222222222222222222222 22222222222222222222222222222222111111111111111111111111111111111111111 1111111111111111111111111111111111111111111111111111111111111111</fo:block>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">
             <fo:inline id="unique_2_Connect_42_chart_d1e29"><fo:external-graphic content-height="50mm" content-width="80mm" src="url(file:/home/vmdovs/NetBeansProjects/IBISWorld/content/source/gfx/document/YYY.png)"/></fo:inline> NO FLOAT The text the text the text The text the text the text The text the text the text</fo:block>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">dfdfddddddddddddddddddddddddddddd fddddddddddddddddddddddddddddddd</fo:block>
            <fo:block color="#333333" font-size="11pt" font-weight="normal" margin-left="0mm" space-after="8pt" space-before="0pt" start-indent="0cm" text-indent="0cm" line-height-shift-adjustment="disregard-shifts" font-family="Roboto-Regular">
             <fo:float float="right">
              <fo:block id="unique_2_Connect_42_chart_d1e"><fo:external-graphic content-height="50mm" content-width="80mm" src="url(file:/home/vmdovs/NetBeansProjects/IBISWorld/content/source/gfx/document/YYY.png)"/></fo:block>
             </fo:float>FLOAT RIGHT The text the text the text The text the text the text The text the text the text</fo:block>
           </fo:block>
          </fo:table-cell>
         </fo:table-row>
        </fo:table-body>
       </fo:table></fo:block></fo:block></fo:block></fo:block>
  </fo:flow>

Это приводит к следующему выводу , Единственное изображение, которое отображается, не устанавливается с помощью float.

Есть идеи, что не так? С уважением Conteh

enter image description here

...