xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhangcui (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (FOP-2517) keep-together.within-page="auto" is not work,but the "always" is work.
Date Fri, 21 Aug 2015 07:56:46 GMT

     [ https://issues.apache.org/jira/browse/FOP-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

zhangcui updated FOP-2517:
    Comment: was deleted

(was: 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
"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

View raw message