Re: AntTask: Error Rendering Fo File Error when Generating PDF for Bookmap #DITA-OT #PDF #bookmap


Toshihiko Makita
 

You are generating fo:inline as the child of fo:block-container in the following portion of topic.fo.

      <fo:block-container text-align="center">
        <fo:block font-size="22pt" font-weight="bold" line-height="140%" space-before="80mm"
          space-before.conditionality="retain" line-height-shift-adjustment="disregard-shifts"
          font-family="Cambria">
          <fo:block>
            <fo:inline border-left-width="0pt" border-right-width="0pt">Retro Tools</fo:inline>
          </fo:block>
          <fo:block>
            <fo:inline border-left-width="0pt" border-right-width="0pt">Product tasks</fo:inline>
          </fo:block>
        </fo:block>
        <fo:inline border-left-width="0pt" border-right-width="0pt">Tasks and what they can
          do</fo:inline>
        <fo:block font-size="11pt" font-weight="bold" line-height="normal" space-before="36pt"
          line-height-shift-adjustment="disregard-shifts"
          font-family="Trebuchet MS, Helvetica, Arial Unicode MS"/>
      </fo:block-container>

The content model of fo:block-container is "(%block)+". You should not fo:inline as the child of fo:block-container.

https://www.w3.org/TR/xsl11/#fo_block-container

If generating fo:block-container is the right coding, change generating fo:inline to generate fo:block instead.

Hope this helps.

Regards,
-- 
/*----------------------------------------------------------------------- 
 Toshihiko Makita
 Development Group. Antenna House, Inc. Ina Branch
 Web site:
 http://www.antenna.co.jp/
 http://www.antennahouse.com/
 ------------------------------------------------------------------------*/ 


 

Join main@dita-users.groups.io to automatically receive all group messages.