| HTML Tutorials |
|
|
| XML Tutorials |
|
|
| Browser Scripting |
|
|
| Server Scripting |
|
|
| .NET (dotnet) |
|
|
| Multimedia |
|
|
| Web Building |
|
|
| Java Tutorials |
|
|
| Programming Langauges |
|
|
| Soft Skills |
|
|
|
|
XSL-FO List Blocks
|
To create a lists there are four XSL-FO objects:
- fo:list-block (it contains the whole list)
- fo:list-item (it contains each item in the list)
- fo:list-item-label (it contains the label for the list-item
like number, character, etc.)
- fo:list-item-body (contains the body of the list-item -
typically one or more <fo:block> objects)
|
|
- provisional-distance-between-starts
- provisional-label-separation
- start-indent for list-item-label
- start-indent for list-item-body
- end-indent for list-item-label
- end-indent for list-item-body
|
|
Example:
|
|
Now, create an XSLT template to handle an ordered list.Set the
start indent of the list item label, and leave the rest up to FOP. By using the
relative em spacing, lists will give reasonable spacing with any size font.
|
|
<xsl:template match="ol">
<fo:list-block
space-before="0.25em" space-after="0.25em">
<xsl:apply-templates/>
</fo:list-block>
</xsl:template>
<xsl:template match="ol/li">
<fo:list-item space-after="0.5ex">
<fo:list-item-label start-indent="1em">
<fo:block>
<xsl:number/>.
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
|
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords : convert xsl,
display xsl,
docbook fo,
docbook xsl,
fo elements,
fo examples,
fo reference,
fo table,
fo text,
fo tutorial,
html fo,
msxml xsl,
pdf fo,
string xsl,
svg xsl,
value xsl,
w3c xsl,
w3schools xsl,
xalan xsl,
xsl attribute,
xsl attributes,
xsl cdata,
xsl count,
xsl css,
xsl date,
xsl doctype,
xsl document,
xsl dom,
xsl dtd,
xsl element,
xsl elements,
xsl encoding,
xsl entity,
xsl example,
xsl examples,
xsl fo inline,
xsl function,
xsl href,
xsl html,
xsl include,
xsl javascript,
xsl name,
xsl namespace,
xsl node,
xsl output,
xsl processor,
xsl reference,
xsl schema,
xsl sort,
xsl stylesheet,
xsl syntax,
xsl tag,
xsl tags,
xsl template,
xsl text,
xsl tutorial,
xsl tutorials,
xsl using,
xsl variable,
xsl xhtml,
xsl xpath
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
|