W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2007

Re: different Ident in the same paragraph

From: axdmoraes <alexmoraes@gmail.com>
Date: Wed, 8 Aug 2007 03:42:45 -0700 (PDT)
Message-ID: <12050795.post@talk.nabble.com>
To: www-xsl-fo@w3.org


    I have another problem using hanging indent.
I have this xml:


And I have this xsl:fo.
<template match=danger>
<fo:block  text-indent="-4em" start-indent="4em">
<fo:inline text-decoration="underline"
</template match=danger>

The next element that will be processed, <bulletlist>:

<fo:inline text-indent="-4em" start-indent="4em">&#x2022;

and the next element <para>:

but it didn´t indent the text inside the bullet.

This is what I want:

 Danger: *blablabalbalbalbalbalbalba

But this s what appear:
 Danger: *blablabalbalbalbalbalbalba

The third line is the problem. It didn´t indent.

Another question. Is thera a way to make two fo:block in the same line?



Lester Ward wrote:
> axdmoraes wrote:
>> I would like to show this paragraph like this.
>> http://www.nabble.com/file/p11861577/1.jpg 
>> But it shows like this.I want the first ident. Someone knows?
>> http://www.nabble.com/file/p11861577/2.jpg 
> What you want is called a "hanging indent". A quick Google search for 'FO
> XSL "hanging 
> indent"' finds this (http://www.dpawson.co.uk/xsl/examples.html):
> Example 5-4. Hanging indents
>    <fo:block
>          text-indent='-4em'
>          start-indent='4em'>
> An example of a hanging indent, a paragraph with the first
> line left aligned, and the remainder of the paragraph
> indented by a fixed amount. Set by using the start indent
> and text-indent properties on a block. The text-indent is
> set to a negative value, the start indent to a positive
> value.
> </fo:block>

View this message in context: http://www.nabble.com/different-Ident-in-the-same-paragraph-tf4169344.html#a12050795
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Wednesday, 8 August 2007 10:42:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:06 UTC