You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/10/19 14:46:18 UTC

DO NOT REPLY [Bug 40798] New: - page-position="last" doesn't work for 1 page document

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=40798>.
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=40798

           Summary: page-position="last" doesn't work for 1 page document
           Product: Fop
           Version: 0.92
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: page-master/layout
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: mikev@ci-inc.com


I have two page-masters defined, with one having a different footer than the 
other.

When this renders to a 2+ page document, the last page gets the last footer 
and the other pages get the other footer.

When it renders to a 1 page document, I get the "any" page footer, even though 
the the page is the last page....

I've posted on nabble.com, and gotten replies that it is possibly a bug.

This is used to create business forms (like an order), so the total number of 
pages is unknown. The last footer is used to display a Sub-Total, Tax and 
Grand Total.

Snippet of the code:

<fo:layout-master-set> 
  <fo:simple-page-master master-name="default-page" 
                         page-height="11in" 
                         page-width="8.50in" 
                         margin-top="0.25in" 
                         margin-left="0.25in" 
                         margin-right="0.25in" 
                         margin-bottom="0.25in"> 
<!-- space needed for header & footer tables --> 
  <fo:region-body           
   region-name="body" 
   margin-top="0in" 
                         margin-bottom="1.50in"/> 
  <fo:region-before region-name="header" extent="10.0in"/> <!-- space needed 
for header table --> 
  <fo:region-after region-name="footer" extent="1.50in"/> <!-- space needed 
for footer table --> 
  <fo:region-start  extent="0.00in"/> 
  <fo:region-end    extent="0.00in"/> 
  </fo:simple-page-master> 
  
  
  <fo:simple-page-master master-name="last-page" 
   page-height="11in" 
   page-width="8.50in" 
   margin-top="0.25in" 
   margin-left="0.25in" 
   margin-right="0.25in" 
   margin-bottom="0.25in"> 
   <!-- space needed for header & footer tables --> 
   <fo:region-body           
    region-name="body" 
    margin-top="0in" 
    margin-bottom="1.50in"/> 
   <fo:region-before region-name="header" extent="10.0in"/> <!-- space needed 
for header table --> 
   <fo:region-after  region-name="last-footer" extent="1.50in"/> <!-- space 
needed for footer table --> 
   <fo:region-start  extent="0.00in"/> 
   <fo:region-end    extent="0.00in"/> 
  </fo:simple-page-master> 
  
  
  <fo:page-sequence-master master-name="all"> 
   <fo:repeatable-page-master-alternatives> 

    <fo:conditional-page-master-reference 
     page-position="last" master-reference="last-page"/> 
    
    <fo:conditional-page-master-reference 
     page-position="any" master-reference="default-page" /> 

   </fo:repeatable-page-master-alternatives> 
  </fo:page-sequence-master> 
 </fo:layout-master-set>

-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798





------- Additional Comments From basura2400@yahoo.es  2007-12-26 12:17 -------
I have the same problem and I don�t know the solution for this problem or bug. 
Can you help me?
I have tried use: page-position="only" but it doesn`t work, I have the next 
error:

org.apache.fop.fo.PropertyList convertAttributeToProperty
GRAVE: Ignoring property: page-position="only" <No conversion defined only; 
property: 'page-position'>

-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798





------- Additional Comments From jeremias@apache.org  2007-12-27 00:34 -------
Indeed, page-position="only" (which is a XSL 1.1 feature) hasn't been
implemented, yet.

-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798


ccardelli@iv-srl.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |Windows 2000




------- Additional Comments From ccardelli@iv-srl.it  2007-01-18 09:29 -------
I am having this same problem in fop on windows.
If you do not know if that is correct in view of the FO spec, you may 
leave 'last' as is and support the 'only' trait (both first and last) as 
specified in XSL-FO 1.1 Recommendation.
So, the example stated would work as:
<fo:conditional-page-master-reference 
     page-position="only" master-reference="last-page"/> 
<fo:conditional-page-master-reference 
     page-position="last" master-reference="last-page"/> 
<fo:conditional-page-master-reference 
     page-position="any" master-reference="default-page" /> 


-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798





------- Additional Comments From spepping@apache.org  2006-12-21 04:43 -------
The problem is in
ConditionalPageMasterReference.isValid(isOddPage, isFirstPage, isLastPage,
isBlankPage), which says explicitly that a conditional pagemaster reference with
page-position="last" is not valid for a first page. I do not know at this moment
if that is correct in view of the FO spec.


-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798





------- Additional Comments From basura2400@yahoo.es  2007-12-27 02:11 -------
I think must be another solution to get the same thing:

- the last page have a footer (last_footer).
- the other pages don�t have a footer.

When it renders to a 1 page document, I want this page have a footer
(last_footer).

�How can I get this?�Can you help me? I have tried other things, such as use a 
footnote at the end of the body but when the body is filled the footnote is 
placed at the beginnig of the page (not at the end) or the footnote is cut.
 <fo:block>text of the body</fo:block>
 <fo:block>text of the body</fo:block>
 <fo:block>text of the body</fo:block>
 <fo:block>text of the body</fo:block>
 <fo:block>	
  <fo:footnote >
	 <fo:inline></fo:inline>
	 <fo:footnote-body>
	     <xsl:call-template name="last_footer"></xsl:call-template>
	 </fo:footnote-body> 
  </fo:footnote>
</fo:block>





-- 
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.

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

Posted by bu...@apache.org.
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=40798>.
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=40798





------- Additional Comments From basura2400@yahoo.es  2008-01-03 06:18 -------
Hi,

I have been searching a solution for this bug but it's impossible!!! I think 
the only solution will be implement page-position="only" (which is a XSL 1.1 
feature)in the next version of FOP.





-- 
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.