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 "zhangcui (JIRA)" <ji...@apache.org> on 2015/08/21 09:55:46 UTC

[jira] [Comment Edited] (FOP-2517) keep-together.within-page="auto" is not work,but the "always" is work.

    [ https://issues.apache.org/jira/browse/FOP-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706363#comment-14706363 ] 

zhangcui edited comment on FOP-2517 at 8/21/15 7:55 AM:
--------------------------------------------------------

Hi,thank for reply.
i mean when the value is "auto",the result pdf is looks like  has no this attribute.
the expect result is:
table have head,breaked by page break, the table on the second page have head too.
but the "auto" have no head.

i'm sorry, we don't creat the .fo file,just have pdf file.

further info:
same xslt, same xml,if i'm use fop.bat to make pdf file but not java.xml.transform,the result is
"the second page have head too."


was (Author: zhangcui):
Hi,thank for reply.
i mean when the value is "auto",the result pdf is looks like  has no this attribute.
the expect reault is:
table have head,breaked by page break, the table on the second page have head too.
but the "auto" have no head.

i'm sorry, we don't creat the .fo file,just have pdf file.

further info:
same xslt, same xml,if i'm use fop.bat to make pdf file but not java.xml.transform,the result is
"the second page have head too."

> keep-together.within-page="auto" is not work,but the "always" is work.
> ----------------------------------------------------------------------
>
>                 Key: FOP-2517
>                 URL: https://issues.apache.org/jira/browse/FOP-2517
>             Project: FOP
>          Issue Type: Wish
>            Reporter: zhangcui
>
> i am use Transformer to convert xml to pdf,the src is
> FopFactory fF = FopFactory.newInstance();
> 			fF.setUserConfig(..);
> 			fF.getFontManager().setFontBaseURL(..);
> 			FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
> 			Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent,out);
> 			Result result = new SAXResult(fop.getDefaultHandler());
> 			TransformerFactory tFactory = TransformerFactory.newInstance();
> 			Transformer transformer = tFactory.newTransformer(new StreamSource(xslReader));
> 			transformer.setParameter("tt", paramPath);
> 			transformer.transform(xmlSource, result);
> the xsl is
> <xsl:element name="fo:table-row">
>        <xsl:attribute name="keep-together.within-page">
> 	 		<xsl:value-of select="auto"></xsl:value-of>
> 	</xsl:attribute>
> </xsl:element>
> but it's not work.but if i change it to always,it work.
> why?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)