DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36248>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36248

           Summary: total number of pages with empty block
                    :ClassCastException in  KnuthInlineBox
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I tried to get total numer of pages as described in
http://xml.apache.org/fop/fo.html#fo-total-pages.

The following sample.fo works fine with Fop 0.20.5 but it crashes with Fop
1.0dev with the following message :

Exception
:java.lang.ClassCastException :
org.apache.fop.layoutmgr.inline.KnuthInlineBox


<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
    <fo:simple-page-master 
        margin-right="1.5cm"
        margin-left="1.5cm"
        margin-bottom="2cm"
        margin-top="1cm"
        page-width="21cm"
        page-height="29.7cm"
        master-name="first">
      <fo:region-body margin-top="1cm" margin-bottom="1.5cm"/>
      <fo:region-before extent="1cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
   </fo:layout-master-set>
  <fo:page-sequence master-reference="first">
  <fo:static-content flow-name="xsl-region-after">
        <fo:block>
    
    <fo:inline line-height="14pt" font-size="10pt" >page 
      <fo:page-number/>/<fo:page-number-citation ref-id="last-page"/>
        </fo:inline>
        
        </fo:block>
    </fo:static-content>  
 <fo:flow flow-name="xsl-region-body">
        <fo:block id="last-page"/>      
        </fo:flow>   
</fo:page-sequence>
</fo:root>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to