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


HI,

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

<danger>
      <bulletlist>
          <para>blablabalbalbalbalbalbalba</para>
          <para>bloblbolbobloblbo</para>
        
<para>blblublublubbulblblublublubbulblblublublubbulblblublublubbul</para>
</bulletlist>
</danger>

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

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

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

and the next element <para>:

<xsl:apply-templates/>
 
but it didn´t indent the text inside the bullet.

This is what I want:

 Danger: *blablabalbalbalbalbalbalba
            *bloblbolbobloblbo
            *blblublublubbulblblublublubbulblblublu
              blubbulblblublublubbul

But this s what appear:
  
 Danger: *blablabalbalbalbalbalbalba
            *bloblbolbobloblbo
            *blblublublubbulblblublublubbulblblublu
            blubbulblblublublubbul

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?

Thanks,

Alexandre


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 GMT

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