This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to Create Side Heads in XSL-FO
- From: DPawson at rnib dot org dot uk
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 23 Jan 2002 15:57:19 -0000
- Subject: RE: [xsl] How to Create Side Heads in XSL-FO
- Reply-to: xsl-list at lists dot mulberrytech dot com
> <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">).
Sure its by the side Eliot?
Not,
> **
> ***
> ****
> **
> **
> ******
This is the title text
Table layout suggested,
<fo:table-cell border="solid black 1px"
display-align="start"
border-collapse="collapse"
text-align="center">
<fo:block font-weight="bold">XXX</fo:block>
</fo:table-cell>
HTH DaveP
-
NOTICE: The information contained in this email and any attachments is
confidential and may be legally privileged. If you are not the
intended recipient you are hereby notified that you must not use,
disclose, distribute, copy, print or rely on this email's content. If
you are not the intended recipient, please notify the sender
immediately and then delete the email and any attachments from your
system.
RNIB has made strenuous efforts to ensure that emails and any
attachments generated by its staff are free from viruses. However, it
cannot accept any responsibility for any viruses which are
transmitted. We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email
and any attachments are those of the author and do not necessarily
represent those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list