XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bob ChauvinSubject: page-break-after or break-after?
Author: Bob Chauvin
Date: 04 Nov 2005 09:02 AM
I'm printing n-up labels and want to page break after 6 labels have been printed.

I'm using HTML output. What is the best practice for accomplishing this?

Postnext
(Deleted User) Subject: page-break-after or break-after?
Author: (Deleted User)
Date: 04 Nov 2005 09:43 PM
Bob,
Have you considered using XSL-Fo? Use xslt to create an XSL-FO file, then post-process that to a .pdf file. You can setup the entire process with a single .xslt file and specify FO post-processing in the scenario.

If you find this to be an attractive alternative, let us know and we can give you more help.

Meanwhile, here are a couple of references:

http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html
xml.apache.org/fop

Clyde

Postnext
Bob ChauvinSubject: page-break-after or break-after?
Author: Bob Chauvin
Date: 04 Nov 2005 10:13 PM
I've used Ghostscript via Sybase's Datawindow.Net Print to PDF option.

I'm now wondering how difficult the installation will become for this VB.Net Client/Outlook Add-in.

Are there any basic page breaking syntax that the browsers understand? Or, can I embed a hidden fop command that would be read by Acrobat distiller?

Altova's "free" custom xslt engine does include this functionality, which leads me to believe that they, but your then stuck with their tool.

>Bob,
>Have you considered using
>XSL-Fo? Use xslt to create an
>XSL-FO file, then post-process
>that to a .pdf file. You can
>setup the entire process with
>a single .xslt file and
>specify FO post-processing in
>the scenario.
>
>If you find this to be an
>attractive alternative, let us
>know and we can give you more
>help.
>
>Meanwhile, here are a couple
>of references:
>
>http://www.ibiblio.org/xml/boo
>ks/bible2/chapters/ch18.html
>xml.apache.org/fop
>
>Clyde

Postnext
Ivan PedruzziSubject: page-break-after or break-after?
Author: Ivan Pedruzzi
Date: 04 Nov 2005 10:43 PM
>I've used Ghostscript via Sybase's Datawindow.Net Prin to PDF option.
>I'm now wondering how difficult the installation
>will become for this VB.Net Client/Outlook Add-in.

If your app is written in VB.Net you can use the .NET XSLT processor
System.Xml.XslTranform.

There is also an open source .NET FO processor to generate PDF
http://sourceforge.net/projects/nfop

To recap

From XML to FO using System.Xml.XslTranform
From FO to PDF using NFOP

That should simplify your deployment.


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Bob ChauvinSubject: page-break-after or break-after?
Author: Bob Chauvin
Date: 05 Nov 2005 12:37 AM
That seems clear.

I have no problem yet with the xslt transform to html, though it's not optimized for printing..

I'm still wondering if Im missing some basic HTML for a hard page break.
For, example, this web site talks about using CSS style='page-break-inside: avoid'. . .

I'll investigate....

Postnext
Ivan PedruzziSubject: page-break-after or break-after?
Author: Ivan Pedruzzi
Date: 05 Nov 2005 01:31 AM
Bob,

You can use CSS (cascade style sheet) to handle page break, but you will be at mercy of the browser.

The fundamental problem is that HTML is not design to render physical layout like printing on paper. XSL-FO is far more superior for building
reports.

In any case here is the reference to page-break
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pageBreakBefore.asp

Ivan Pedruzzi
Stylus Studio Team

Posttop
Bob ChauvinSubject: page-break-after or break-after?
Author: Bob Chauvin
Date: 05 Nov 2005 01:56 AM
Since I'm browsing from w/ MS Outlook, the browser is a given (IE).

So, I'll go down that road.?.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.