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

Re: How to Create Side Heads in XSL-FO

Subject: Re: How to Create Side Heads in XSL-FO
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Wed, 23 Jan 2002 09:20:27 -0600
Re:  How to Create Side Heads in XSL-FO
"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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.