473,499 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL:FO Question

Hello all,

I have got a Question about XSL:FO:

A XML-File contains any customers. For every customer I have to
generate a letter. This letter can contain - depending on the
information about the customer - from 1 to 5 pages.

On every page I have to put the relative page number (e.g. 1-5) and
the absolute page number (e.g. 456). All letter should be in one
result-pdf-file.

Furthermore I have to put a code for an enveloping machine (depending
on the relative page number) on every page.

I think I have to use the page-sequence-master but I can't find any
further information / examples.....

Can someone help me?

Thanks in adavance!
Marc
Jul 20 '05 #1
1 1629
I've got this working with much the same situation that you have. In
order to do page numbering within a letter, you simply need a
page-sequence for each. Ex:

<xsl:template match="/">

<fo:root>
<fo:layout-master-set>
<xsl:call-template name="invoice_layout_master"/>
</fo:layout-master-set>

<xsl:apply-templates select="/invoice_set/invoice"/>

</fo:root>
</xsl:template>

The <xsl:template match="invoice"> then has a page sequence. At the
very end of the region-body I have an empty block:

<fo:block id="{generate-id()}"/>

Which is referenced in region-after using page-number-citation like
so:

<fo:page-number-citation ref-id="{generate-id()}"/>

That should give you an idea of how to do the letter-level page
numbering; I'm not sure how you can do overall page numbering, but I
have seen discussion about envelope machine marking on the fop-user
mailing list.

Mike

mo***@gmx.de (MArc Baumgartner) wrote in message news:<df*************************@posting.google.c om>...
Hello all,

I have got a Question about XSL:FO:

A XML-File contains any customers. For every customer I have to
generate a letter. This letter can contain - depending on the
information about the customer - from 1 to 5 pages.

On every page I have to put the relative page number (e.g. 1-5) and
the absolute page number (e.g. 456). All letter should be in one
result-pdf-file.

Furthermore I have to put a code for an enveloping machine (depending
on the relative page number) on every page.

I think I have to use the page-sequence-master but I can't find any
further information / examples.....

Can someone help me?

Thanks in adavance!
Marc

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2140
by: Philip Meyer | last post by:
1) setting image as Background with alignment in center not working..help Explanation : i need to set a image as background and also it should be dispalyed in the center.i am using apache fop...
4
2717
by: David | last post by:
Hello list, I'm using XML + XSL + CSS to display my data to the web. I also want to publish my pages in PDF format. To accomplish this I first must transform my XML + XSL + CSS in XSL-FO. Is...
2
3802
by: Caroline | last post by:
Using XSL-FO, how can I specify a margin, or identation, with respect to a block's containter, and not an absolute path on the PDF file?
0
3934
by: Rary | last post by:
I am using XSL:FO to generate PDF report for my XML, generating it in tables, i want that tables should completely be at one place, if there is a page break , all the contents of the table should...
0
2402
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
5
4390
by: shauldar | last post by:
Is there a way (tool, hack...) to create an XSL:FO from an XSLT + XML files? My motivation is that we want to use a tool to design reports, and from that "design" generate both HTML (via XSLT)...
0
2471
by: jklBruin | last post by:
i'm trying to implement converting xsl-fo to pdf on a .Net page. i''m getting the error message: Root element must be root, not http://www.w3.org/1999/XSL/Transform:stylesheet here's the xsl...
5
5092
by: cleary1981 | last post by:
Hi, Im a little out of my depth using xsl fo here. I have a table of items and each has a price in the second row of the table. I need to display a total at the bottom of the row. My problem is...
1
5314
by: cleary1981 | last post by:
Hi, I am trying to add page numbers to my document in xsl fo. I can get the page numbers to work but I need them to show at the bottom of each page. I know you can define an area as region-after...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.