Hi all, Considering this code excerpt :
<fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>2.</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>Inline graphic <fo:external-graphic src="url(black_square.svg)" width="5mm" height="auto" content-width="scale-to-fit" content-height="scale-to-fit" /> some text. </fo:block> </fo:list-item-body> </fo:list-item>In the resulting PDF, the baselines of the fo:list-item-label and the fo:list-item-body are not aligned vertically. I get something like this :
2. /--\ Inline graphic \__/ some text. While I would like to get : /--\ 2. Inline graphic \__/ some text.I understood from the XSL-1.1 specification that I should use the relative-align="baseline" property on the fo:list-block. But, according to http://xmlgraphics.apache.org/fop/compliance.html, this property is not supported by any version of FOP.
I tried the attached test file with FOP 1.0 and 0.95 with the same result. Does anyone knows a trick to get these baselines aligned vertically? Thanks a lot. Maxime Bégnis
<?xml version="1.0" encoding="ISO-8859-1"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" margin="1in"> <fo:region-body /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> <fo:list-block> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>1.</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>test alone</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>2.</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>Inline graphic <fo:external-graphic src="url(black_square.svg)" width="5mm" height="auto" content-width="scale-to-fit" content-height="scale-to-fit" /> some text. </fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:flow> </fo:page-sequence> </fo:root>
<<attachment: black_square.svg>>
<<attachment: maxime.vcf>>
--------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org