fop-users  

RE: nested fo:list-item spacing - fop 0.20.5

Amick, Eric
Thu, 10 Jul 2008 06:00:45 -0700

I believe the provisional-label-separation property will do the trick;
it specifies the distance between the end of the list-item-label and the
start of the list-item-body. It's inherited, so you can put it on
fo:list-block or some ancestor of fo:list-block to get the desired
effect.

http://www.w3.org/TR/xsl/#provisional-label-separation


Eric Amick
Legislative Computer Systems
Office of the Clerk

-----Original Message-----
From: bonekrusher [EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 7:50
To: fop-users@xmlgraphics.apache.org
Subject: nested fo:list-item spacing - fop 0.20.5


Hi,

I am in the process of creating a nested fo:list-item for a project. If
I set the <fo:list-item-label end-indent="label-end()"> and
<fo:list-item-body start-indent="body-start()"> I get about 1/4 inch
space between <fo:list-item-label  and the fo:list-item-body e.g.

1.    This is a test

But I need it to be something like 3mm e.g.

1. This is a test

I would normally use hidden tables, but the list is nested inside a
series of nested blocks (see below) and when I have nested tables, it
causes an infinite loop. I need the nested blocks to create a tree like
structure for troubleshooting procedures.

If I use start-indent="3mm", the indent starts from the margin. I need
it to start from label-end.

e.g.

                    1. This is a list
                       a. This is a nested list

Any ideas?

Thanks

<fo:block start-indent="0.15in">
        <fo:block line-height="12pt" font-family="sans-serif"
font-size="10pt"
font-weight="bold" space-before.optimum="6pt" space-after.optimum="5pt"
start-indent="0pt" color="black">SYMPTOM</fo:block>
        <fo:block line-height="12pt" font-family="sans-serif"
font-size="10pt"
white-space-collapse="false">No shelter electrical power</fo:block>
        <fo:block start-indent="0.5in">
                <fo:block line-height="12pt" font-family="sans-serif"
font-size="10pt"
font-weight="bold" space-before.optimum="6pt">
                        <fo:block space-after.optimum="5pt"
start-indent="25pt">MALFUNCTION</fo:block>
                </fo:block>
                <fo:block line-height="12pt" font-family="sans-serif"
font-size="10pt"
white-space-collapse="false">No voltage reading on digital power
meter</fo:block>
                <fo:block space-before.optimum="5pt" start-indent="45pt"
color="black"
id="N159E0">
                        <fo:inline line-height="12pt"
font-family="sans-serif" font-size="10pt"
font-weight="bold" space-before.optimum="6pt">CORRECTIVE
ACTION</fo:inline>
                        <fo:block start-indent="60pt">
                                <fo:block id="N159F9"/>
                                <fo:block line-height="12pt"
font-family="sans-serif" font-size="10pt"
space-before.optimum="5pt" text-align="left">Check power
source.<fo:list-block space-before.optimum="5pt">
                                                <fo:list-item>
        
<fo:list-item-label end-indent="label-end()">
        
<fo:block>
        
<fo:inline font-weight="normal" font-family="$default-font"
font-size="10pt" line-height="12pt">1. </fo:inline>
        
</fo:block>
        
</fo:list-item-label>
        
<fo:list-item-body start-indent="body-start()">
        
<fo:block space-after.optimum="5pt">Trace power from main input to
widget</fo:block>
        
</fo:list-item-body>
                                                </fo:list-item>
                                        </fo:list-block>
                                        <fo:list-block
space-before.optimum="5pt">
                                                <fo:list-item>
        
<fo:list-item-label end-indent="label-end()">
        
<fo:block>
        
<fo:inline font-weight="normal" font-family="$default-font"
font-size="10pt" line-height="12pt">4. </fo:inline>
        
</fo:block>
        
</fo:list-item-label>
        
<fo:list-item-body start-indent="body-start()">
        
<fo:block space-after.optimum="5pt">If symptoms continue, repair or
replace widget.</fo:block>
        
</fo:list-item-body>
                                                </fo:list-item>
                                        </fo:list-block>
                                </fo:block>
                        </fo:block>
                </fo:block>
        </fo:block>
</fo:block>
--
View this message in context:
http://www.nabble.com/nested-fo%3Alist-item-spacing---fop-0.20.5-tp18381
193p18381193.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]