Ask the Expert

Generating page numbers and headers in monthly statements

I am trying to generate monthly activity statements using XML. Although I can define a header and body (containing the monthly activity), I am stuck as how to check for the end of the page. I need to throw a page feed and reproduce the header for each page.

Does the solution change if I have to include a page number in the header?


    Requires Free Membership to View

This is a function of your output pagination system rather than of the XML. For example, if you were using XSLFO, you would specify a "running header". You can also do this by targeting, say Word RTF or OpenOffice SXW format.

The easiest thing to do is set the pages up the way you want, then programatically generate the content in the required format. I find OpenOffice's SXW very useful for this sort of thing. (It's just a zip file containing four XML files.)


This was first published in February 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: