W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2003

Re: table cell issues

From: Mike Trotman <mike.trotman@datalucid.com>
Date: Tue, 28 Oct 2003 13:51:28 +0000
Message-ID: <3F9E7460.9020605@datalucid.com>
To: www-xsl-fo@w3.org
Ken Holman posted a simple example of hanging indents on the Yahoo XSLFO 
group last year.
(XSL-FO@yahoogroups.com).
This is a good source of XSL FO tips.

I don't know how to get the gap at the end of your 1st line.

From:  "G. Ken Holman" <gkholman@c... 
<http://groups.yahoo.com/group/XSL-FO/post?postID=v71Fo2Dp9r7Mp9A2ha0LKxv4z0pQ4YTTLVs0-DnBk8mRWrtZTwGklAjDv4EFTFcu_cOcTFuit-CcZ1QJXv_cEJIgag>> 

Date:  Mon Nov 25, 2002  12:26 pm
Subject:  Re: [XSL-FO] indents when entries continue on next line
 >Is there an XSLFO attribute to accommodate for entries in that should 
indent
 >when they are longer than one line?

Use a combination of what is already available to you: indent the entire
block, but outdent the first line using a negative value for your text 
indent.

An example is below.

Sometimes you will not want the values to be equal, for example, if you
wanted the first line indented 1cm and the rest of the lines indented 3cm,
then set the block indent to 3cm and the first line indent to -2cm.

I hope this helps.

................. Ken

<flow flow-name="frame-body" font-family="Times" font-size="20pt">

<block start-indent="1cm" text-indent="-1cm">This is a test
of a block with a very long line that will produce a hanging indent
on the first line because the second and subsequent lines are 
indented.</block>

</flow>


karthikeyan.balasubramanian wrote:

>Hi,
>
>  I have a table cell like this
>
><fo:table-cell>
>    <fo:block>
>        <xsl:value-of select="NOM" />
>    </fo:block>
></fo:table-cell>
>
>Current Output
>=============
>
>Nomenclature
>----------------
>Data Data Data Data Data 
>Data Data Data Data Data 
>Data Data Data Data Data 
>
>Required Output
>=============
>
>Nomenclature
>----------------
>Data Data Data Data Data 
>     Data Data Data Data Data 
>     Data Data Data Data Data 
>column width = 64mm 
>(accomodating 27 characters tested with 27 'Z')
>
>How do I provide 5 character width for all
>data coming after the first line.  I have no control
>over how many line I might end up with.
>
>Is this possible?
>
>Karthikeyan B
>
>
>  
>  
>

-- 
Datalucid Limited
8 Eileen Road
South Norwood
London SE25 5EJ
tel :0208-239-6810
mob: 0794-725-9760
email: mike.trotman@datalucid.com
UK Co. Reg:   	4383635
VAT Reg.:   	798 7531 60
Received on Tuesday, 28 October 2003 08:58:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT