Hi, Daniele,
 
It's not that different in FO, except that FO is much more verbose.
 
Here's that list in FO:
 
<fo:list-block>
  <fo:list-item>
    <fo:list-item-label>1.</fo:list-item-label>
    <fo:list-item-body>First element
      <fo:list-block>
        <fo:list-item>
          <fo:list-item-label>1.</fo:list-item-label>
          <fo:list-item-body>first deep element</fo:list-item-body>
        </fo:list-item>
        <fo:list-item>
          <fo:list-item-label>2.</fo:list-item-label>
          <fo:list-item-body>secondo deep element
            <fo:list-block>
              <fo:list-item>
                <fo:list-item-label>1.</fo:list-item-label>
                <fo:list-item-body>third deep elemente</fo:list-item-body>
              </fo:list-item>
            </fo:list-block>
          </fo:list-item-body>
        </fo:list-item>
      <fo:list-block>
    </fo:list-item-body>
  </fo:list-item>
  <fo:list-item>
    <fo:list-item-label>2.</fo:list-item-label>
    <fo:list-item-body>Second element</fo:list-item-body>
  </fo:list-item>
</fo:list-block>
 
I prepared that by hand, so it may have a typo or two, but the concept is right. Just like in HTML, the inner list goes within a listitem element. In FO, that means the inner list goes within the list-item-body element.
 
Also, note that there are a bunch of attributes you can add to these elements, to control font size and family, line height, and so on. I whipped up a stripped down list for the sake of an example.
 
HTH
 
Jay Bryant
Bryant Communication Services
----- Original Message -----
From: Daniele
Sent: Thursday, January 26, 2006 9:29 AM
Subject: How to create a list in FO?

Hi to all,
How can I create this list in FO?

Start List
 
  1. First element
    1. first deep element
    2. secondo deep element
      1. third deep elemente
  2. Second element
 
End List
 
in html is simple to do it, I want to know how can I create this in fo.
 

thanks,
Daniele

Reply via email to