Problem solve Get help with specific problems with your technologies, process and projects.

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?

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.)

Dig Deeper on Topics Archive

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.