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!

How to force a page break in the XSLT Transformation of a XML file?

Status
Not open for further replies.

bundyld

Programmer
Oct 2, 2001
43
US
Hello,

I am developing a java package for my company that is going to import a number of text files into a SQL Server7 database and then in the servlets generate a listing of information about patients which is the XML file, using printwriter() out.println(""); to display the XML through a browser. I am using XSLT to style the output to html.

My question is then, how can I force a page break after a specific number of lines have been reached so that I don't have a patients information split between pages when it is printed from by the end user who will be entering that information into a Unix Program for processing?

I would like to thank whom ever might help out with this problem in advance. Thank You.

Lance
CBG
 
Don't worry I figured this one out on my own as well. thanks though.

"for anyone else who might have this problem and see this post the answer is to just do a little javascripting inside the .xsl file. run a if or for loop for what ever you need, "these will be xsl scripts. for-each etc.." then when you reach the point at which you want to break the page just add a css style style="page-break-before: always" that's all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top