xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zieseni├č, Markus" <ziesen...@mecklenburgische.de>
Subject AW: Page Numbers
Date Fri, 07 Feb 2003 11:26:38 GMT
in your simple-page-master master-name="main" you have to insert
<fo:region-after extent="1cm"/>.

That should work.
Markus

> -----Urspr├╝ngliche Nachricht-----
> Von:	Ben.Temperton@Marlborough-Stirling.com
> [SMTP:Ben.Temperton@Marlborough-Stirling.com]
> Gesendet am:	Freitag, 7. Februar 2003 12:13
> An:	fop-user@xml.apache.org
> Betreff:	Page Numbers
> 
> I'm trying to get page numbers to appear in a PDF document using the
> following code:
> 
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 			<fo:layout-master-set>
> 				<fo:simple-page-master master-name="main"
> page-height="29.7cm" page-width="21cm" margin-top="2cm"
> margin-bottom="2cm"
> margin-left="2cm" margin-right="1.2cm">
> 					<fo:region-body/>
> 				</fo:simple-page-master>
> 				<fo:page-sequence-master
> master-name="single">
> 					<fo:single-page-master-reference
> master-name="main"/>
> 				</fo:page-sequence-master>
> 			</fo:layout-master-set>
> 			<fo:page-sequence master-name="single"
> initial-page-number="1">
> 				<!--<fo:sequence-specification>
> 					<fo:sequence-specifier-alternating
> page-master-first="main" page-master-odd="main" page-master-even="main"/>
> 				</fo:sequence-specification> -->
> 				<fo:static-content
> flow-name="xsl-region-after">
> 					<fo:block text-align="center"
> font-size="10pt" font-family="serif" line-height="14pt"> Test - p.
> <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>
> 
> But I keep getting the following warning:
> WARNING: region-name 'xsl-region-after' doesn't exist in the
> layout-master-set.
> 
> and no page numbers.
> 
> How and where do I add xsl-region-after to the <fo:layout-master-set> in
> order to get it to work?
> 
> 
> More importantly, is there a comprehensive tutorial on FOP anywhere which
> explains what each of the elements and attributes do? So far I've only
> come
> across examples and getting anything to work is a 3 hour exercise in
> banging
> my head against the desk :)
> 
> 
> Many thanks in advance,
> 
> Ben
> 
> 
> ______________________________________________________________
> 
> CONFIDENTIALITY NOTICE
> This communication and the information it contains is intended for the
> person or organisation to whom it is addressed.  Its contents are
> confidential and may be protected in law.  Unauthorised use, copying or
> disclosure of any of it may be unlawful.  If you are not the intended
> recipient, please contact us immediately.
> 
> The contents of any attachments in this e-mail may contain software
> viruses, which could damage your own computer system.  While Marlborough
> Stirling has taken every reasonable precaution to minimise this risk, we
> cannot accept liability for any damage which you sustain as a result of
> software viruses.  You should carry out your own virus checking procedure
> before opening any attachment.
> 
> Marlborough Stirling plc, Registered No. 3008820,
> Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
> Tel: 01242 547000     Fax: 01242 547100
> http://www.marlborough-stirling.com
> 
> The following companies are subsidiaries of Marlborough Stirling plc and
> are registered in England and Wales at the above address:
> Marlborough Stirling PLC, Registered No. 3008820
> The Marlborough Stirling Group PLC, Registered No. 1855353
> Marlborough Stirling Administration Limited, Registered No. 2341195
> Metgem Limited, Registered No. 02341195
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message