It's allowed by the XSL-FO spec, but is it known to work with FOP? I get a ClassCastException in ListBlockLayoutManager.mustKeepTogether() when I render the following with FOP trunk or 0.94. The LM assumes the list-block parent is a block-level FO, it seems.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page-master" margin="1.0in"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page-master"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:inline> <!-- inline list. --> <fo:list-block> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>•</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>Inline list item one.</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>•</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>Inline list item two.</fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:inline> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> Thanks, Steve -----Original Message----- From: Pascal Sancho [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 8:28 AM To: [email protected] Subject: RE: inline and fo:list-block > -----Message d'origine----- > De : juanita [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 5 mars 2008 14:18 > > I would like to ask if the fo:inline could be the parent of > fo:list-block? Yes! XSL-FO REC 1.1, §6.6.7 - fo:inline says that its content can be: (#PCDATA|%inline;|%block;)* and §6.2 - Formatting Object Content says that %block; entity stands for: block block-container table-and-caption table list-block HTH, Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
