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/20 10:04:46 UTC
[jira] [Created] (FOP-2517) keep-together.within-page="auto" is not
work,but the "always" is work.
zhangcui created FOP-2517:
-----------------------------
Summary: 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)