Click to See Complete Forum and Search --> : XSL or CSS - screen and print


jeeves
11-01-2006, 05:08 AM
Hi.

I am wanting to use an XML file created from another application to display the results in a browser - preferably using XSL. I have this working but want to also be able to print it nicely. I have had a brief look at XSL-FO but am unsure if this is the best way to go. Is the only way to produce decent print to use FOP (or something) which creates a pdf. I would rather it printed directly from the browser without creating the pdf (which demands that Adobe reader and FOP.. installed on the client (or at least the server).

Some people still seem to be using CSS and prefer it - as I am just starting in this area, I want to start with the up-to-date preferred way.

Any help would be appreciated.

Jeeves

Charles
11-01-2006, 05:26 AM
I don't think that you are going to find a browser that understands FO so if you want to do this client side you'll need a print CSS stylesheet.

jeeves
11-01-2006, 06:06 AM
Thanks Charles. So would you suggest that I dont use XSL at all and do it all with CSS?

Thanks

Charles
11-01-2006, 06:11 AM
Not at all. Use XSL to transform the XML to HTML client side. And all good HTML documents should have CSS stylesheets.

jeeves
11-01-2006, 07:35 AM
Thanks for your help Charles.