You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Dave Pawson <da...@virgin.net> on 2000/05/14 21:24:53 UTC

List bug?


<fo:list-block >
     <fo:list-item>
      <fo:list-item-label>
       <fo:block>&#x2022;</fo:block>
      </fo:list-item-label>
      <fo:list-item-body>
Trying out nested lists.
Unsure if I have the structure right, I think so,
even if it is different from the renderex list
examples.

the nested item needs a negative start indent on
the list-item-label to get it to show outside the
text of the list-item-body.
Is it a bug?

Regards, DaveP


    <fo:block>Nested list, first level</fo:block>
      </fo:list-item-body>
     </fo:list-item>
     <fo:list-item>
      <fo:list-item-label>
       <fo:block>&#x2022;</fo:block>
      </fo:list-item-label>
      <fo:list-item-body>
       <fo:block>To nest lists within lists, simply  Add the list-block
within the fo:block of the body, accounting for indentation with the
list-item-label start-indent attribute and list-item-body start-indent
attribute.

  <fo:list-block   >
	 <fo:list-item>
	<fo:list-item-label start-indent="-0.65in">
                        <!-- Wrong? Why a negative indent needed? -->
	 <fo:block>&#x2022;</fo:block>
	</fo:list-item-label>
	<fo:list-item-body >
	 <fo:block>This should be the second level. Lets see if its
indented</fo:block>
	</fo:list-item-body></fo:list-item>
       </fo:list-block>


RE: List bug?

Posted by Dave Pawson <da...@virgin.net>.
Further to my last post, another off list
comment has confirmed it as 'problematic',
so if Arved says the syntax is right, it
certainly looks like a problem

Regards, DaveP

Re: List bug?

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, Dave

Can't comment immediately on the problem, but you have the structure correct.

Not having seen the RenderX examples, I don't know what they do differently.

The XSL spec (the latest WD) has some pretty good examples.

Regards, Arved Sandstrom

At 08:24 PM 5/14/00 +0100, Dave Pawson wrote:
>
>
><fo:list-block >
>     <fo:list-item>
>      <fo:list-item-label>
>       <fo:block>&#x2022;</fo:block>
>      </fo:list-item-label>
>      <fo:list-item-body>
>Trying out nested lists.
>Unsure if I have the structure right, I think so,
>even if it is different from the renderex list
>examples.
>
>the nested item needs a negative start indent on
>the list-item-label to get it to show outside the
>text of the list-item-body.
>Is it a bug?
>
>Regards, DaveP
>
>
>    <fo:block>Nested list, first level</fo:block>
>      </fo:list-item-body>
>     </fo:list-item>
>     <fo:list-item>
>      <fo:list-item-label>
>       <fo:block>&#x2022;</fo:block>
>      </fo:list-item-label>
>      <fo:list-item-body>
>       <fo:block>To nest lists within lists, simply  Add the list-block
>within the fo:block of the body, accounting for indentation with the
>list-item-label start-indent attribute and list-item-body start-indent
>attribute.
>
>  <fo:list-block   >
>	 <fo:list-item>
>	<fo:list-item-label start-indent="-0.65in">
>                        <!-- Wrong? Why a negative indent needed? -->
>	 <fo:block>&#x2022;</fo:block>
>	</fo:list-item-label>
>	<fo:list-item-body >
>	 <fo:block>This should be the second level. Lets see if its
>indented</fo:block>
>	</fo:list-item-body></fo:list-item>
>       </fo:list-block>
>
>