Sfoglia il codice sorgente

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
tags/fop-0_18_1
Kelly Campbell 23 anni fa
parent
commit
ddaf8b2ad8

+ 26
- 26
docs/bugtests/list-mountjoy.fo Vedi File

@@ -53,11 +53,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -67,11 +67,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or
</fo:block>
@@ -81,11 +81,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with values subject to normalization, where the attribute appears in the document with a value which will
</fo:block>
@@ -95,11 +95,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
change as a result of normalization, or
</fo:block>
@@ -109,11 +109,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>

element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfsssssssssssssss thin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssss
@@ -126,18 +126,18 @@


<fo:list-item>
<fo:list-item-label> <fo:block/></fo:list-item-label>
<fo:list-item-body>
<fo:list-item-label end-indent="label-end()"> <fo:block/></fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:list-block>
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -146,11 +146,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -159,11 +159,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -172,11 +172,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -190,11 +190,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
</fo:block>
@@ -203,11 +203,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
</fo:block>
@@ -216,11 +216,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
</fo:block>

+ 40
- 40
docs/bugtests/list-nested-breaks.fo Vedi File

@@ -9,8 +9,8 @@
margin-bottom="2cm"
margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-before extent="3cm"/>
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
@@ -53,11 +53,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -67,11 +67,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or
</fo:block>
@@ -81,11 +81,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with values subject to normalization, where the attribute appears in the document with a value which will
</fo:block>
@@ -95,11 +95,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
change as a result of normalization, or
</fo:block>
@@ -109,75 +109,75 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
element types with element content, if white space occurs directly within any instance of those types.
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the first item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the second item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the third item of a nested list. The next list item's block will have a page break-after</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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 break-after="page">This is the fourth item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the fifth item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the sixth item of a nested list. The next list-item-body's block contains a page break-before.</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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 break-before="page">This is the seventh item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the eigth item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>

+ 31
- 31
docs/bugtests/list-nested.fo Vedi File

@@ -9,8 +9,8 @@
margin-bottom="2cm"
margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-before extent="3cm"/>
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
@@ -53,11 +53,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
</fo:block>
@@ -67,11 +67,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or
</fo:block>
@@ -81,11 +81,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
attributes with values subject to normalization, where the attribute appears in the document with a value which will
</fo:block>
@@ -95,11 +95,11 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
change as a result of normalization, or
</fo:block>
@@ -109,51 +109,51 @@
<!-- list entry -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
element types with element content, if white space occurs directly within any instance of those types.
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the first item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the second item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the third item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the fourth item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block><fo:inline-sequence font-family="Symbol">&#183;</fo:inline-sequence></fo:block>
<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>This is the fifth item of a nested list</fo:block>
</fo:list-item-body>
</fo:list-item>

+ 18
- 18
docs/examples/fo/extensive.fo Vedi File

@@ -35,46 +35,46 @@
<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="50pt">Text before<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="100pt">A block with 100pt start-indent within a block with 50pt start-intent</fo:block>Text after</fo:block>
<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block start-indent="50pt" provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks. The list-block has a start-indent of 50pt and a text-align of justified.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks. The list-block has a start-indent of 50pt and a text-align of justified.</fo:block></fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a second multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a third multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a second multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a third multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block start-indent="100pt">This is a multiple line block with start-indent 100pt that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block start-indent="100pt">This is a multiple line block with start-indent 100pt that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.<fo:block>This is an embedded multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.<fo:block>This is an embedded multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt">
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>A block in a list-item-body</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>A block in a list-item-body</fo:block></fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:list-block provisional-distance-between-starts="12pt">
<fo:list-item>
<fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a list item in a list that is itself a list item</fo:block></fo:list-item-body>
<fo:list-item-label end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>This is a list item in a list that is itself a list item</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:list-item-body>

+ 4
- 4
docs/examples/fo/leader.fo Vedi File

@@ -271,11 +271,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-size="10pt" font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<!-- Inserts a leader (dots) -->
<fo:block text-align="start">Entry 1
@@ -290,11 +290,11 @@
<!-- list item -->
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block><fo:inline font-size="10pt" font-family="Symbol">&#183;</fo:inline></fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<!-- Inserts a leader (dots) -->
<fo:block text-align="start">Entry 2

+ 312
- 312
docs/examples/fo/list.fo
File diff soppresso perché troppo grande
Vedi File


+ 154
- 154
docs/examples/fo/pdfoutline.fo Vedi File

@@ -354,226 +354,226 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
<fo:block font-size="16pt" font-family="serif" line-height="18pt" space-before.optimum="8pt" space-after.optimum="8pt" >1) Formatting Objects</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>root </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>layout-master-set </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>simple-page-master </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-body </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-before </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-after </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-sequence </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specification </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-single </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-repeating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-alternating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>flow </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>static-content </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>block </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-block </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item-label </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item-body </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-number </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-sequence </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>inline </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-rule </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-graphic </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-column (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-body (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-row (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-cell (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
@@ -584,330 +584,330 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
<fo:block font-size="16pt" font-family="serif" line-height="18pt" space-before.optimum="8pt" space-after.optimum="8pt" >2) Properties</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>end-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-name </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-first </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-repeating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-odd </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-even </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-top (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-bottom (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-left (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-right (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>extent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-width </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-height </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>flow-name </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-family </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-style </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-weight </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-size </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>line-height </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-align </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-align-last </fo:block>
</fo:list-item-body>
</fo:list-item>
<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-before.optimum </fo:block>
</fo:list-item-body>
</fo:list-item>
<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 </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>start-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>end-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>provisional-distance-between-starts </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>provisional-label-separation </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>rule-thickness </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>color </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>wrap-option </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>white-space-treatment </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>break-before </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>break-after </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>href</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>column-width</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>background-color</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-top (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-left (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-bottom (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-right (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
@@ -1095,10 +1095,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
FOP Relevant Specifications</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>
<fo:inline font-style="italic" font-family="serif">XML Recommendation</fo:inline>
<fo:inline font-family="serif" >
@@ -1108,10 +1108,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">XSL-FO Working Draft</fo:inline>
<fo:inline font-family="serif">
@@ -1121,10 +1121,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">XSLT Recommendation</fo:inline>
<fo:inline font-family="serif">
@@ -1134,10 +1134,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">PDF Documentation</fo:inline>
<fo:inline font-family="serif">
@@ -1147,10 +1147,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Simple API for XML (SAX)</fo:inline>
<fo:inline font-family="serif">
@@ -1160,10 +1160,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Document Object Model (DOM)</fo:inline>
<fo:inline font-family="serif">
@@ -1173,10 +1173,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Namespaces in XML Recommendation</fo:inline>
<fo:inline font-family="serif">
@@ -1186,10 +1186,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Java JDK 1.1 Documentation</fo:inline>
<fo:inline font-family="serif">

+ 154
- 154
docs/examples/fo/readme.fo Vedi File

@@ -284,226 +284,226 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
<fo:block font-size="16pt" font-family="serif" line-height="18pt" space-before.optimum="8pt" space-after.optimum="8pt" >1) Formatting Objects</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>root </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>layout-master-set </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>simple-page-master </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-body </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-before </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>region-after </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-sequence </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specification </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-single </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-repeating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>sequence-specifier-alternating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>flow </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>static-content </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>block </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-block </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item-label </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>list-item-body </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-number </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-sequence </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>inline </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-rule </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>display-graphic </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-column (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-body (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-row (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>table-cell (minimal support)</fo:block>
</fo:list-item-body>
</fo:list-item>
@@ -514,330 +514,330 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
<fo:block font-size="16pt" font-family="serif" line-height="18pt" space-before.optimum="8pt" space-after.optimum="8pt" >2) Properties</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>end-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-name </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-first </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-repeating </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-odd </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-master-even </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-top (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-bottom (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-left (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>margin-right (only on pages and regions)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>extent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-width </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>page-height </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>flow-name </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-family </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-style </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-weight </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>font-size </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>line-height </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-align </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-align-last </fo:block>
</fo:list-item-body>
</fo:list-item>
<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-before.optimum </fo:block>
</fo:list-item-body>
</fo:list-item>
<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 </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>start-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>end-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>provisional-distance-between-starts </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>provisional-label-separation </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>rule-thickness </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>color </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>wrap-option </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>white-space-treatment </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>break-before </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>break-after </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>text-indent </fo:block>
</fo:list-item-body>
</fo:list-item>
<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>href</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>column-width</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>background-color</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-top (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-left (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-bottom (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
<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>padding-right (only in conjunction with background color)</fo:block>
</fo:list-item-body>
</fo:list-item>
@@ -1025,10 +1025,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
FOP Relevant Specifications</fo:block>
<fo:list-block start-indent="1cm" provisional-distance-between-starts="12pt" font-family="serif">
<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>
<fo:inline font-style="italic" font-family="serif">XML Recommendation</fo:inline>
<fo:inline font-family="serif" >
@@ -1038,10 +1038,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">XSL-FO Working Draft</fo:inline>
<fo:inline font-family="serif">
@@ -1051,10 +1051,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">XSLT Recommendation</fo:inline>
<fo:inline font-family="serif">
@@ -1064,10 +1064,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">PDF Documentation</fo:inline>
<fo:inline font-family="serif">
@@ -1077,10 +1077,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Simple API for XML (SAX)</fo:inline>
<fo:inline font-family="serif">
@@ -1090,10 +1090,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Document Object Model (DOM)</fo:inline>
<fo:inline font-family="serif">
@@ -1103,10 +1103,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Namespaces in XML Recommendation</fo:inline>
<fo:inline font-family="serif">
@@ -1116,10 +1116,10 @@ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:p
</fo:list-item-body>
</fo:list-item>
<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>
<fo:inline font-style="italic" font-family="serif">Java JDK 1.1 Documentation</fo:inline>
<fo:inline font-family="serif">

+ 18
- 18
docs/examples/fo/textdeko.fo Vedi File

@@ -102,10 +102,10 @@
<fo:list-block space-after.optimum="13pt">

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="none">none</fo:inline>
</fo:block>
@@ -113,10 +113,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="underline">underline</fo:inline>
</fo:block>
@@ -124,10 +124,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="overline">overline</fo:inline>
</fo:block>
@@ -135,10 +135,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="line-through">line-through</fo:inline>
</fo:block>
@@ -146,10 +146,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="blink">blink</fo:inline>
</fo:block>
@@ -157,10 +157,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="no-underline">no-underline</fo:inline>
</fo:block>
@@ -168,10 +168,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="no-overline">no-overline</fo:inline>
</fo:block>
@@ -179,10 +179,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="no-line-through">no-line-through</fo:inline>
</fo:block>
@@ -190,10 +190,10 @@
</fo:list-item>

<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:inline text-decoration="no-blink">no-blink</fo:inline>
</fo:block>

+ 10
- 10
docs/examples/svg/Document.xsl Vedi File

@@ -228,21 +228,21 @@
</xsl:template>

<xsl:template match="i">
<fo:inline-sequence font-style="italic">
<fo:inline font-style="italic">
<xsl:apply-templates/>
</fo:inline-sequence>
</fo:inline>
</xsl:template>

<xsl:template match="b">
<fo:inline-sequence font-weight="bold">
<fo:inline font-weight="bold">
<xsl:apply-templates/>
</fo:inline-sequence>
</fo:inline>
</xsl:template>

<xsl:template match="a">
<fo:inline-sequence color="blue">
<fo:inline color="blue">
<xsl:apply-templates/>
</fo:inline-sequence>
</fo:inline>
</xsl:template>

<xsl:template match="Description">
@@ -267,10 +267,10 @@

<xsl:template match="li">
<fo:list-item>
<fo:list-item-label>
<fo:list-item-label end-indent="label-end()">
<fo:block>&#x2022;</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after.optimum="4pt">
<xsl:apply-templates/>
</fo:block>
@@ -286,10 +286,10 @@

<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">
<xsl:apply-templates/>
</fo:block>

+ 0
- 12
docs/xml-docs/fop/limitations.xml Vedi File

@@ -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

+ 4
- 4
docs/xml-docs/xml2pdf.xsl Vedi File

@@ -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">

+ 89
- 0
src/org/apache/fop/datatypes/LinearCombinationLength.java Vedi File

@@ -0,0 +1,89 @@
/*-- $Id$ --

============================================================================
The Apache Software License, Version 1.1
============================================================================
Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
4. The names "Fop" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation and was originally created by
James Tauber <jtauber@jtauber.com>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
*/
package org.apache.fop.datatypes;

import java.util.Vector;
import org.apache.fop.messaging.MessageHandler;

/**
* a percent specified length quantity in XSL
*/
public class LinearCombinationLength extends Length {

protected Vector factors;
protected Vector lengths;

public LinearCombinationLength() {
super(0);
factors = new Vector();
lengths = new Vector();
super.setIsComputed(false);
}

public void addTerm(double factor, Length length) {
factors.addElement(new Double(factor));
lengths.addElement(length);
}

/**
* Return the computed value in millipoints.
*/
protected int computeValue() {
int result = 0;
int numFactors = factors.size();
for(int i = 0; i < numFactors; ++i) {
result += (int)(((Double)factors.elementAt(i)).doubleValue()
* (double)((Length)lengths.elementAt(i)).mvalue());
}
return result;
}

}

+ 0
- 51
src/org/apache/fop/fo/FONode.java Vedi File

@@ -81,14 +81,8 @@ abstract public class FONode {
*/
protected int marker = START;

protected boolean isInLabel = false;
protected boolean isInListBody = false;
protected boolean isInTableCell = false;

protected int bodyIndent;
protected int distanceBetweenStarts;
protected int labelSeparation;

protected int forcedStartOffset = 0;
protected int forcedWidth = 0;

@@ -101,24 +95,6 @@ abstract public class FONode {
this.parent = parent;
}

public void setIsInLabel() {
this.isInLabel = true;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++ ) {
FONode child = (FONode) this.children.elementAt(i);
child.setIsInLabel();
}
}

public void setIsInListBody() {
this.isInListBody = true;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setIsInListBody();
}
}

public void setIsInTableCell() {
this.isInTableCell = true;
// made recursive by Eric Schaeffer
@@ -128,33 +104,6 @@ abstract public class FONode {
}
}

public void setDistanceBetweenStarts(int distance) {
this.distanceBetweenStarts = distance;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setDistanceBetweenStarts(distance);
}
}

public void setLabelSeparation(int separation) {
this.labelSeparation = separation;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setLabelSeparation(separation);
}
}

public void setBodyIndent(int indent) {
this.bodyIndent = indent;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setBodyIndent(indent);
}
}

public void forceStartOffset(int offset) {
this.forcedStartOffset = offset;
// made recursive by Eric Schaeffer

+ 79
- 0
src/org/apache/fop/fo/expr/BodyStartFunction.java Vedi File

@@ -0,0 +1,79 @@
/*-- $Id$ --

============================================================================
The Apache Software License, Version 1.1
============================================================================
Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation and was originally created by
James Tauber <jtauber@jtauber.com>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
*/
package org.apache.fop.fo.expr;

import org.apache.fop.fo.Property;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.flow.ListItem;

public class BodyStartFunction extends FunctionBase {

public int nbArgs() { return 0; }

public Property eval(Property[] args, PropertyInfo pInfo)
throws PropertyException
{
Numeric distance
= pInfo.getPropertyList().get("provisional-distance-between-starts").getNumeric();

FObj item = pInfo.getFO();
while(item != null && !(item instanceof ListItem)) {
item = item.getParent();
}
if(item == null) {
throw new PropertyException("body-start() called from outside an fo:list-item");
}

Numeric startIndent = item.properties.get("start-indent").getNumeric();
return new NumericProperty(distance.add(startIndent));
}
}

+ 96
- 0
src/org/apache/fop/fo/expr/LabelEndFunction.java Vedi File

@@ -0,0 +1,96 @@
/*-- $Id$ --

============================================================================
The Apache Software License, Version 1.1
============================================================================
Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation and was originally created by
James Tauber <jtauber@jtauber.com>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
*/
package org.apache.fop.fo.expr;

import org.apache.fop.datatypes.*;
import org.apache.fop.fo.Property;
import org.apache.fop.fo.LengthProperty;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.flow.ListItem;

public class LabelEndFunction extends FunctionBase {

public int nbArgs() { return 0; }

public Property eval(Property[] args, PropertyInfo pInfo)
throws PropertyException {

Length distance
= pInfo.getPropertyList()
.get("provisional-distance-between-starts").getLength();
Length separation
= pInfo.getPropertyList()
.getNearestSpecified("provisional-label-separation").getLength();

FObj item = pInfo.getFO();
while(item != null && !(item instanceof ListItem)) {
item = item.getParent();
}
if(item == null) {
throw new PropertyException("label-end() called from outside an fo:list-item");
}
Length startIndent = item.properties.get("start-indent").getLength();
LinearCombinationLength labelEnd = new LinearCombinationLength();

// Should be CONTAINING_REFAREA but that doesn't work
LengthBase base = new LengthBase(item, pInfo.getPropertyList(),
LengthBase.CONTAINING_BOX);
PercentLength refWidth = new PercentLength(1.0, base);

labelEnd.addTerm(1.0, refWidth);
labelEnd.addTerm(-1.0, distance);
labelEnd.addTerm(-1.0, startIndent);
labelEnd.addTerm(1.0, separation);

return new LengthProperty(labelEnd);
}
}

+ 1
- 0
src/org/apache/fop/fo/expr/Numeric.java Vedi File

@@ -54,6 +54,7 @@ package org.apache.fop.fo.expr;
import org.apache.fop.fo.Property;
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PercentLength;
import org.apache.fop.datatypes.LinearCombinationLength;
import org.apache.fop.datatypes.MixedLength;
import org.apache.fop.datatypes.TableColLength;
import org.apache.fop.datatypes.PercentBase;

+ 2
- 2
src/org/apache/fop/fo/expr/PropertyParser.java Vedi File

@@ -85,6 +85,8 @@ public class PropertyParser extends PropertyTokenizer {
functionTable.put("from-parent", new FromParentFunction());
functionTable.put("from-nearest-specified-value", new NearestSpecPropFunction());
functionTable.put("proportional-column-width", new PPColWidthFunction());
functionTable.put("label-end", new LabelEndFunction());
functionTable.put("body-start", new BodyStartFunction());
// NOTE: used from code generated for corresponding properties
functionTable.put("_fop-property-value", new FopPropValFunction());

@@ -94,8 +96,6 @@ public class PropertyParser extends PropertyTokenizer {

functionTable.put("system-font", new SystemFontFunction());
functionTable.put("label-end", new LabelEndFunction());
functionTable.put("body-start", new BodyStartFunction());
functionTable.put("merge-property-values", new MergePropsFunction());
***/
}

+ 0
- 13
src/org/apache/fop/fo/flow/Block.java Vedi File

@@ -256,14 +256,6 @@ public class Block extends FObjMixed {
if (area instanceof BlockArea) {
area.end();
}
if (this.isInLabel) {
startIndent += bodyIndent;
endIndent += (area.getAllocationWidth() -
distanceBetweenStarts - startIndent) +
labelSeparation;
} else if (this.isInListBody) {
startIndent += bodyIndent + distanceBetweenStarts;
}

if(area.getIDReferences() != null)
area.getIDReferences().createID(id);
@@ -358,11 +350,6 @@ public class Block extends FObjMixed {
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
if (this.isInListBody) {
fo.setIsInListBody();
fo.setDistanceBetweenStarts(this.distanceBetweenStarts);
fo.setBodyIndent(this.bodyIndent);
}
Status status;
if ((status = fo.layout(blockArea)).isIncomplete()) {
this.marker = i;

+ 0
- 11
src/org/apache/fop/fo/flow/ExternalGraphic.java Vedi File

@@ -125,17 +125,6 @@ public class ExternalGraphic extends FObj {
area.end();
}

if (this.isInLabel) {
startIndent += bodyIndent;
endIndent += (area.getAllocationWidth() -
distanceBetweenStarts - startIndent) +
labelSeparation;
}

if (this.isInListBody) {
startIndent += bodyIndent + distanceBetweenStarts;
}

if (this.isInTableCell) {
startIndent += forcedStartOffset;
endIndent = area.getAllocationWidth() - forcedWidth -

+ 0
- 11
src/org/apache/fop/fo/flow/InlineGraphic.java Vedi File

@@ -146,17 +146,6 @@ public class InlineGraphic extends FObj {
area.end();
}

if (this.isInLabel) {
startIndent += bodyIndent;
endIndent += (area.getAllocationWidth()
- distanceBetweenStarts - startIndent)
+ labelSeparation;
}

if (this.isInListBody) {
startIndent += bodyIndent + distanceBetweenStarts;
}

if (this.isInTableCell) {
startIndent += forcedStartOffset;
endIndent = area.getAllocationWidth() - forcedWidth -

+ 0
- 11
src/org/apache/fop/fo/flow/InstreamForeignObject.java Vedi File

@@ -250,17 +250,6 @@ public class InstreamForeignObject extends FObj {
area.increaseHeight(areaCurrent.getEffectiveHeight());
}

if (this.isInLabel) {
startIndent += bodyIndent;
/* endIndent += (areaCurrent.getEffectiveWidth()
- distanceBetweenStarts - startIndent)
+ labelSeparation;*/
}

if (this.isInListBody) {
startIndent += bodyIndent + distanceBetweenStarts;
}

if (this.isInTableCell) {
startIndent += forcedStartOffset;
/* endIndent = areaCurrent.getEffectiveWidth() - forcedWidth -

+ 1
- 22
src/org/apache/fop/fo/flow/ListBlock.java Vedi File

@@ -87,8 +87,6 @@ public class ListBlock extends FObj {
int endIndent;
int spaceBefore;
int spaceAfter;
int provisionalDistanceBetweenStarts;
int provisionalLabelSeparation;
int spaceBetweenListRows = 0;
ColorType backgroundColor;

@@ -128,11 +126,6 @@ public class ListBlock extends FObj {
"space-before.optimum").getLength().mvalue();
this.spaceAfter = this.properties.get(
"space-after.optimum").getLength().mvalue();
this.provisionalDistanceBetweenStarts = this.properties.get(
"provisional-distance-between-starts").getLength().
mvalue();
this.provisionalLabelSeparation = this.properties.get(
"provisional-label-separation").getLength().mvalue();
this.spaceBetweenListRows = 0; // not used at present
this.backgroundColor = this.properties.get(
"background-color").getColorType();
@@ -147,11 +140,6 @@ public class ListBlock extends FObj {
area.addDisplaySpace(spaceBefore);
}

if (this.isInListBody) {
startIndent += bodyIndent + distanceBetweenStarts;
bodyIndent = startIndent;
}

if (this.isInTableCell) {
startIndent += forcedStartOffset;
endIndent += area.getAllocationWidth() - forcedWidth -
@@ -176,14 +164,10 @@ public class ListBlock extends FObj {
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
if (!(children.elementAt(i) instanceof ListItem)) {
MessageHandler.errorln("WARNING: This version of FOP requires list-items inside list-blocks");
MessageHandler.errorln("children of list-blocks must be list-items");
return new Status(Status.OK);
}
ListItem listItem = (ListItem) children.elementAt(i);
listItem.setDistanceBetweenStarts(
this.provisionalDistanceBetweenStarts);
listItem.setLabelSeparation(this.provisionalLabelSeparation);
listItem.setBodyIndent(this.bodyIndent);
Status status;
if ((status = listItem.layout(blockArea)).isIncomplete()) {
if(status.getCode() == Status.AREA_FULL_NONE && i > 0) {
@@ -214,9 +198,4 @@ public class ListBlock extends FObj {
return new Status(Status.OK);
}

public void setBodyIndent(int indent) {
if (! this.isInListBody) {
super.setBodyIndent(indent);
}
}
}

+ 154
- 159
src/org/apache/fop/fo/flow/ListItem.java Vedi File

@@ -1,35 +1,35 @@
/*-- $Id$ --

============================================================================
The Apache Software License, Version 1.1
The Apache Software License, Version 1.1
============================================================================

Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
Copyright (C) 1999 The Apache Software Foundation. All rights reserved.

Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.

4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.

5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -64,149 +64,144 @@ import java.util.Enumeration;

public class ListItem extends FObj {

public static class Maker extends FObj.Maker {
public FObj make(FObj parent, PropertyList propertyList)
throws FOPException {
return new ListItem(parent, propertyList);
}
}

public static FObj.Maker maker() {
return new ListItem.Maker();
}

FontState fs;
int align;
int alignLast;
int breakBefore;
int breakAfter;
int lineHeight;
int startIndent;
int endIndent;
int spaceBefore;
int spaceAfter;
String id;

public ListItem(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
this.name = "fo:list-item";
}

public Status layout(Area area) throws FOPException {
if (this.marker == START) {
String fontFamily =
this.properties.get("font-family").getString();
String fontStyle =
this.properties.get("font-style").getString();
String fontWeight =
this.properties.get("font-weight").getString();
int fontSize =
this.properties.get("font-size").getLength().mvalue();
// font-variant support
// added by Eric SCHAEFFER
int fontVariant =
this.properties.get("font-variant").getEnum();

this.fs = new FontState(area.getFontInfo(), fontFamily,
fontStyle, fontWeight, fontSize, fontVariant);

this.align = this.properties.get("text-align").getEnum();
this.alignLast =
this.properties.get("text-align-last").getEnum();
this.lineHeight =
this.properties.get("line-height").getLength().mvalue();
this.startIndent =
this.properties.get("start-indent").getLength().mvalue();
this.endIndent =
this.properties.get("end-indent").getLength().mvalue();
this.spaceBefore =
this.properties.get("space-before.optimum").getLength().mvalue();
this.spaceAfter =
this.properties.get("space-after.optimum").getLength().mvalue();
this.id =
this.properties.get("id").getString();

area.getIDReferences().createID(id);

this.marker = 0;
}

/* not sure this is needed given we know area is from list block */
if (area instanceof BlockArea) {
area.end();
}

if (spaceBefore != 0) {
area.addDisplaySpace(spaceBefore);
}

startIndent += this.bodyIndent;

BlockArea blockArea =
new BlockArea(fs, area.getAllocationWidth(),
area.spaceLeft(), startIndent, endIndent,
0, align, alignLast, lineHeight);
blockArea.setPage(area.getPage());
blockArea.start();

blockArea.setAbsoluteHeight(area.getAbsoluteHeight());
blockArea.setIDReferences(area.getIDReferences());

int numChildren = this.children.size();
if (numChildren != 2) {
throw new FOPException("list-item must have exactly two children");
}
ListItemLabel label = (ListItemLabel) children.elementAt(0);
ListItemBody body = (ListItemBody) children.elementAt(1);

label.setDistanceBetweenStarts(this.distanceBetweenStarts);
label.setLabelSeparation(this.labelSeparation);
label.setBodyIndent(this.bodyIndent);

body.setDistanceBetweenStarts(this.distanceBetweenStarts);
body.setBodyIndent(this.bodyIndent);

/* this doesn't actually do anything */
body.setLabelSeparation(this.labelSeparation);

Status status;

// what follows doesn't yet take into account whether the
// body failed completely or only got some text in

if (this.marker == 0) {
// configure id
area.getIDReferences().configureID(id,area);

status = label.layout(blockArea);
if (status.isIncomplete()) {
return status;
}
}

status = body.layout(blockArea);
if (status.isIncomplete()) {
blockArea.end();
area.addChild(blockArea);
area.increaseHeight(blockArea.getHeight());
area.setAbsoluteHeight(blockArea.getAbsoluteHeight());
this.marker = 1;
return status;
}

blockArea.end();
area.addChild(blockArea);
area.increaseHeight(blockArea.getHeight());
area.setAbsoluteHeight(blockArea.getAbsoluteHeight());

if (spaceAfter != 0) {
area.addDisplaySpace(spaceAfter);
}

/* not sure this is needed given we know area is from list block */
if (area instanceof BlockArea) {
area.start();
}
return new Status(Status.OK);
}
public static class Maker extends FObj.Maker {
public FObj make(FObj parent, PropertyList propertyList)
throws FOPException {
return new ListItem(parent, propertyList);
}
}

public static FObj.Maker maker() {
return new ListItem.Maker();
}

FontState fs;
int align;
int alignLast;
int breakBefore;
int breakAfter;
int lineHeight;
int startIndent;
int endIndent;
int spaceBefore;
int spaceAfter;
String id;
BlockArea blockArea;
public ListItem(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
this.name = "fo:list-item";
}

public Status layout(Area area) throws FOPException {
if (this.marker == START) {
String fontFamily =
this.properties.get("font-family").getString();
String fontStyle =
this.properties.get("font-style").getString();
String fontWeight =
this.properties.get("font-weight").getString();
int fontSize =
this.properties.get("font-size").getLength().mvalue();
// font-variant support
// added by Eric SCHAEFFER
int fontVariant =
this.properties.get("font-variant").getEnum();
this.fs = new FontState(area.getFontInfo(), fontFamily,
fontStyle, fontWeight, fontSize, fontVariant);
this.align = this.properties.get("text-align").getEnum();
this.alignLast =
this.properties.get("text-align-last").getEnum();
this.lineHeight =
this.properties.get("line-height").getLength().mvalue();
this.spaceBefore =
this.properties.get("space-before.optimum").getLength().mvalue();
this.spaceAfter =
this.properties.get("space-after.optimum").getLength().mvalue();
this.id =
this.properties.get("id").getString();

area.getIDReferences().createID(id);

this.marker = 0;
}

/* not sure this is needed given we know area is from list block */
if (area instanceof BlockArea) {
area.end();
}

if (spaceBefore != 0) {
area.addDisplaySpace(spaceBefore);
}

this.blockArea =
new BlockArea(fs, area.getAllocationWidth(),
area.spaceLeft(), 0, 0,
0, align, alignLast, lineHeight);
blockArea.setPage(area.getPage());
blockArea.start();

blockArea.setAbsoluteHeight(area.getAbsoluteHeight());
blockArea.setIDReferences(area.getIDReferences());

int numChildren = this.children.size();
if (numChildren != 2) {
throw new FOPException("list-item must have exactly two children");
}
ListItemLabel label = (ListItemLabel) children.elementAt(0);
ListItemBody body = (ListItemBody) children.elementAt(1);

Status status;
// what follows doesn't yet take into account whether the
// body failed completely or only got some text in

if (this.marker == 0) {
// configure id
area.getIDReferences().configureID(id,area);

status = label.layout(blockArea);
if (status.isIncomplete()) {
return status;
}
}

status = body.layout(blockArea);
if (status.isIncomplete()) {
blockArea.end();
area.addChild(blockArea);
area.increaseHeight(blockArea.getHeight());
area.setAbsoluteHeight(blockArea.getAbsoluteHeight());
this.marker = 1;
return status;
}

blockArea.end();
area.addChild(blockArea);
area.increaseHeight(blockArea.getHeight());
area.setAbsoluteHeight(blockArea.getAbsoluteHeight());

if (spaceAfter != 0) {
area.addDisplaySpace(spaceAfter);
}

/* not sure this is needed given we know area is from list block */
if (area instanceof BlockArea) {
area.start();
}
return new Status(Status.OK);
}

/**
* Return the content width of the boxes generated by this FO.
*/
public int getContentWidth() {
if (blockArea != null)
return blockArea.getContentWidth(); //getAllocationWidth()??
else return 0; // not laid out yet
}

}

+ 1
- 4
src/org/apache/fop/fo/flow/ListItemBody.java Vedi File

@@ -90,10 +90,7 @@ public class ListItemBody extends FObj {
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FObj fo = (FObj) children.elementAt(i);
fo.setIsInListBody();
fo.setDistanceBetweenStarts(this.distanceBetweenStarts);
fo.setLabelSeparation(this.labelSeparation);
fo.setBodyIndent(this.bodyIndent);

Status status;
if ((status = fo.layout(area)).isIncomplete()) {
this.marker = i;

+ 0
- 5
src/org/apache/fop/fo/flow/ListItemLabel.java Vedi File

@@ -92,11 +92,6 @@ public class ListItemLabel extends FObj {
Block block = (Block) children.elementAt(0);

block.setIsInLabel();
block.setDistanceBetweenStarts(this.distanceBetweenStarts);
block.setLabelSeparation(this.labelSeparation);
block.setBodyIndent(this.bodyIndent);

Status status;
status = block.layout(area);
area.addDisplaySpace(-block.getAreaHeight());

Loading…
Annulla
Salva