我真的很喜歡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