b) to create entry fields in fill-in-the-blank forms c) to create horizontal rules for use as separators. You
define the look and use of fo:leader with the property "leader-pattern". It can have the following values: a) space. This
just creates an space. b) dots. This creates a sequence of "." c) rule. This creates a line. d) use-content. This creates a
- repeating pattern of the content of fo:leader (not supported yet by Fop).
+ repeating pattern of the content of fo:leader.
</fo:block>
Here is some longer text. Here is some longer text. Here is some longer text.
</fo:block>
+ <fo:block space-before.optimum="15pt" font-weight="bold" font-size="14pt">
+ Use-Content
+ </fo:block>
+
+ <fo:block space-before.optimum="8pt" font-size="12pt">
+ The following examples show Leader with "use-content".
+ The inline areas from the context of the leader are
+ repeated until the lenght of the leader. The
+ "leader-pattern-width" can be used to set the width
+ of each repeated pattern element. <fo:inline font-style="italic">
+ If this width is less than the inline areas then the width
+ of the inline areas is used.</fo:inline>
+ </fo:block>
- <fo:block text-align="start">Characters:
+ <fo:block space-before.optimum="5pt" text-align="start">Characters:
<fo:leader leader-pattern="use-content">abcd</fo:leader>
</fo:block>
- <fo:block text-align="start">Set width:
+ <fo:block space-before.optimum="5pt" text-align="start">Set width:
<fo:leader leader-pattern="use-content"
leader-pattern-width="50pt">abcd</fo:leader>
</fo:block>
- <fo:block text-align="start">Small Width:
+ <fo:block space-before.optimum="5pt" text-align="start">Small Width:
<fo:leader leader-pattern="use-content"
leader-pattern-width="2pt">abcd</fo:leader>
</fo:block>
- <fo:block text-align="start">SVG:
+ <fo:block space-before.optimum="5pt" text-align="start">SVG:
<fo:leader leader-pattern="use-content">
<fo:instream-foreign-object>
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
margin-bottom="1in"
margin-left="1in"
margin-right="1in">
- <fo:region-body/>
+ <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/>
+ <fo:region-before extent="2.5cm"/>
+ <fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
<!-- actual layout -->
<fo:page-sequence master-reference="first">
-
+ <!-- header -->
+ <fo:static-content flow-name="xsl-region-before">
+ <fo:block text-align="end"
+ font-size="8pt"
+ font-family="serif"
+ line-height="14pt" >
+ <fo:basic-link external-destination="http://xml.apache.org/fop"
+ color="rgb(150,150,150)" font-style="italic">
+ http://xml.apache.org/fop
+ </fo:basic-link>
+ </fo:block>
+ </fo:static-content>
<fo:flow flow-name="xsl-region-body">
</fo:table>
<!-- table end -->
+ <fo:block break-before="page" space-after.optimum="12pt" font-family="serif" text-align="start" font-weight="bold">
+ Links in different orientations
+ </fo:block>
+
+ <fo:block>
+ This block container has a different reference orientation.
+ <fo:block-container reference-orientation="90" inline-progression-dimension="150pt">
+ <fo:block>
+ A link applies to the inline parent area that is created
+ by the basic-link. This inline area has a trait specifying
+ the link.
+ </fo:block>
+ <fo:block>
+ <fo:basic-link external-destination="http://xml.apache.org/fop"
+ color="blue" text-decoration="underline">
+ http://xml.apache.org/fop
+ </fo:basic-link>
+ </fo:block>
+ </fo:block-container>
+ </fo:block>
+
</fo:flow>