我真的很喜欢XSL-FO,并且我开始着手开始设计这些文档的样式,但我有一阵脑力冻结,试图模仿清单。尝试在XSL-FO中设置伪嵌套列表的样式
我必须使用的XML不使用DITA列表,我们不得不将它变成XPP,然后转到网络,然后转移到SDL的LiveContent。
这是标记我有一个列表:
<p outputclass="LC NText"><b>[12]</b>   On 24 October 2006, following a second CMC on 23 October 2006, XXXXXX, by this stage legally represented, made its application for disclosure. The application requests disclosure of the following documents:</p>
<p outputclass="LC"><ph outputclass="NList1_num">(a)</ph><ph outputclass="NList1_text">the minute of the case review meeting;</ph></p>
<p outputclass="LC"><ph outputclass="NList1_num">(b)</ph><ph outputclass="NList1_text">Mr Mayock’s memorandum regarding his review of the case;</ph></p>
<p outputclass="LC"><ph outputclass="NList1_num">(c)</ph><ph outputclass="NList1_text">Mr Priddis’ memorandum;</ph></p>
<p outputclass="LC"><ph outputclass="NList1_num">(d)</ph><ph outputclass="NList1_text">the final draft of the case closure letter to be sent by Mr Mayock;</ph></p>
<p outputclass="LC"><ph outputclass="NList1_num">(e)</ph><ph outputclass="NList1_text">the draft summary of final comments from interested parties received in connection with the OFT’s provisional decision to close its investigations.</ph></p>
我需要缩进OutputClass类=“NList1_num”和OutputClass类=“NList1_text”规定量(我们也有NLIST * _哪里*为2,3,4等进一步缩进嵌套列表)。
我想:
<xsl:template match="*[contains(@outputclass,'NList1_')]">
<fo:block text-indent="2em">
<fo:inline background-color="red">
<xsl:apply-templates/>
</fo:inline>
</fo:block>
</xsl:template>
但这显示它与NList1_num缩进在一行,并与下一行相同缩进NList1_text。我希望他们都在正常列表的同一行上。
我试过fo:inline,但发现我无法对这些应用缩进或边距,只好使用fo:block代替。
有人可以给我一些想法如何让这些风格。
非常感谢(再次)。
赫德利·菲利普斯
您应该与外部'p'匹配作为列表项目。 – 2011-02-25 17:39:09