I'm looking at a legacy XSL-FO file.
Currently, it would print the name at the lower left corner. Does anyone know how to modify the below code so that the the name appears in the body part?
I'm confused about a few things:
1) inside the simple-page-master,
Why are there these two code sniplets, both region-body and region-after?
<fo:region-body/>
<fo:region-after extent="1in"/>
Which is being used?? Evidently, the region-after is being used.
2) Is the value to flow-name just any old string or is it very specific and have meaning? I changed the name to xsl-region-blah and there's an error, so that tells me it's very specific
<fo:static-content flow-name="xsl-region-after"
However, I don't understand how the above code comes into play because according to RenderX's tutorial, if the page-sequence master-reference points to the page master, then the flow would come from the page master, for example,
<fo:page-sequence master-reference="Mail">
points to Mail, so it would reference this:
<fo:simple-page-master margin-left="1in" margin-right=".5in" margin-top=".5in"
page-width="8.5in" page-height="11in" master-name="Mail">
<fo:region-body/>
<fo:region-after extent="1.6in"/>
</fo:simple-page-master>
and that page master uses either region-body or region-after. What I'm not getting is, which one is it using, body or after?
The below code belongs to a much larger xsl-fo file.
<?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 version="1.0" method="xml" omit-xml-declaration="no" indent="yes"/>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master margin-left=".5in" margin-right=".5in" margin-top=".5in" margin-bottom=".5in"
page-width="8.5in" page-height="11in" master-name="PickUp">
<fo:region-body/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
<fo:simple-page-master margin-left="1in" margin-right=".5in" margin-top=".5in"
page-width="8.5in" page-height="11in" master-name="Mail">
<fo:region-body/>
<fo:region-after extent="1.6in"/>
</fo:simple-page-master>
<fo:simple-page-master margin-left=".5in" margin-right=".5in" margin-top=".5in" margin-bottom=".5in"
page-width="8.5in" page-height="11in" master-name="Fax">
<fo:region-body/>
<fo:region-after/>
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:for-each select="transactionItemList/transactionItems">
<xsl:if test="deliveryInfo/deliveryMethod/type='Mail'">
<fo:page-sequence master-reference="Mail">
<fo:static-content flow-name="xsl-region-after" font-size="9pt" font-family="Univers Medium">
<fo:block-container>
<fo:table>
<fo:table-column column-number="1"/>
<fo:table-body>
<fo:table-row text-align="left" height="1in">
<fo:table-cell display-align="center">
<fo:block >
Person who ordered transcript:
</fo:block>
<fo:block >
Firstname: <xsl:value-of select="studentFirstName"/>
</fo:block>
<fo:block>
Lastname: <xsl:value-of select="studentLastName"/>
</fo:block>
...
...
...
Thanks in advance for your help. BTW, I did change region-after to region-body but it won't work because it mentions there's duplicate region-body. I removed the region-after, and I get an error.