【发布时间】:2013-08-27 04:38:23
【问题描述】:
我正在尝试将项目符号与正文垂直对齐。所以子弹应该在中间(垂直)。但我做不到。
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:call-template name="gbl-bullet-tick-circle"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="10pt">
here is hell lot of text paragraph i want to print...
here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
</fo:block>
</fo:list-item-body>
</fo:list-item>
它正在打印类似下面的内容
. here is hell lot of text paragraph i want to print...
here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
但实际上我希望它打印如下
here is hell lot of text paragraph i want to print...
. here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
以前有人在 XML:FO 中做过吗,请分享一些关于此的信息。
非常感谢您。
问候, 莫娜
【问题讨论】:
-
我也有同样的问题。
-
我红了一个人使用 vertical-align="baseline" 作为列表项并为她工作,但它对我不起作用。我也试过 relative-align="baseline" 但没有。
标签: xml xslt xml-formatting