I am trying to get page numbering to work but it's not showing up. Here's
what I have:

<xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        
        <xsl:variable name="pagewidth">11</xsl:variable>

        <xsl:template match="document">
                <xsl:processing-instruction
name="cocoon-format">type="text/xslfo"</xsl:processing-instruction>
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                <fo:layout-master-set>
                        <fo:simple-page-master
                                master-name="main"
                                page-height="8.5in"
                                page-width="{$pagewidth}in"
                                margin-top="0.5in"
                                margin-bottom="0.5in"
                                margin-left="0.5in"
                                margin-right="0.5in">
                                <fo:region-body/>
                        </fo:simple-page-master>
                </fo:layout-master-set>

                <fo:page-sequence 
                        master-name="main"
                        initial-page-number="1">
                        <fo:static-content flow-name="xsl-after">
                                <fo:block text-align="centered">
                                        <fo:page-number/>
                                </fo:block>
                        </fo:static-content>

                        <fo:flow flow-name="xsl-region-body">
                                <xsl:apply-templates/>
                        </fo:flow>
                </fo:page-sequence>
                </fo:root>
        </xsl:template>

I am using FOP 0.14. Any help would be greatly appreciated!


-Eric

=======================================
Eric Deandrea             (978) 698-6351
Software Engineer        [EMAIL PROTECTED]
Inforonics, Inc
30 Porter Rd.
Littleton, MA 01460  


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

Reply via email to