> Manuel, > > see 7.28.4. “provisional-distance-between-starts” and 5.10.4. "Property > Value > Functions" >
Jeremias, I did read the spec (but not the source code) before posting :-). It defines in 7.28.4 body-start as: body-start() = the value of the start-indent + start-intrusion-adjustment + the value of the provisional-distance-between-starts of the closest ancestor fo:list-block. This caused me to wonder to which start-indent this formula is refering and if we potentially have a recursion issue. After re-reading this again I now assume it refers to start-indent of the ancestor list-block (although this is not 100% clear to me) and therefore there is no recursion problem. Now (finally) looking at the code it traverses up the fo tree to the nearest fo:list-item and takes the start-indent from there. If the start-indent on a fo:list-item is always guaranteed to be identical to the start-indent on the enclosing fo:list-block than that is fine. If that cannot be guaranteed then ... Manuel PS: Moved the thread to fop-dev > In the source code: org.apache.fop.fo.expr.BodyStartFunction > > On 13.02.2006 09:31:47 Manuel Mall wrote: >> Jeremias, >> >> just out of curiosity and not directly related to the posters question: >> >> The definition of block-start() refers to start-indent. Here we are >> actually setting start-indent. Which value of start-indent is used in >> calculating block-start()? >> >> Manuel >> >> > I think XEP is wrong if it reports an error. XSL-FO 1.0 says in "5.9 >> > Expressions": "All property value specifications in attributes within >> an >> > XSL stylesheet can be expressions." >> > >> > IMO, your expression for start-indent is valid. >> > >> > On 13.02.2006 04:59:48 Paul Tremblay wrote: >> >> I have the following line in my of.xml file: >> >> >> >> >> >> <fo:list-item space-before="12pt"> >> >> <fo:list-item-label end-indent="label-end()"> >> >> <fo:block></fo:block> >> >> </fo:list-item-label> >> >> <fo:list-item-body start-indent="body-start() + 12pt" >> >> text-indent="-12pt"> >> >> <fo:block>In late >> >> winter</fo:block></fo:list-item-body></fo:list-item> >> >> >> >> I want to create a hanging indents for long lines of poetry. When I >> >> run this document through xep's processor, I get the following error: >> >> >> >> [warning] Bad attribute start-indent: Cannot add type Word to type >> >> Length >> >> >> >> However, when I run it through fop .91 beta, it works exactly like I >> >> want it to. >> >> >> >> Is xep correct in reporting an error? Is fop cheating? Of course, I >> am >> >> glad that fop processes the document the way I want! >> > >> > >> > Jeremias Maerki > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >