xsl-list
[Top] [All Lists]

RE: XSL-FO Page numbering

2004-12-06 04:41:09
Arun,
     Thanks. Such a silly mistake uhh..

regards,
Ranjan
--- Arun Sinha <arunsinha666(_at_)hotmail(_dot_)com> wrote:

Hi

See below.
That should work.

Cheers.

Arun,
    Please find the stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                            xmlns:fo="http://www.w3.org/1999/XSL/Format";
                version="1.0">
<xsl:template match="/">

    <fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
            <fo:layout-master-set>
                    <fo:simple-page-master master-name="A4"
                            page-width="297mm" page-height="210mm"
                            margin-top="0.5in" margin-bottom="0.5in"
                             margin-left="0.5in" margin-right="0.5in">
                             <fo:region-before extent="1.0in"/>
                             <fo:region-body margin-top="1.0in"
margin-bottom="1.0in"/>
                             <fo:region-after extent="1.0in"/>
                    </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence master-reference="A4"
initial-page-number="1" language="en" country="us">
                    <fo:static-content
flow-name="xsl-region-before">
                            <fo:block> The Periodic Table</fo:block>
                    </fo:static-content>
                    <fo:static-content flow-name="xsl-region-after">
                            <fo:block>Page <fo:page-number/> of
<fo:page-number-citation
ref-id="theEnd"/></fo:block>
                    </fo:static-content>
                    <fo:flow flow-name="xsl-region-body">
                            <xsl:apply-templates select="//td"/>
                                                    
            <fo:block 
id="theEnd"/>


                    </fo:flow>
            </fo:page-sequence>
    </fo:root>
</xsl:template>
<xsl:template  match="font">
    <fo:block><xsl:value-of select="."/></fo:block>
    <fo:block><xsl:value-of
select="@face"/></fo:block>
    <fo:block><xsl:value-of
select="@size"/></fo:block>
</xsl:template>
</xsl:stylesheet>
--- Arun Sinha <arunsinha666(_at_)hotmail(_dot_)com> wrote:

Hi


I want to display "Page number n of m" for each
page
of my stylesheet.
I have declared the page numbering as below:


The syntax seems to be correct but you might
have
placed
it at the wrong place.

Need to see the stylesheet first.

Cheers.

Arun



_________________________________________________________________
Microsoft?s festive bonanza! Buy a branded Home
PC.
http://server1.msn.co.in/sp04/festivebonanza/
Win a
fabulous holiday!




--~------------------------------------------------------------------
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>
--~--




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


--~------------------------------------------------------------------
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>
--~--



_________________________________________________________________
Microsoft?s festive bonanza! Buy a branded Home PC. 
http://server1.msn.co.in/sp04/festivebonanza/ Win a
fabulous holiday!



--~------------------------------------------------------------------
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>
--~--




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
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>
--~--