aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml-docs
diff options
context:
space:
mode:
authorKelly Campbell <kellyc@apache.org>2001-02-23 06:00:29 +0000
committerKelly Campbell <kellyc@apache.org>2001-02-23 06:00:29 +0000
commitddaf8b2ad8b8241641d9406805319709e17b2f0d (patch)
treefb9ec046012a7514c4ba31826468f717a577f39a /docs/xml-docs
parent20eb35ecb4511689c56bdf21c73eb03591e37d67 (diff)
downloadxmlgraphics-fop-ddaf8b2ad8b8241641d9406805319709e17b2f0d.tar.gz
xmlgraphics-fop-ddaf8b2ad8b8241641d9406805319709e17b2f0d.zip
Patch for list-block to support body-start and label-end
PR: 682 Obtained from: Submitted by: Peter S. Housel <housel@acm.org> Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194086 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/xml-docs')
-rw-r--r--docs/xml-docs/fop/limitations.xml12
-rw-r--r--docs/xml-docs/xml2pdf.xsl8
2 files changed, 4 insertions, 16 deletions
diff --git a/docs/xml-docs/fop/limitations.xml b/docs/xml-docs/fop/limitations.xml
index 33fcbc4cc..fd3b1288f 100644
--- a/docs/xml-docs/fop/limitations.xml
+++ b/docs/xml-docs/fop/limitations.xml
@@ -20,18 +20,6 @@
</p>
</s2>
- <s2 title="list-block">
- <p>The fo working draft allows describes two ways to markup lists.The list-block must have as
- children either: 1) pairs of fo:list-item-label and fo:list-item-body formatting objects, or
- 2) fo:list-item formatting objects.</p>
- <p>At the moment FOP only implements the second way. Therefore a list has a basic structure like this:</p>
- <p><code>&lt;fo:list-block></code></p>
- <p><code>&lt;fo:list-item></code></p>
- <p><code>&lt;fo:list-item-label>&lt;fo:block>&lt;/fo:block>&lt;/fo:list-item-label></code></p>
- <p><code>&lt;fo:list-item-body>&lt;fo:block>&lt;/fo:block>&lt;/fo:list-item-body></code></p>
- <p><code>&lt;/fo:list-item></code></p>
- <p><code>&lt;/fo:list-block></code></p>
- </s2>
<s2 title="Padding">
<p>Padding works in conjunction with indents and spaces. It is only implemented
for blocks. At the moment padding can't be used to make extra space (indents+spaces
diff --git a/docs/xml-docs/xml2pdf.xsl b/docs/xml-docs/xml2pdf.xsl
index 052dd9746..7b4dd9860 100644
--- a/docs/xml-docs/xml2pdf.xsl
+++ b/docs/xml-docs/xml2pdf.xsl
@@ -267,10 +267,10 @@ TBD: - The faq doesn't show in the content
<!-- li (list item) in unordered list -->
<xsl:template match ="ul/li">
<fo:list-item>
- <fo:list-item-label>
+ <fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
- <fo:list-item-body>
+ <fo:list-item-body start-indent="body-start()">
<fo:block space-after.optimum="4pt"
text-align="justify"
padding-top="3pt">
@@ -284,12 +284,12 @@ TBD: - The faq doesn't show in the content
<!-- li (list item) in ordered list -->
<xsl:template match ="ol/li">
<fo:list-item>
- <fo:list-item-label>
+ <fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:number level="multiple" count="li" format="1"/>)
</fo:block>
</fo:list-item-label>
- <fo:list-item-body>
+ <fo:list-item-body start-indent="body-start()">
<fo:block space-after.optimum="4pt"
text-align="justify"
padding-top="3pt">