Re: table cell issues

Hi Mike,

  Thank you very much.  You Rock :):) once again.

  Have a great day :)

Karthikeyan B

<fo:table-body>
        <fo:table-row>
             <fo:table-cell>
                 <fo:block start-indent="5mm" text-indent="-5mm">
                      Data Data Data Data Data Data Data Data Data
                 </fo:block>
             </fo:table-cell>
        </fo:table-row>
</fo:table-body>
  ----- Original Message ----- 
  From: Mike Trotman 
  To: www-xsl-fo@w3.org 
  Sent: Tuesday, October 28, 2003 7:21 PM
  Subject: Re: table cell issues


  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...> 
  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 13:14:31 UTC