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

FW: Re: Pagebreaks in Excel-HTML transformer

Subject: FW: Re: Pagebreaks in Excel-HTML transformer
From: cknell@xxxxxxxxxx
Date: Thu, 02 Feb 2006 15:41:54 -0500
xsl excel html
Never take the mailing list out of the loop.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Oleg Konovalov <olegkon@xxxxxxxxx>
Sent:     Thu, 2 Feb 2006 15:38:45 -0500
To:       "cknell@xxxxxxxxxx" <cknell@xxxxxxxxxx>
Cc:       jonathan.gorman@xxxxxxxxx
Subject:  Re: Re:  Pagebreaks in Excel-HTML transformer

Charles,

I missed something in my posting:
> As I mentioned, <table> and  elements disappear in that transformer
> despite having <x:PageBreaks>
Should be:
> As I mentioned, <table> and
> <page-break></page-break> elements disappear in that transformer
> despite having <x:PageBreaks>  [see around line 1095 - it's in a proper place]
And there is XSL transformer (line 316):
<xsl:template match="page-break"/>

So (by analogy) you are saying that if I expand that template like:
<xsl:template match="page-break">
   <!--
     page-break-after: always;
   -->                                                            <--
not sure that is correct syntax
</xsl:template>
that should put back all page breaks ?

And I won't need <table> element then ?
And <x:PageBreaks> either ?

TIA,
Oleg.
P.S.:  Mailing list rejected my post with attached files  :-(

On 2/2/06, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> wrote:
> > As I mentioned, <table> and  elements disappear in that transformer
> > despite having <x:PageBreaks>
>
> The production of <table> elements in your output has no connection with the production of <x:PageBreaks> elements. They are produced before the <xsl:apply-templates> is applied in the template that matches "/".
>
> The reason that no <table> elements are produced is that your template matching <table> does not output a <table> element.
>
> Here is your template that matches "table".
>
>         <xsl:template match="table">
>                 <xsl:apply-templates/>
>         </xsl:template>
>
> Now compare this to your template that matches "row":
>
>         <xsl:template match="row">
>                 <tr>
>                         <xsl:apply-templates/>
>                 </tr>
>         </xsl:template>
>
> Notice that the latter emits a "tr" element while the former does not emit a "table" element.
>
> Change the first template to:
>
>         <xsl:template match="table">
>            <table>
>                 <xsl:apply-templates/>
>            </table>
>         </xsl:template>
>
> and you will get table elements in your output.
> --
> Charles Knell
> cknell@xxxxxxxxxx - email

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.