RE: different Ident in the same paragraph

Well, Alexandre

You can use the following approach; put the word "Danger" into the 1st label and set text-align-last to "justify".
Here it is:
            <fo:block>
                <fo:list-block provisional-distance-between-starts="1in"
                               provisional-label-separation="4pt">
                  <fo:list-item>
                    <fo:list-item-label end-indent="label-end()">
                      <fo:block text-align-last="justify">Danger &#x2022;</fo:block>
                    </fo:list-item-label>
                    <fo:list-item-body start-indent="body-start()">
                       <fo:block>Bla-bla. Lists in XSL FO (XSLFO) are much more than just a bulleted sequence of paragraphs:</fo:block>
                    </fo:list-item-body>
                  </fo:list-item>
                  <fo:list-item>
                    <fo:list-item-label end-indent="label-end()">
                      <fo:block text-align="right">&#x2022;</fo:block>
                    </fo:list-item-label>
                    <fo:list-item-body start-indent="body-start()">
                       <fo:block>Bla-bla. Lists in XSL FO (XSLFO) are much more than just a bulleted sequence of paragraphs:</fo:block>
                    </fo:list-item-body>
                  </fo:list-item>
                </fo:list-block>
            </fo:block>

Other way you can use table with fixed layout, put "Danger" and list items into 2 separate columns, but it will slow down formatting.

Respectfully,
Volodymyr Rodymyuk

> -----Original Message-----
> From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
> Behalf Of axdmoraes
> Sent: Wednesday, August 08, 2007 4:13 PM
> To: www-xsl-fo@w3.org
> Subject: RE: different Ident in the same paragraph
>
>
>
> HI,
>
>    I tryed to use list-block but it breaks line before its starts and i
> donīt want this. I want it in front the label Danger like this:
>
> Danger: *blablabalbalbalbalbalbalba
>             *bloblbolbobloblbo
>             *blblublublubbulblblublublubbulblblublu
>               blubbulblblublublubbul
>
> When i used list-block it happened:
>
> Danger:
>      *blablabalbalbalbalbalbalba
>      *bloblbolbobloblbo
>      *blblublublubbulblblublublubbulblblublu
>        blubbulblblublublubbul
>
>
> Alexandre
>
>
>
>
> Vladimir Rodimyuk wrote:
> >
> >
> > Hi,
> > Why don't you try to use <fo:list-block> instead of applying margin
> > properties to inlines inside the block?
> > Place your bullet(&#x2022;) in fo:list-item-label and <para> inside
> > <fo:list-item-body><fo:block/> </fo:list-item-body>.
> > E.g.
> >                 <fo:list-block provisional-distance-between-starts="8pt"
> >                                provisional-label-separation="4pt">
> >                   <fo:list-item>
> >                     <fo:list-item-label end-indent="label-end()">
> >                       <fo:block>&#x2022;</fo:block>
> >                     </fo:list-item-label>
> >                     <fo:list-item-body start-indent="body-start()">
> >                        <fo:block>Bla-bla. Lists in XSL FO (XSLFO) are
> much
> > more than just a bulleted sequence of paragraphs:</fo:block>
> >                     </fo:list-item-body>
> >                   </fo:list-item>
> >                 </fo:list-block>
> > Look for more information at http://www.renderx.com/tutorial.html#Lists
> >
> > Respectfully,
> > Volodymyr Rodymyuk
> >
> >> -----Original Message-----
> >> From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
> >> Behalf Of axdmoraes
> >> Sent: Wednesday, August 08, 2007 1:43 PM
> >> To: www-xsl-fo@w3.org
> >> Subject: Re: different Ident in the same paragraph
> >>
> >>
> >>
> >> 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
> >
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/different-Ident-in-
> the-same-paragraph-tf4169344.html#a12052850
> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
>

Received on Wednesday, 8 August 2007 15:26:10 UTC