[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Atypical list
At 2009-02-26 14:04 +0100, Konstanty Pilecki wrote:
As a beginner at XSL-FO standard I have a problem with a list (enumeration). The thing is that the list in my XML document is not typical.
It consists not only of regular enumerated items but also has binsertionsb, which are integral components of the list.
An example of such list: But you can. because a model of this does not allow insertions (like has been described above).
Hence, I think, bordinary textb should be used. I disagree. And here is a problem. An item of the list consists of a label and content. A content element can have a quite complex structure and is wrapped in a <fo:block> element (<fo:block> element can also appear repeatedly at lower levels of the list item contentbs structure). The list item would be like this: That will not help you because of the architecture of XSL-FO. The <list-block> construct is the one you want to use because it is designed precisely for the kind of labeling needed for lists. What should I do, in order to an XSL-FO to PDF processor does not break a text line after the label?
I hope this helps. . . . . . . . . Ken <?xml version="1.0" encoding="US-ASCII"?><!--pilecki.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt"> <layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body"/> </simple-page-master> </layout-master-set> <page-sequence master-reference="frame"> <flow flow-name="frame-body"> <block>This is a test</block> <list-block provisional-distance-between-starts="1.5cm" provisional-label-separation=".25cm"> <list-item> <list-item-label end-indent="label-end()"> <block>1</block> </list-item-label> <list-item-body start-indent="body-start()"> <block>abc</block> </list-item-body> </list-item> <list-item> <list-item-label end-indent="label-end()"> <block>2</block> </list-item-label> <list-item-body start-indent="body-start()"> <block>def</block> </list-item-body> </list-item> <!--this is the ghost list item--> <list-item> <list-item-label end-indent="label-end()"> <!--this is the invisible ghost list item label--> <block/> </list-item-label> <list-item-body start-indent="body-start()"> <!--here is the insertion information--> <block>insertion information here</block> </list-item-body> </list-item> <list-item> <list-item-label end-indent="label-end()"> <block>3</block> </list-item-label> <list-item-body start-indent="body-start()"> <block>ghi</block> </list-item-body> </list-item> </list-block> </flow> </page-sequence> </root>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|