Re: [xep-support] Nesting indents

From: Werner Donné (werner.donne@re.be)
Date: Fri Mar 07 2003 - 01:32:04 PST

  • Next message: G. Ken Holman: "Re: [xep-support] page-number manipulation"

    Hi Lori,

    The attached example shows how you can do it in a completely relative way
    without using the functions in an expression.

    Regards,

    Werner.

    Lori Wong wrote:
    > I would like to nest indenting for list blocks so that if a list occurs
    > within a list, the child list gets indented relative to the previous
    > one. As in,
    >
    > - List 1 item 1
    > - List 1 item 2
    > - List 2 item 1
    > - List 2 item 2
    > - List 3 item 1
    > - List 3 item 2
    > - List 2 item 3
    > - List 1 item 3
    >
    > I have tried to use start-indent to do this as follows:
    > <fo:list-block
    > provisional-distance-between-starts="1.15in" text-align="left"
    > font-size="12pt" line-height="16pt"
    > start-indent="from-parent(start-indent)+.25in"
    > provisional-label-separation=".125in"
    > space-before.optimum="10pt">
    >
    > however, XEP generates warnings that look like:
    > {?Bad attribute start-indent: Cannot add type Word to type Length}
    > which I assume has to do with trying to add the value
    > from-parent(start-indent) with a length value such as the .25in.
    >
    > If I use a fixed length here, such as the .25in, I do not get the error
    > messages. Similarly, I can just use the from-parent(start-indent).
    > However, in both cases, I do not get the nested indenting that I desire.
    >
    > It may be that I'm attempting to use the from-parent(start-indent)
    > incorrectly. Does anyone have a solution for handling the nested
    > indents (where I don't have to put in fixed values for the subsequent
    > levels of list blocks)? My list items tend to span more than one line,
    > so I need to specify an indent for the entire block rather than just the
    > first line.
    >
    > Thanks!
    >
    > - Lori

    -- 
    Werner Donné  --  Re BVBA
    Engelbeekstraat 8
    B-3300 Tienen
    tel: (+32) 486 425803	e-mail: werner.donne@re.be
    
    

    <?xml version="1.0" encoding="UTF-8"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:css="http://www.w3.org/1998/CSS" xmlns:xh="http://www.w3.org/1999/xhtml" country="GB" font-family="serif" font-size="11pt" hyphenate="true" language="en">
       <fo:layout-master-set>
          <fo:simple-page-master master-name="any" writing-mode="lr-tb" page-height="297mm" page-width="210mm" margin-top="10.0%" margin-bottom="10.0%" margin-left="10.0%" margin-right="10.0%">
             <fo:region-body column-count="1" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" margin-top="0mm"/>
          </fo:simple-page-master>
          <fo:page-sequence-master master-name="unnamed-first">
             <fo:repeatable-page-master-alternatives>
                <fo:conditional-page-master-reference page-position="any" master-reference="any"/>
                <fo:conditional-page-master-reference blank-or-not-blank="blank" page-position="any" master-reference="any"/>
             </fo:repeatable-page-master-alternatives>
          </fo:page-sequence-master>
          <fo:page-sequence-master master-name="unnamed">
             <fo:repeatable-page-master-alternatives>
                <fo:conditional-page-master-reference page-position="any" master-reference="any"/>
                <fo:conditional-page-master-reference blank-or-not-blank="blank" page-position="any" master-reference="any"/>
             </fo:repeatable-page-master-alternatives>
          </fo:page-sequence-master>
       </fo:layout-master-set>
       <fo:page-sequence format="1" master-reference="unnamed-first">
          <fo:flow flow-name="xsl-region-body">
             <fo:block unicode-bidi="embed" font-family="serif" line-height="1.33" padding="8.0px">
                <fo:list-block provisional-label-separation="6pt"
    provisional-distance-between-starts="1em">
          
                   <fo:list-item>
                      <fo:list-item-label end-indent="label-end()">
                         <fo:block text-align="end">•</fo:block>
                      </fo:list-item-label>
                      <fo:list-item-body start-indent="body-start()">
                         <fo:block text-align="justify">First item</fo:block>
                      </fo:list-item-body>
                   </fo:list-item>
          
                   <fo:list-item>
                      <fo:list-item-label end-indent="label-end()">
                         <fo:block text-align="end">•</fo:block>
                      </fo:list-item-label>
                      <fo:list-item-body start-indent="body-start()">
                         <fo:block text-align="justify">Second item
            <fo:list-block provisional-label-separation="6pt" provisional-distance-between-starts="1em">
              
                               <fo:list-item>
                                  <fo:list-item-label end-indent="label-end()">
                                     <fo:block text-align="end">â—‹</fo:block>
                                  </fo:list-item-label>
                                  <fo:list-item-body start-indent="body-start()">
                                     <fo:block text-align="justify">First item</fo:block>
                                  </fo:list-item-body>
                               </fo:list-item>
              
                               <fo:list-item>
                                  <fo:list-item-label end-indent="label-end()">
                                     <fo:block text-align="end">â—‹</fo:block>
                                  </fo:list-item-label>
                                  <fo:list-item-body start-indent="body-start()">
                                     <fo:block text-align="justify">Second item
                <fo:list-block provisional-label-separation="6pt" provisional-distance-between-starts="1em">
                  
                                           <fo:list-item>
                                              <fo:list-item-label end-indent="label-end()">
                                                 <fo:block text-align="end">â– </fo:block>
                                              </fo:list-item-label>
                                              <fo:list-item-body start-indent="body-start()">
                                                 <fo:block text-align="justify">First item</fo:block>
                                              </fo:list-item-body>
                                           </fo:list-item>
                  
                                           <fo:list-item>
                                              <fo:list-item-label end-indent="label-end()">
                                                 <fo:block text-align="end">â– </fo:block>
                                              </fo:list-item-label>
                                              <fo:list-item-body start-indent="body-start()">
                                                 <fo:block text-align="justify">Second item</fo:block>
                                              </fo:list-item-body>
                                           </fo:list-item>
                
                                        </fo:list-block>
              
                                     </fo:block>
                                  </fo:list-item-body>
                               </fo:list-item>
            
                            </fo:list-block>
          
                         </fo:block>
                      </fo:list-item-body>
                   </fo:list-item>
        
                </fo:list-block>
             </fo:block>
          </fo:flow>
       </fo:page-sequence>
    </fo:root>

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Fri Mar 07 2003 - 01:25:10 PST