[xsl] FOP transform region issue

Subject: [xsl] FOP transform region issue
From: mark bordelon <markcbordelon@xxxxxxxxx>
Date: Tue, 27 Oct 2009 10:28:25 -0700 (PDT)
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: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"
     <fo:region-body margin-left="0.50in" margin-top="1.25in" />
     <fo:region-before extent="1in"/>
   <fo:page-sequence master-reference="cover_letter"
    <fo:static-content flow-name="xsl-region-before"> <!-- none of this is
appearing !!! -->
     <fo:table table-layout="fixed">
    <fo:flow flow-name="xsl-region-body">
     <fo:block font-family="LinotypeSyntax" font-size="8pt"
    </fo:flow> <!-- for the body -->
(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

Current Thread