[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL-FO Page numbering

Subject: RE: XSL-FO Page numbering
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Mon, 6 Dec 2004 03:32:53 -0800 (PST)
xsl fo page number
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: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>
<fo:block id="theEnd"/>
</xsl:stylesheet>
--- Arun Sinha <arunsinha666@xxxxxxxxxxx> 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
> 
>
_________________________________________________________________
> Microsofts festive bonanza! Buy a branded Home PC. 
> http://server1.msn.co.in/sp04/festivebonanza/ Win a
> fabulous holiday!
> 
> 


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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.