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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page breaks

Status
Not open for further replies.

Mike Gagnon

Programmer
Joined
Apr 6, 2002
Messages
8,067
Location
CA
I'm new at XML (and XSL) and I'm not entirely clear on the concept of Page Breaks.

[ol][li]Do I put the in the XML or the XSL (or CSS sheet for that matter)?[/li]
[li]If in the XSL, I have seen many suggestion here and on the net, as to how to do it, I have yet to achieve any results.[/li][/ol]

I need to have an invoice shown in the Internet browser and force a page break between page 1 and the other pages (possibly force on all subsequent pages).

Thank you in advance.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
put this tag in your XSLT template file

<div style="page-break-after:always">
[Invoice Info Here]
</div>

or

<div style="page-break-before:always">
[Invoice Info Here]
</div>

I am brand new to xml and xslt also. I found other options for the value after the colon (left, right, avoid), but they all seem to do the same thing as 'always'. I also can't seem to get ride of the extra white page (last or first page depending on which break you use) generated with page breaks.

Jason Meckley
Database Analyst
WITF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top