OK, following instructions,
I have only one flow for the body and static-content for the before-region.
Structure looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
<xsl:output method="xml" version="1.0" omit-xml-declaration="no"
indent="yes"/><xsl:strip-space elements="*"/>
<xsl:template match="TEAMS_ASSET_FILE">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="cover_letter" page-width="8.5in"
page-height="11in" margin-top="0.5in" margin-bottom=".5in" margin-left="0.5in"
margin-right="1in">
<fo:region-body margin-left="0.50in" margin-top="1.25in" />
<fo:region-before extent="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="cover_letter"
force-page-count="no-force">
<fo:static-content flow-name="xsl-region-before"> <!-- none of this is
appearing !!! -->
<fo:table table-layout="fixed">
</fo:table>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="LinotypeSyntax" font-size="8pt"
xmlns:helper="xalan://com.artesia.ps.misc.Helper">
</fo:block>
</fo:flow> <!-- for the body -->
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
(For simplicity's sake, I removed the after-region. since this is a one-page
page-sequence, the page count is not necessary.)
Oddly enough, I checked to make sure that=A0all regions=A0still transform
perfectly in SPY (I am using the built-in XSLT engine to perform XSLT part, and
the FOP-0.95 for the FO).
But the bad news is the static-content for the before-region does not appear in
the java transformation even though the body transforms fine.=20
I get these log messages:
using the=A0org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
building formatting object tree
setting up fonts
Parsing of document complete, stopping renderer
Initial heap size: 76700Kb
Current heap size: 76700Kb
Total memory used: 0Kb
Memory use is indicative; no GC was performed
These figures should not be used comparatively
Total time used: 10ms
Pages rendered: 0
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--