Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to print a XML file

Status
Not open for further replies.

gadafi

Programmer
Jan 17, 2005
3
ES
Hi:
I'm working with a XML file which is transformed by a XSL stylesheet. I have a problem because the list I get in HTML is going to be printed and I need to control the paging. Do you know how I can control the page breaks? All the data is shown in a table and some lines become multiline because of it length.
Thanks and help me please ;)
 
HTML is a 'pageless' rendering technology. There is no direct way to fully control paging. We had the same requirements where I work and we've ended up going down the XSL:FO route.

Instead of your XSL stylesheet producing HTML as output, you need to write one to produce XSL:FO. This can then be used to generate PDFs, which are a paged technology. Do a Google for xsl:fo and have a look at Apache FOP (if you know Java).

Tim
 
You can also write a CSS to do paging.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top