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 "Pascal Sancho (JIRA)" <ji...@apache.org> on 2015/08/21 09:42:45 UTC

[jira] [Commented] (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=14706355#comment-14706355 ] 

Pascal Sancho commented on FOP-2517:
------------------------------------

Hi,
what do you mean by "it's not work"?
please, give further info:
FOP version
what you expect Vs what you get
short XSL-FO (not XSLT) test case attached as files

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