xmlgraphics-fop-dev mailing list archives

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

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

Mime
View raw message