Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Adding Page Break >Thread Next - Re: Adding Page Break Re: Adding Page BreakTo: NULL Date: 4/11/2008 4:46:00 AM On Apr 10, 8:51=A0am, Martin Honnen <mahotr...@yahoo.de> wrote: > Tambrosi wrote: > > Hope somebody can answer this, =A0I am real new to this XSL stuff. =A0I > > need to add a page break to a document after displaying a line of > > data. =A0I went thru and scanned the forum and tried the page break > > statement, but it does not seem to work. Would like to page break or > > add a blank line. > > How you add a page break is not a question of XSLT. It solely depends on > the result format you create with your XSLT. If you want to create a > HTML document then all that you can use is CSS 2 page break properties > <URL:http://www.w3.org/TR/CSS21/page.html#page-breaks> and hope that the > browser supports them when printing your HTML document: > =A0 =A0<tr style=3D"page-break-after: always;"> > > -- > > =A0 =A0 =A0 =A0 Martin Honnen --- MVP XML > =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/ Thanks for the info, I tried the command <tr style=3D"page-break-after: always;"> and the document did not page break. How do you know if the broswer supports a page break. Actually this document is being opened in Outlook and printed from there. This is the full code set. Is there something else that I need to change. Or if I could just add a blank line to the document. That would be ok. Any help would be appreciated. Thanks Terry <?xml version=3D"1.0"?> <xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/ Transform"> <xsl:output method=3D"html"/> <xsl:template match=3D"Alert"> <HTML> <head> <style type=3D"text/css"> h1 { font-family: tahoma; font-weight: bold; color: #ff0000; font-size: 18pt} h2 { font-family: tahoma; font-weight: bold; font-size: 12pt} table { font-family: arial; font-size: 10pt } tr { background: #FFFFFF; border-size: 1; border-color: #000000} td { border-width: 1; border-style: solid; border-color: #000000 } td.actionitems { text-align: left; padding} td.heading { font-family: tahoma; font-weight: bold; text- align: left} td.value { text-align: left; padding} </style> </head> <body> <h1>Alert: <xsl:value-of select=3D"AlertCondition/@name"/></h1> <h2>Alert Details</h2> <table cellspacing=3D"0" border=3D"1" cellpadding=3D"3"> <tr> <td class=3D"heading">Assigned to:</td> <td class=3D"value"><xsl:value-of select=3D"AlertCondition/ @assignedUser"/></td> </tr> </table> <h2>Address/Order Items</h2> <table cellspacing=3D"0" border=3D"1" cellpadding=3D"3"> <xsl:for-each select=3D"ActionItems"> <xsl:for-each select=3D"ActionItem"> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@CompName2"/></td> </tr> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@CompStreet"/></td> </tr> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@CompCity"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@CompState"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@CompZip"/></td> </tr> <tr> <td class=3D"heading">Product Design</td> <td class=3D"heading">Customer Spec</td> <td class=3D"heading">Job Number</td> <td class=3D"heading">Order Date</td> <td class=3D"heading">Due Date</td> <td class=3D"heading">P.O. Number</td> <td class=3D"heading">Order Desc</td> <td class=3D"heading">Order Qty</td> <td class=3D"heading">Earliest Date</td> </tr> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@DesignNumber"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@CustSpec"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@JobNumber"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@OrdDate"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@DueDate"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@PONum"/ ></td> <td class=3D"actionitems"><xsl:value-of select=3D"@OrdDesc"/></td> <td class=3D"actionitems"><xsl:value-of select=3D"@OrdQty"/ ></td> <td class=3D"actionitems"><xsl:value-of select=3D"@EarlyDueDate"/></td> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@SpaceCtrl"/></td> </tr> <tr class=3D"actionitems"> <td class=3D"actionitems"><xsl:value-of select=3D"@SpaceCtrl"/></td> </tr> </tr> </xsl:for-each> </xsl:for-each> </table> </body> </HTML> </xsl:template> </xsl:stylesheet> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
