You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Tom Frey <to...@kingvest.de> on 2004/11/16 12:25:34 UTC
Current CVS - break-after/before="page" not working?
Hi,
I don't seem to get break-after="page" working with the current CVS
snapshot. Is there something I might be doing wrong or is there something
broken? Here's some test xsl which renders page breaks with v0.20.5 but not
with the current CVS snapshot:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2004/07/xpath-functions"
xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes">
<xsl:variable name="fo:layout-master-set">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page"
page-height="11in" page-width="8.5in" margin-left="0.6in"
margin-right="0.6in">
<fo:region-body margin-top="0.79in" margin-bottom="0.79in"
/>
</fo:simple-page-master>
</fo:layout-master-set>
</xsl:variable>
<xsl:output version="1.0" encoding="UTF-8" indent="no"
omit-xml-declaration="no" media-type="text/html" />
<xsl:template match="/">
<fo:root>
<xsl:copy-of select="$fo:layout-master-set" />
<fo:page-sequence master-reference="default-page"
initial-page-number="1" format="1">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:for-each select="document">
<xsl:for-each select="letter">
<xsl:for-each select="page">
<xsl:for-each select="receiver">
<xsl:for-each select="address">
<fo:block
space-before.optimum="1pt" space-after.optimum="2pt">
<fo:block break-after="page"
break-before="page">
<xsl:for-each
select="title">
<xsl:apply-templates
/>
</xsl:for-each>
</fo:block>
</fo:block>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org