Hello;

I am working on creating all the various layouts our product supports in FO.

Having some issues.

The code below runs when it is time to get the FO input:

<!-- fo root: all document properties go inside this tag -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<!-- configure the page attributes -->
<fo:layout-master-set>
<fo:simple-page-master master-name="simple" page-height="29.7cm"
page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- ouput the content -->
<fo:page-sequence master-reference="simple">
<xsl:call-template name="s2_pdf" />
</fo:page-sequence>
</fo:root>


Here is the template it calls:

<xsl:template name="s2_pdf">
<fo:flow flow-name="xsl-region-start">
<fo:block >
<IMG SRC="{$spacepath}" WIDTH="9" HEIGHT="1" />
</fo:block>
</fo:flow>
<fo:flow flow-name="xsl-region-body">
<!-- text 1 -->
<fo:block font-family="Arial" font-size="12pt" font-weight="bold"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('1')" />
<xsl:with-param name="text_firstname" select="string('TEXT')" />
<xsl:with-param name="texttype" select="string('norich')" />
</xsl:call-template>
</fo:block>
<!-- text 2 -->
<fo:block font-family="Arial" font-size="12pt" font-weight="normal"
text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('2')" />
<xsl:with-param name="text_firstname" select="string('TEXT')" />
<xsl:with-param name="texttype" select="string('norich')" />
</xsl:call-template>
</fo:block>
</fo:flow>

I have 2 problems.

1. With the image tag the way that it is, I get an error claiming the tag
needs an accompaning </img>. This is confusing to me because the tag above
contains a /.
2. If I take the image tag out I get a message complaining about more than
one flow in a page sequence. How else can I write to different xsl: regions
of the same page? Should I just use tables for this?

Thanks,

Luke


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to