Hi Andreas,
 
Any chance you can try 0.95 and check if the issue persists?

I switched to 0.94 due to some table formatting issue in 0.95 so that it not an option.

Try to trim it down, then. Ideal would be the smallest possible FO that triggers the behavior.

Here we go ... also note that FOP does not preserve XML formatting when it adds my content into the PDF.

<fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em" keep-together.within-column="always" id="ex.wsdl">
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" font-weight="bold" font-size="12pt" hyphenate="false" space-after.minimum="0.4em" space-after.optimum="0.6em" space-after.maximum="0.8em" color="#202020" keep-with-next.within-column="always">Example 10. WSDL</fo:block>

<fo:block space-before.minimum="0pt" space-before.optimum="6pt" space-before.maximum="6pt" space-after.minimum="0pt" space-after.optimum="6pt" space-after.maximum="6pt" font-family="monospace" font-stretch="semi-condensed" text-align="start" background-color="#F0F0F0" border-style="solid" border-width="1pt" border-color="#A0A0A0" padding="0pt 6pt 0pt 6pt" margin="0pt" line-stacking-strategy="font-height" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap">

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="http://dummy.com/wsdl/demo/weather/service/"
  xmlns:ns0="http://dummy.com/xsd/SchemaTypes/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:map="http://dummy.com/mapping/"
  name="demo.weather.service.WeatherService"
  targetNamespace="http://dummy.com/wsdl/demo/weather/service/">

  <wsdl:types>
    <xsd:schema xmlns:map="http://dummy.com/mapping/"
      xmlns:ns0="http://dummy.com/xsd/SchemaTypes/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:tns="http://dummy.com/xsd/SchemaTypes/"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified"
      targetNamespace="http://dummy.com/xsd/SchemaTypes/">

      <xsd:element name="p0" nillable="true" type="xsd:string"/>
      <xsd:element name="string_Response" nillable="true" type="xsd:int"/>

    </xsd:schema>
  </wsdl:types>

  <wsdl:message name="WeatherServiceRequest">
    <wsdl:part name="p0" element="ns0:p0"/>
  </wsdl:message>
  <wsdl:message name="WeatherServiceResponse">
    <wsdl:part name="response" element="ns0:string_Response"/>
  </wsdl:message>

  <wsdl:portType name="WeatherService">
    <wsdl:operation name="gettemp" parameterOrder="p0">
      <wsdl:input message="tns:WeatherServiceRequest"/>
      <wsdl:output message="tns:WeatherServiceResponse"/>
    </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="WeatherService" type="tns:WeatherService">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
      style="document"/>

    <wsdl:operation name="gettemp">
      <map:java-operation name="hello"
        signature="KExqYXZhL2xhbmcvU3RyaW5nOylMamF2YS9sYW5nL1N0cmluZzsasfdasdfasdfaqwW@="/>
      <soap:operation
        soapAction="http://dummy.com/wsdl/demo/weather/service/WeatherService
                    #hello#KExqYXZhL2xhbmcvU3RyaW5nOylMamF2YS9sYW5nL1N0cmluZzssdfasASDAfasdasAaa="
                    style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="JavaService">
    <wsdl:port name="WeatherService" binding="tns:WeatherService">
      <soap:address location="http://localhost:6070/Basic/WeatherService"/>
    </wsdl:port>
  </wsdl:service>

</wsdl:definitions>

</fo:block>
</fo:block>

Regards,
Danushka

--
Danushka Menikkumbura
Technical Lead, WSO2 Inc.

blog : http://danushka-menikkumbura.blogspot.com/

http://wso2.com/ - "The Open Source SOA Company"