xsl-list
[Top] [All Lists]

Re: Pagebreaks in Excel-HTML transformer

2006-02-03 12:54:21
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(_at_)yahoo(_dot_)com> 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(_at_)onebox(_dot_)com 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(_at_)onebox(_dot_)com - email



--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--