aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-11-04 16:31:20 +0000
committerKeiron Liddle <keiron@apache.org>2002-11-04 16:31:20 +0000
commit355de5cf8e8c013172c2664415e1df8bdfb5d632 (patch)
treeddbd33063a65742fd17204fecf2fb7271b6b1fef /docs/examples
parent3a02751a91cb55ce220757456c98ae91db1a8935 (diff)
downloadxmlgraphics-fop-355de5cf8e8c013172c2664415e1df8bdfb5d632.tar.gz
xmlgraphics-fop-355de5cf8e8c013172c2664415e1df8bdfb5d632.zip
improved examples a bit
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/fo/extensive.fo14
-rw-r--r--docs/examples/fo/leader.fo25
2 files changed, 33 insertions, 6 deletions
diff --git a/docs/examples/fo/extensive.fo b/docs/examples/fo/extensive.fo
index 3b9752257..a1cc5c46a 100644
--- a/docs/examples/fo/extensive.fo
+++ b/docs/examples/fo/extensive.fo
@@ -117,18 +117,20 @@
<fo:block>This is default!</fo:block>
<fo:block white-space-collapse="false">This is false!</fo:block>
<fo:block white-space-collapse="true">This is true!</fo:block>
-<fo:block font-family="monospace" white-space-collapse="false">
-<![CDATA[
-<?xml version="1.0"?>
+<fo:block font-family="monospace"
+ white-space-collapse="false"
+ linefeed-treatment="preserve"
+ white-space-treatment="preserve"
+ wrap-option="no-wrap">
+<![CDATA[<?xml version="1.0"?>
<document>
<heading>This is a heading</heading>
<list>
<item>Item one</item>
<item>Item two</item>
</list>
-</document>
-]]>
-</fo:block>-->
+</document>]]>
+</fo:block>
<fo:block break-before="page" font-size="24pt" line-height="28pt" space-before.optimum="12pt" space-after.optimum="12pt">Embedded SVG</fo:block>
<fo:block><fo:instream-foreign-object>
<svg:svg width="400pt" height="200pt">
diff --git a/docs/examples/fo/leader.fo b/docs/examples/fo/leader.fo
index 4f5c8ea94..0fd310980 100644
--- a/docs/examples/fo/leader.fo
+++ b/docs/examples/fo/leader.fo
@@ -756,6 +756,31 @@
</fo:instream-foreign-object>
</fo:leader>
</fo:block>
+
+ <fo:block space-before.optimum="5pt" text-align="start">Mixed:
+ <fo:leader leader-pattern="use-content">
+abc
+<fo:instream-foreign-object>
+<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
+<rect x="0" y="0" width="5" height="5" style="fill:red"/>
+<rect x="5" y="5" width="5" height="5" style="fill:black"/>
+</svg>
+</fo:instream-foreign-object>
+ </fo:leader>
+ </fo:block>
+
+ <fo:block space-before.optimum="5pt" text-align="start">Mixed:
+ <fo:leader leader-pattern="use-content">
+abc
+<fo:instream-foreign-object>
+<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
+<rect x="0" y="0" width="5" height="5" style="fill:red"/>
+<rect x="5" y="5" width="5" height="5" style="fill:black"/>
+</svg>
+</fo:instream-foreign-object>
+def
+ </fo:leader>
+ </fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>