I've noticed some strange problems with fo:block and fo:block-container,
description follows:

I have simple sequence:

<fo:page-sequence master-reference="default-sequence">
  <fo:flow flow-name="xsl-region-body">
    <fo:block-container font-family="Helvetica" font-size="10pt">
    .....
    </fo:block-container>
  </fo:flow>
</fo:page-sequence>

Everything inside block-container is not visible on output, when I change
block-container into block, everything looks good,

Another problem is related to situation when block contains block-container,
in this case I'm getting following error while running FOP:


[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] null
^^^^^^^^^^^^

I've noticed also ClassCastException in one case, but I've changed XSL-FO
and cannot reproduce this one :(

any suggestions ?

I'm attaching XSL-FO on which I've made those experiments

best regards
--
Michał "Yahoo" Jaśtak,
  [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
  http://www.ncac.torun.pl/~warlock

"Try not. Do. Or do not. There is no try." (Yoda)
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
xmlns:text="http://openoffice.org/2000/text"; 
xmlns:table="http://openoffice.org/2000/table"; 
xmlns:style="http://openoffice.org/2000/style"; 
xmlns:script="http://openoffice.org/2000/script"; 
xmlns:office="http://openoffice.org/2000/office"; 
xmlns:number="http://openoffice.org/2000/datastyle"; 
xmlns:meta="http://openoffice.org/2000/meta"; 
xmlns:math="http://www.w3.org/1998/Math/MathML"; 
xmlns:form="http://openoffice.org/2000/form"; 
xmlns:draw="http://openoffice.org/2000/drawing"; 
xmlns:dr3d="http://openoffice.org/2000/dr3d"; 
xmlns:chart="http://openoffice.org/2000/chart"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:svg="http://www.w3.org/2000/svg";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="all-pages" page-width="21.001cm" 
page-height="29.7cm" 
                           margin-top="1cm" margin-bottom="1.499cm" 
margin-left="1.499cm" margin-right="1.499cm">
      <fo:region-before region-name="xsl-region-before" />
      <fo:region-body region-name="xsl-region-body" />
      <fo:region-after region-name="xsl-region-after" />
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="default-sequence">
      <fo:repeatable-page-master-reference master-reference="all-pages" />
    </fo:page-sequence-master>
  </fo:layout-master-set>

  <fo:page-sequence master-reference="default-sequence">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
      <fo:block-container font-family="Helvetica" font-size="10pt">
        <fo:block>
          <fo:block margin-top="0cm" margin-bottom="0cm" font-size="14pt" 
font-family="Times" font-weight="bold">
            <fo:inline font-size="16pt">First Line</fo:inline>
            <fo:block />
            <fo:inline font-variant="normal" text-transform="none" 
font-size="8pt">Second Line</fo:inline>
          </fo:block>
          <fo:block margin-top="0cm" margin-bottom="0cm" font-size="20pt" 
font-family="Helvetica" font-weight="bold" 
                    text-align="center">
            Third line 
          </fo:block>
        </fo:block>
      </fo:block-container>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to