473,763 Members | 3,901 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 1650
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_l ayout_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.goo gle.com>...
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
2158
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 0.25 Problem : i am using apache fop 0.25 and i used the below to set a gif as background and alignment to be center...
4
2732
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 there a know technique to transform my data to XSL-FO without loosing my markup. For example, transformation my data to XHTML first and later from XHTML to XSL-FO? Hope someone can help me on this one.
2
3822
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
3952
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 move to the next page. can any one suggest a way out? This is my code (number 18, Brunelli Rocco, should move to the next page): XML: <?xml version="1.0" encoding="windows-1252"?>
0
2432
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 <fo:layout-master-set> <fo:simple-page-master margin-left="0.5in" margin-right="0.5in" page-width="8.5in" margin-bottom="0.5in" master-name="Section-odd-page" margin-top="0.5in" page-height="14in"> <fo:region-after region-name="xsl-region-after-odd"
5
4415
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) and PDF (via XSL:FO). The only tool we have seen is Altova's StyleVision, which is very unfriendly (and uses a proprietary representation, SPS, from which it generates the various XSLs). We have considered instead using InfoPath, which is WYSIWYG,...
0
2493
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 i'm using. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet
5
5113
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 that I can't work out how to perform addition in xsl fo. Here's my xsl file where I have created the table. <!-- Nextpage: Quote --> <fo:block break-before="page" space-before="2in" space-after="2in"> <fo:block...
1
5326
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 but don't know how. Heres my xsl file so far. <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" ...
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9822
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.