How to use the XSL-FO List in XML
In this articles i am going to explain about XSL-FO List in XML
XSL-FO List Blocks in XML
XSL-FO List Blocks Type
-
Ordered Lists Each list item gets an order name, typically a serial number
-
Unordered Lists or Enumerations Each list item gets the same leading sign, typically an en-dash or a bold bullet or - like in this book - a square
-
Description Lists Each list item gets a description of its content.
The XSL-FO concept for lists consists of four specific elements
-
<fo:list-block> ( Contain the whole List)
-
<fo:list-item> ( Contain each item in the List Item)
-
<fo:list-item-label> (Contain the label for List Item)
-
<fo:list-item-body> (Contain the body of the List Item)
Within <fo:list-item-label> and <fo:list-item-body> are the normal block elements
An XSL-FO list example
<?xml version="1.0" encoding="utf-8"?>
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Welcome</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>C-sharp Corner</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
|
The output from the code above would be something like this:
Further Readings
You may also want to read these related articles
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here