[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Pagebreaks in Excel-HTML transformer

Subject: Re: Pagebreaks in Excel-HTML transformer
From: Oleg Konovalov <olegkon@xxxxxxxxx>
Date: Fri, 3 Feb 2006 14:54:21 -0500
excel css
Charles,

If I run it through XMLSpy2006, I do get page-break-after properly inserted,
but I couldn't open it normally with either Excel (was all screwed up)
or IE6 (looks like 1 long page, if I do Print Preview, it creates 10 blank
pages
and then puts all without any page breaks).

In order to open it in IE with Excel plug-in,
we put the HTML Serializer with the mime type "application/ms-excel"

I just checked, that serializer removes all "page-break-after"
and inserts "page-break-before" where it pleases (e.g. incorrectly)
What should I do ?

Mike,

I wish I knew how to apply the CSS to HTML is situation like mine
(between XSL and serializer with mime type "application/ms-excel").
Are you saying that construct:
<xsl:template match="page-break">
  <br style="page-break-after:always;">
  </br>
</xsl:template>
is not supposed to work ?

Please advise.

Thank you,
Oleg.

On 2/3/06, Mike Ferrando <mikeferrando@xxxxxxxxx> wrote:
> Charles K.,
> The only way to get this is to use the CSS in the HTML document.
>
> Of course this is a browser dependent.
>
> IE still respects
>
> P.breakmypage
> {
> PAGE-BREAK-AFTER: always;
> }
>
> <p class="breakmypage"></p>
>
> Other browsers have their own issues.
>
> Mike Ferrando
> Library Technician
> Library of Congress
> Washington, DC
> 202-707-4454
>
> --- cknell@xxxxxxxxxx wrote:
>
> > I've run your stylesheet against the XML you provided. It produces
> > an HTML file with a single table, visually broken into sections.
> > When I examine the output I see three new lines at each point where
> > you indicate you want a page break.
> >
> > HTML doesn't have any concept of a page break. Each document is a
> > page, however long it may be. What is it that you want to appear in
> > your HTML at the points where the three blank lines appear?
> >
> > Is it that you wish to produce multiple HTML documents, one for
> > each <page-break>?
> > --
> > Charles Knell
> > cknell@xxxxxxxxxx - email
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.