Re: [xsl] How to Create Side Heads in XSL-FO

Subject: Re: [xsl] How to Create Side Heads in XSL-FO
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Wed, 23 Jan 2002 09:20:27 -0600
"G. Ken Holman" wrote:
> 
> At 2002-01-22 18:15 -0600, W. Eliot Kimber wrote:
> >I think I could do it using either a single-item fo:list or a single-row
> >table but I'm thinking that it must be easier and that I'm just missing
> >the obvious.
> 
> If you regarding <list> and <table> constructs as merely layout facilities
> that reflect the kind of layout you need, these do turn out to be the easiest.

That helps very much. I guess I wasn't missing anything then.

However, can you explain the result illustrated below? 

Here is my current template (which by my understanding shouldn't give me
the result I expect, and doesn't quite):

<xsl:template name="chapter-title">
  <fo:block
      xsl:use-attribute-sets="title-characteristics"
      break-before="odd-page"
      >
    <fo:block
        font-size="78pt">
      <xsl:number/>
    </fo:block>
    <fo:block
        margin-left="{$offset-margin-left}"
        space-after.optimum="90pt"
        font-weight="normal"
        font-size="30pt">
      <xsl:apply-templates/>
    </fo:block>
  </fo:block>
</xsl:template>

What I get (with XSL Formatter) is the 78pt number and the title text
presented side-by-side on the same baseline. I expected the title text
to be presented *below* the number (that is, the block for the title
text would follow the number block in the block presentation direction).
Here's what I got:

  **
 ***
****
  **
  **
******     This is the title text

This isn't the presentation effect I need: I need the title text and
number to have the same top alignment (e.g., <tr valign="top">). 

Just curious why this *almost* worked.

Thanks,

Eliot
ISOGEN International, LLC

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread