Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
列表项标签XML:FO垂直对齐_Xml_Xslt_Xml Formatting - Fatal编程技术网

列表项标签XML:FO垂直对齐

列表项标签XML:FO垂直对齐,xml,xslt,xml-formatting,Xml,Xslt,Xml Formatting,我试图将项目符号与正文文本垂直对齐。所以子弹应该在中间(垂直)。但我无法做到这一点 <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-ite

我试图将项目符号与正文文本垂直对齐。所以子弹应该在中间(垂直)。但我无法做到这一点

<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...
在XML:FO中是否有人曾经这样做过,请分享一些信息

事先非常感谢

问候,,
Mona

快速的答案是使用一个有两列的表。对项目符号使用“显示对齐”。我可以为列表测试一些东西,但我可以想象,带项目符号的块的进度维度可能不受列表体的控制,我不确定

我做了测试,现在我确定了。如果在列表项标签上放置边框,将看到块边界仅与列表项标签所需的大小相同


要完成此布局,请使用两列表格,第一个单元格具有“display align=“center“以及您的项目符号和包含内容的第二个单元格。

快速回答是使用一个包含两列的表。对项目符号使用“显示对齐”。我可以为列表测试一些东西,但我可以想象,带项目符号的块的进度维度可能不受列表体的控制,我不确定

我做了测试,现在我确定了。如果在列表项标签上放置边框,将看到块边界仅与列表项标签所需的大小相同

要完成此布局,请使用两列表格,其中第一个单元格具有“display align=“center”、项目符号,第二个单元格包含内容

     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...