[FOray-commit] SF.net SVN: foray: [7699] trunk/foray/resource/fo-examples/svg
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-17 22:09:32
|
Revision: 7699 Author: victormote Date: 2006-06-17 15:08:55 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7699&view=rev Log Message: ----------- Whitespace changes only. Modified Paths: -------------- trunk/foray/resource/fo-examples/basic/bgimage.fo trunk/foray/resource/fo-examples/basic/border.fo trunk/foray/resource/fo-examples/basic/bordershorthand.fo trunk/foray/resource/fo-examples/basic/character.fo trunk/foray/resource/fo-examples/basic/corresprop.fo trunk/foray/resource/fo-examples/basic/extensive.fo trunk/foray/resource/fo-examples/basic/hyphen.fo trunk/foray/resource/fo-examples/basic/inhprop.fo trunk/foray/resource/fo-examples/basic/inline.fo trunk/foray/resource/fo-examples/basic/list.fo trunk/foray/resource/fo-examples/basic/normalex.fo trunk/foray/resource/fo-examples/basic/simple.fo trunk/foray/resource/fo-examples/basic/tableunits.fo trunk/foray/resource/fo-examples/basic/textdeko.fo trunk/foray/resource/fo-examples/footnotes/columns.fo trunk/foray/resource/fo-examples/keeps-and-breaks/columnlevel1.fo trunk/foray/resource/fo-examples/keeps-and-breaks/pagelevel1.fo trunk/foray/resource/fo-examples/keeps-and-breaks/pagelevel2.fo trunk/foray/resource/fo-examples/keeps-and-breaks/pagelevel3.fo trunk/foray/resource/fo-examples/keeps-and-breaks/pagelevel4.fo trunk/foray/resource/fo-examples/markers/glossary.xsl trunk/foray/resource/fo-examples/pagination/basic1.fo trunk/foray/resource/fo-examples/pagination/basic2.fo trunk/foray/resource/fo-examples/pagination/franklin_2pageseqs.fo trunk/foray/resource/fo-examples/pagination/franklin_alt.fo trunk/foray/resource/fo-examples/region-body/simplecol.fo trunk/foray/resource/fo-examples/region-body/simplecol2.fo trunk/foray/resource/fo-examples/region-body/simplecol3.fo trunk/foray/resource/fo-examples/region-body/simplecol4.fo trunk/foray/resource/fo-examples/svg/embedding.fo trunk/foray/resource/fo-examples/tables/background.fo trunk/foray/resource/fo-examples/tables/borders.fo trunk/foray/resource/fo-examples/tables/break.fo trunk/foray/resource/fo-examples/tables/keep.fo trunk/foray/resource/fo-examples/tables/omit.fo trunk/foray/resource/fo-examples/tables/space.fo trunk/foray/resource/fo-examples/tables/widowsorphans.fo Modified: trunk/foray/resource/fo-examples/basic/bgimage.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/bgimage.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/bgimage.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -39,8 +39,8 @@ </fo:page-sequence> </fo:root> - + Modified: trunk/foray/resource/fo-examples/basic/border.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/border.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/border.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -10,7 +10,7 @@ page-width="21cm" page-height="29.7cm" master-name="rest"> <fo:region-body></fo:region-body> </fo:simple-page-master> - + <fo:page-sequence-master master-name="psmA"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="first" @@ -35,7 +35,7 @@ Newburyport, MA 01950 </fo:block> <fo:block text-align="start" line-height="18pt" font-family="sans-serif" font-weight="bold" font-size="14pt"> - 978-462-1152 + 978-462-1152 </fo:block> </fo:block-container> <fo:block-container height="1cm" width="6cm" top="0cm" left="14cm" position="absolute"> @@ -43,7 +43,7 @@ Sales Receipt </fo:block> </fo:block-container> - + <fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="0.5cm" width="2.49cm" top="1.2cm" left="13.8cm" padding=".6mm" position="absolute"> <fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt"> DATE @@ -64,7 +64,7 @@ 1 </fo:block> </fo:block-container> - + <fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="0.5cm" width="8.95cm" top="3cm" left="0cm" padding=".6mm" position="absolute"> <fo:block text-align="start" line-height="14pt" font-family="sans-serif" font-size="12pt"> SOLD TO @@ -84,7 +84,7 @@ </fo:block> </fo:block-container> - + <fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="0.5cm" width="3.96cm" top="7.25cm" left="10.74cm" padding="1mm" position="absolute"> <fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt"> PMT METHOD @@ -105,8 +105,8 @@ 1234 </fo:block> </fo:block-container> - - + + <fo:block-container height="17cm" width="19cm" top="9.4cm" left="0cm" position="absolute"> <fo:table table-layout="fixed" border-collapse="separate" border-color="yellow" border-style="solid" border-width=".6mm" height="17cm"> <fo:table-column column-width="2.5cm"/> Modified: trunk/foray/resource/fo-examples/basic/bordershorthand.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/bordershorthand.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/bordershorthand.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- example for a simple fo file. At the beginning the page layout is set. -Below fo:root there is always +<!-- example for a simple fo file. At the beginning the page layout is set. +Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts - an optional fo:declarations, - and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> @@ -10,23 +10,23 @@ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - - page-sequence-masters: have the role of describing the sequence - of page-masters that will be used to generate - pages during the formatting of an fo:page-sequence + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + - page-sequence-masters: have the role of describing the sequence + of page-masters that will be used to generate + pages during the formatting of an fo:page-sequence --> <!-- layout for the first page --> <fo:simple-page-master master-name="first" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="1cm" - margin-bottom="2cm" - margin-left="2.0cm + 0.5cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="2.0cm + 0.5cm" margin-right="(5cm * 1cm) div 2cm"> <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/> <fo:region-before extent="3cm"/> @@ -37,9 +37,9 @@ <fo:simple-page-master master-name="rest" page-height="abs(-30cm + .3cm)" page-width="(10cm * 2) + 1cm" - margin-top="round(.5) * 1cm" + margin-top="round(.5) * 1cm" margin-bottom="round(2.4) * 1cm" - margin-left="2.5 * 1cm" + margin-left="2.5 * 1cm" margin-right="5.5cm - 3cm"> <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/> <fo:region-before extent="2.5cm"/> @@ -65,20 +65,20 @@ <!-- header --> <fo:static-content flow-name="xsl-region-before"> - <fo:block text-align="end" - font-size="10pt" - font-family="serif" + <fo:block text-align="end" + font-size="10pt" + font-family="serif" line-height="1em + 4pt" > Border and Padding Shorthand Tests - p. <fo:page-number/> </fo:block> - </fo:static-content> + </fo:static-content> <fo:flow flow-name="xsl-region-body"> <!-- defines text title level 1--> - <fo:block font-size="min(18pt,20pt)" - font-family="sans-serif" + <fo:block font-size="min(18pt,20pt)" + font-family="sans-serif" line-height="max(24pt,18pt)" space-after.optimum="5 mod 3 * 7.5pt" background-color="rgb(128,128,128)" @@ -89,8 +89,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="12pt" text-align="start" @@ -106,8 +106,8 @@ padding-left, padding-right, padding-top, and padding-bottom, etc. According to the specification, a request for the absolute (top, bottom, left, right) versions of these properties should use the relative ones if they are specified. </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="12pt" text-align="start" @@ -123,8 +123,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="3pt" text-align="start" @@ -143,8 +143,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="3pt" text-align="start" @@ -158,7 +158,7 @@ border-before-width="2pt" border-after-width="2pt" border-before-color="rgb(200,200,200)" border-after-color="rgb(100,100,100)"> -In this example, padding and border properties are specified using +In this example, padding and border properties are specified using shorthand and writing-mode relative properties: padding-before, padding-after, padding-start, and padding-end, etc. According to the specification, a request for the absolute (top, bottom, left, right) versions of these properties should use the relative ones if they are specified. Modified: trunk/foray/resource/fo-examples/basic/character.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/character.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/character.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,29 +1,29 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- example for a simple fo file. At the beginning the page layout is set. - Below fo:root there is always +<!-- example for a simple fo file. At the beginning the page layout is set. + Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts -- an optional fo:declarations -- and a sequence of one or more fo:page-sequences containing the text and formatting instructions +- an optional fo:declarations +- and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - In this case there is only a simple-page-master which defines the + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + In this case there is only a simple-page-master which defines the layout for all pages of the text --> <!-- layout information --> <fo:simple-page-master master-name="simple" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="1cm" - margin-bottom="2cm" - margin-left="2.5cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/> <fo:region-before extent="3cm"/> @@ -35,25 +35,25 @@ <!-- start page-sequence here comes the text (contained in flow objects) - the page-sequence can contain different fo:flows + the page-sequence can contain different fo:flows the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> <fo:page-sequence master-reference="simple"> <!-- start fo:flow - each flow is targeted + each flow is targeted at one (and only one) of the following: xsl-region-body (usually: normal text) xsl-region-before (usually: header) xsl-region-after (usually: footer) - xsl-region-start (usually: left margin) + xsl-region-start (usually: left margin) xsl-region-end (usually: right margin) - ['usually' applies here to languages with left-right and top-down + ['usually' applies here to languages with left-right and top-down writing direction like English] in this case there is only one target: xsl-region-body --> - <fo:flow flow-name="xsl-region-body" + <fo:flow flow-name="xsl-region-body" text-align="justify"> <!-- each paragraph is encapsulated in a block element @@ -62,13 +62,13 @@ <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" > -1. Why <fo:character character="T" font-size="16pt" color="red"/><fo:character character="E" font-size="16pt" color="blue"/><fo:character character="I" font-size="16pt" color="green"/>? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. -Why T<fo:character character="E"/>I? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. +1. Why <fo:character character="T" font-size="16pt" color="red"/><fo:character character="E" font-size="16pt" color="blue"/><fo:character character="I" font-size="16pt" color="green"/>? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. +Why T<fo:character character="E"/>I? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too. @@ -77,23 +77,23 @@ </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" > -1. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. -Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. +1. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. +Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too. </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" > Modified: trunk/foray/resource/fo-examples/basic/corresprop.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/corresprop.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/corresprop.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- example for a simple fo file. At the beginning the page layout is set. -Below fo:root there is always +<!-- example for a simple fo file. At the beginning the page layout is set. +Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts - an optional fo:declarations, - and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> @@ -10,23 +10,23 @@ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - - page-sequence-masters: have the role of describing the sequence - of page-masters that will be used to generate - pages during the formatting of an fo:page-sequence + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + - page-sequence-masters: have the role of describing the sequence + of page-masters that will be used to generate + pages during the formatting of an fo:page-sequence --> <!-- layout for the first page --> <fo:simple-page-master master-name="first" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="1cm" - margin-bottom="2cm" - margin-left="2.0cm + 0.5cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="2.0cm + 0.5cm" margin-right="(5cm * 1cm) div 2cm"> <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/> <fo:region-before extent="3cm"/> @@ -37,9 +37,9 @@ <fo:simple-page-master master-name="rest" page-height="abs(-30cm + .3cm)" page-width="(10cm * 2) + 1cm" - margin-top="round(.5) * 1cm" + margin-top="round(.5) * 1cm" margin-bottom="round(2.4) * 1cm" - margin-left="2.5 * 1cm" + margin-left="2.5 * 1cm" margin-right="5.5cm - 3cm"> <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/> <fo:region-before extent="2.5cm"/> @@ -65,19 +65,19 @@ <!-- header --> <fo:static-content flow-name="xsl-region-before"> - <fo:block text-align="end" - font-size="10pt" - font-family="serif" + <fo:block text-align="end" + font-size="10pt" + font-family="serif" line-height="1em + 4pt" > Corresponding Property Tests - p. <fo:page-number/> </fo:block> - </fo:static-content> + </fo:static-content> <fo:flow flow-name="xsl-region-body"> <!-- defines text title level 1--> - <fo:block font-size="min(18pt,20pt)" - font-family="sans-serif" + <fo:block font-size="min(18pt,20pt)" + font-family="sans-serif" line-height="max(24pt,18pt)" space-after.optimum="5 mod 3 * 7.5pt" background-color="rgb(0,0,255)" @@ -88,8 +88,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="12pt" text-align="start" @@ -106,8 +106,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="3pt" text-align="start" @@ -122,9 +122,9 @@ padding-before, padding-after, padding-start, and padding-end, etc. According to the specification, a request for the absolute (top, bottom, left, right) versions of these properties should use the relative ones if they are specified. </fo:block> - - <fo:block font-size="12pt" - font-family="sans-serif" + + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -132,9 +132,9 @@ start-indent="1cm"> This block has a start-indent of 1cm and no borders or padding. It has no margin-left set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. - </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + </fo:block> + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -143,8 +143,8 @@ This block has a margin-left of 1cm and no borders or padding. It has no start-indent set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -153,9 +153,9 @@ padding-left="4mm" border-left-width="1mm"> This block has a start-indent of 1cm, padding-left of 4mm and border-left-width of 1mm. It has no margin-left set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. - </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + </fo:block> + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -176,8 +176,8 @@ break-before="page"> End-indent tests </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -185,9 +185,9 @@ end-indent="1cm"> This block has an end-indent of 1cm and no borders or padding. It has no margin-right set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. - </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + </fo:block> + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -196,8 +196,8 @@ This block has a margin-right of 1cm and no borders or padding. It has no end-indent set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -206,9 +206,9 @@ padding-end="4mm" border-end-width="1mm"> This block has an end-indent of 1cm, padding-end of 4mm and border-end-width of 1mm. It has no margin-right set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. - </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + </fo:block> + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" @@ -219,8 +219,8 @@ border-right-width of 1mm. (Margin is outside the border rectangle.) It has no end-indent set. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text. Here is some more text to fill out the block. Here is some more text to fill out the block. Here is some more text to fill out the block. </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-before="12pt" space-after="3pt" Modified: trunk/foray/resource/fo-examples/basic/extensive.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/extensive.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/extensive.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -128,7 +128,7 @@ <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"> +<fo:block font-family="monospace" white-space-collapse="false"> <![CDATA[ <?xml version="1.0"?> <document> Modified: trunk/foray/resource/fo-examples/basic/hyphen.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/hyphen.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/hyphen.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,29 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- example for a simple fo file. At the beginning the page layout is set. - Below fo:root there is always +<!-- example for a simple fo file. At the beginning the page layout is set. + Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts -- an optional fo:declarations -- and a sequence of one or more fo:page-sequences containing the text and formatting instructions +- an optional fo:declarations +- and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - In this case there is only a simple-page-master which defines the + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + In this case there is only a simple-page-master which defines the layout for all pages of the text --> <!-- layout information --> <fo:simple-page-master master-name="simple" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="1cm" - margin-bottom="2cm" - margin-left="7cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="7cm" margin-right="3cm"> <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/> <fo:region-before extent="3cm"/> @@ -35,25 +35,25 @@ <!-- start page-sequence here comes the text (contained in flow objects) - the page-sequence can contain different fo:flows + the page-sequence can contain different fo:flows the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> <fo:page-sequence master-reference="simple"> <!-- start fo:flow - each flow is targeted + each flow is targeted at one (and only one) of the following: xsl-region-body (usually: normal text) xsl-region-before (usually: header) xsl-region-after (usually: footer) - xsl-region-start (usually: left margin) + xsl-region-start (usually: left margin) xsl-region-end (usually: right margin) - ['usually' applies here to languages with left-right and top-down + ['usually' applies here to languages with left-right and top-down writing direction like English] in this case there is only one target: xsl-region-body --> - <fo:flow flow-name="xsl-region-body" + <fo:flow flow-name="xsl-region-body" text-align="justify"> <!-- each paragraph is encapsulated in a block element @@ -61,20 +61,20 @@ font-family and size, line-heigth etc. --> <!-- this defines a title --> - <fo:block font-size="18pt" - font-family="sans-serif" + <fo:block font-size="18pt" + font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" color="white" text-align="center" padding-top="3pt"> - Hyphenation tests + Hyphenation tests </fo:block> <!-- this defines a title --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -83,8 +83,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" text-align="justify" @@ -101,8 +101,8 @@ </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" text-align="justify" @@ -115,13 +115,13 @@ This document specifies a syntax created by subsetting an existing, widely used international text processing standard (Standard Generalized Markup Language, ISO 8879:1986(E) as amended and corrected) for use on the World Wide Web. It is a product of the W3C XML Activity, details of which can be found at the w3c website. A list of current W3C - Recommendations and other technical documents can be found there too. + Recommendations and other technical documents can be found there too. </fo:block> <!-- this defines a title --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -130,8 +130,8 @@ </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" background-color="rgb(173, 216, 230)" @@ -140,66 +140,66 @@ hyphenation-push-character-count="2" hyphenation-remain-character-count="2" > 1. Warum TEI? - Die Verwendungszeit elektronischer Editionen wird von mehreren - Faktoren verkürzt: der kurzen Lebensdauer der Programme, die zu - ihrer Darstellung verwendet werden, der etwas längeren der - Betriebssysteme, unter denen die Darstellungsprogramme laufen, - der logischen Einrichtung des Datenträgers, auf dem sich die - Edition befindet, und dessen physischer Dauer. Um die besonders - unangenehme Abhängigkeit elektronischer Texte von bestimmten - Programmen und Betriebssystemen zu vermeiden, haben - Wissenschaftler ein Textauszeichnungssystem für philologische - Belange entwickelt, das nach dem Entwicklerteam "Text Encoding - Initiative" (TEI) genannt wird (1). + Die Verwendungszeit elektronischer Editionen wird von mehreren + Faktoren verkürzt: der kurzen Lebensdauer der Programme, die zu + ihrer Darstellung verwendet werden, der etwas längeren der + Betriebssysteme, unter denen die Darstellungsprogramme laufen, + der logischen Einrichtung des Datenträgers, auf dem sich die + Edition befindet, und dessen physischer Dauer. Um die besonders + unangenehme Abhängigkeit elektronischer Texte von bestimmten + Programmen und Betriebssystemen zu vermeiden, haben + Wissenschaftler ein Textauszeichnungssystem für philologische + Belange entwickelt, das nach dem Entwicklerteam "Text Encoding + Initiative" (TEI) genannt wird (1). </fo:block> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" background-color="rgb(173, 216, 230)" language="de" hyphenate="true"> - Das Auszeichnungssystem TEI ist eine Anwendung der Metasprache - zur Beschreibung programmunabhängiger Auszeichnungssysteme SGML - (Standard Generalized Markup Language), so wie auch HTML, mit - dem die meisten Texte des Internets zur Zeit ausgezeichnet - sind, eine Anwendung von SGML ist. Daten, die entsprechend den - TEI-Richtlinien ausgezeichnet worden sind, können also mit - jedem Programm, das SGML-Daten verarbeiten kann, dargestellt, + Das Auszeichnungssystem TEI ist eine Anwendung der Metasprache + zur Beschreibung programmunabhängiger Auszeichnungssysteme SGML + (Standard Generalized Markup Language), so wie auch HTML, mit + dem die meisten Texte des Internets zur Zeit ausgezeichnet + sind, eine Anwendung von SGML ist. Daten, die entsprechend den + TEI-Richtlinien ausgezeichnet worden sind, können also mit + jedem Programm, das SGML-Daten verarbeiten kann, dargestellt, umgewandelt oder durchsucht werden. (2) </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" background-color="rgb(173, 216, 230)" language="de" hyphenate="true"> - - Verwendet wurde für die Auszeichnung 'teilite', das eine - Teilmenge des gesamten Auszeichnungssystems TEI bietet, aber - auf einige der komplexeren Merkmale verzichtet und deshalb auch - eine einfache Konvertierung der Daten zu neueren Metasprachen - für Auszeichnungssysteme wie XML, einer Teilmenge von SGML, + + Verwendet wurde für die Auszeichnung 'teilite', das eine + Teilmenge des gesamten Auszeichnungssystems TEI bietet, aber + auf einige der komplexeren Merkmale verzichtet und deshalb auch + eine einfache Konvertierung der Daten zu neueren Metasprachen + für Auszeichnungssysteme wie XML, einer Teilmenge von SGML, ermöglicht. - SGML-Programme mit der Leistungsfähigkeit von Folio Views sind - z.Zt. noch relativ teuer, daher wurde für die vorliegende - Edition der Weg gewählt, den Text doppelt auf die CD zu legen: - Einmal für die sofortige Nutzung mit einer komfortablen - Oberfläche und einmal ohne Software in einem Format, das seine - langfristige Verwendbarkeit garantiert. + SGML-Programme mit der Leistungsfähigkeit von Folio Views sind + z.Zt. noch relativ teuer, daher wurde für die vorliegende + Edition der Weg gewählt, den Text doppelt auf die CD zu legen: + Einmal für die sofortige Nutzung mit einer komfortablen + Oberfläche und einmal ohne Software in einem Format, das seine + langfristige Verwendbarkeit garantiert. Das Nachstehende soll einige Hinweise zur Einrichtung der TEI- - Dateien geben, um deren weitere Verwendung zu erleichtern. + Dateien geben, um deren weitere Verwendung zu erleichtern. </fo:block> <!-- Finnish example sent in by Jarno Elovirta --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -249,17 +249,17 @@ markkaa. Uuden yhdistyneen yrityksen nimenä säilyy Macromedia ja sen johdossa jatkaa Macromedian nykyinen toimitusjohtaja Rob Burgess. Yrityksen tuotteisiin lukeutuvat mm. Macromedia Dreamweaver, Macromedia Flash, Allaire ColdFusion ja - Allaire JRun. Lue juttu.</fo:block> + Allaire JRun. Lue juttu.</fo:block> </fo:block> <!-- Italian example sent in by Stéphane Bline--> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" text-align="start"> - Italian + Italian </fo:block> <fo:block background-color="rgb(173, 216, 230)" @@ -293,12 +293,12 @@ contratto d'abbonamento a un'applicazione di servizio perfettamente adattata. Le società e B scambiano informazioni relative all'utilizzo online di questa applicazione, come il costo del servizio, le modalitàdi pagamento e la gestione - degli account utente come i profili.</fo:block> </fo:block> + degli account utente come i profili.</fo:block> </fo:block> <!-- this defines a title --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -316,7 +316,7 @@ </fo:block> <fo:block background-color="rgb(173, 216, 230)" - language="da" + language="da" hyphenate="true"> Bekendtgørelsens regler hindrer ikke import, salg og anvendelse af produkter, der på tidspunktet for @@ -326,11 +326,11 @@ begrænsning af motorbenzins indhold af blyforbindelser og benzen. </fo:block> <fo:block background-color="rgb(173, 216, 230)" - language="da" + language="da" hyphenate="true"> Import og salg af produkter, der indeholder kemiske forbindelser af bly, er forbudt fra 1. marts 2001. - Uanset forbudet i stk. + Uanset forbudet i stk. 1 er import og salg af produkter, der indeholder kemiske forbindelser af bly, fortsat tilladt for de produktkategorier, som er nævnt i bilag 1 til denne bekendtgørelse, indtil de i bilaget anførte @@ -339,8 +339,8 @@ <!-- this defines a title --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -349,14 +349,14 @@ </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" background-color="rgb(173, 216, 230)" language="no" hyphenate="true"> - + <fo:block> Av forståelige grunner har året 1814 vært av de mest omdiskuterte i norsk historieforskning. Med denne bibliografien vil man for første gang få en samlet oversikt over den viktigste @@ -373,12 +373,12 @@ Litteraturen om 1814 kan klassifiseres på flere måter. Grovt sett går det et skille mellom tre genrer: historiske oversiktsverker, historiske spesialstudier, erindringer og dagbøker og kilde- og dokumentutgivelser. Av oversiktsverker peker de store Norgeshistoriene seg ut -med sin relativt omfattende behandling av 1814: Nevnes kan +med sin relativt omfattende behandling av 1814: Nevnes kan <fo:inline font-style="italic">Norges historie fremstillet for -det norske folk</fo:inline>, bd. VI.1 (1913), -<fo:inline font-style="italic">Det norske folks liv og historie</fo:inline> bd. VII (1933), -<fo:inline font-style="italic">Vårt folks historie</fo:inline> bd. 6 (1964), -<fo:inline font-style="italic">Cappelens Norges historie</fo:inline> bd. 9 (1978) og +det norske folk</fo:inline>, bd. VI.1 (1913), +<fo:inline font-style="italic">Det norske folks liv og historie</fo:inline> bd. VII (1933), +<fo:inline font-style="italic">Vårt folks historie</fo:inline> bd. 6 (1964), +<fo:inline font-style="italic">Cappelens Norges historie</fo:inline> bd. 9 (1978) og <fo:inline font-style="italic">Aschehougs Norgeshistorie</fo:inline> bd. 7 (1996). Disse oversiktene er i vesentlig grad bygd på den omfattende spesiallitteraturen i bok- eller artikkelform som har et meget vidt spenn, fra biografier over lokale Eidsvollsmenn til krigshistoriske analyser av felttoget. Mye tidligere skjult @@ -387,7 +387,7 @@ til å endre forskningsbildet flere ganger. </fo:block> <fo:block font-weight="bold"> -1814-1864 +1814-1864 </fo:block> <fo:block> Det norske samfunnet etter 1814 ble rekonstruert på den nye Grunnlovens grunn, og vernet om @@ -415,19 +415,19 @@ <fo:block> Rimeligvis ble da forholdet til Danmark snarere enn forholdet til Sverige ett av de første alvorlige stridsspørsmål i perioden. Presten og Eidsvollsmannen Nicolai Wergeland ble -beryktet for den danskfiendtlige og unionsvennlige posisjon han inntok i boken +beryktet for den danskfiendtlige og unionsvennlige posisjon han inntok i boken <fo:inline font-style="italic">En sandfærdig Beretning om Danmarks politiske Forbrydelser imod Kongeriget Norge </fo:inline> (anonymt, 1816) som fulgte nasjonalhistorien helt opp til Kielfreden. Skriftet vakte debatt og kraftige reaksjoner ikke minst blant det gamle selvstendighetsparti. Blant annet publiserte Christian Magnus Falsen to motskrifter i 1817. Falsen prøvde også å popularisere Grunnlovens innhold -for den mindre "oplyste" borgerklasse og allmue gjennom skriftet +for den mindre "oplyste" borgerklasse og allmue gjennom skriftet <fo:inline font-style="italic">Norges Grundlov gjennemgaaet i Spørgs-maal og Svar </fo:inline> (1818, forkortet versjon 1825). Men det må kunne påstås at den mer detaljerte historien om grunnlovsverkets tilblivelse og første fase lenge ble stående i noe av et halvmørke både for det alminnelige folk og for de nye generasjoner, og at dette skyldtes den politiske situasjonen. Det var Nicolai Wergeland som leverte selve -pionerarbeidet blant de personlige kildesamlingene, +pionerarbeidet blant de personlige kildesamlingene, <fo:inline font-style="italic">Fortrolige Breve til en Ven, Skrevne fra Eidsvold i Aaret 1814</fo:inline> (anonymt, 1830). Men det var først da det unionspolitiske klimaet mildnet etter 1837 at det ble åpnet for en grundigere historisk analyse av Grunnlovens @@ -435,8 +435,8 @@ </fo:block> </fo:block> <!-- this defines a title --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="12pt" background-color="blue" color="white" @@ -445,14 +445,14 @@ </fo:block> <!-- this defines normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" background-color="rgb(173, 216, 230)" language="cs" hyphenate="true"> - + <fo:block font-weight="bold">Úryvek z knihy Alenka v říši divů</fo:block> <fo:block> Alenka si ani trochu neublížila a v mžiku byla na nohou: pohlédla nad sebe a kolem sebe, Modified: trunk/foray/resource/fo-examples/basic/inhprop.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/inhprop.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/inhprop.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- example for a simple fo file. At the beginning the page layout is set. -Below fo:root there is always +<!-- example for a simple fo file. At the beginning the page layout is set. +Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts - an optional fo:declarations, - and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> @@ -10,23 +10,23 @@ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - - page-sequence-masters: have the role of describing the sequence - of page-masters that will be used to generate - pages during the formatting of an fo:page-sequence + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + - page-sequence-masters: have the role of describing the sequence + of page-masters that will be used to generate + pages during the formatting of an fo:page-sequence --> <!-- layout for the first page --> <fo:simple-page-master master-name="first" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="1cm" - margin-bottom="2cm" - margin-left="2.0cm + 0.5cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="2.0cm + 0.5cm" margin-right="(5cm * 1cm) div 2cm"> <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/> <fo:region-before extent="3cm"/> @@ -37,9 +37,9 @@ <fo:simple-page-master master-name="rest" page-height="abs(-30cm + .3cm)" page-width="(10cm * 2) + 1cm" - margin-top="round(.5) * 1cm" + margin-top="round(.5) * 1cm" margin-bottom="round(2.4) * 1cm" - margin-left="2.5 * 1cm" + margin-left="2.5 * 1cm" margin-right="5.5cm - 3cm"> <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/> <fo:region-before extent="2.5cm"/> @@ -65,19 +65,19 @@ <!-- header --> <fo:static-content flow-name="xsl-region-before"> - <fo:block text-align="end" - font-size="10pt" - font-family="serif" + <fo:block text-align="end" + font-size="10pt" + font-family="serif" line-height="1em + 4pt" > Property Function Tests - p. <fo:page-number/> </fo:block> - </fo:static-content> + </fo:static-content> <fo:flow flow-name="xsl-region-body"> <!-- defines text title level 1--> - <fo:block font-size="min(18pt,20pt)" - font-family="sans-serif" + <fo:block font-size="min(18pt,20pt)" + font-family="sans-serif" line-height="max(24pt,18pt)" space-after.optimum="5 mod 3 * 7.5pt" background-color="rgb(0,0,255)" @@ -88,8 +88,8 @@ </fo:block> <!-- defines text title level 2--> - <fo:block font-size="floor(16.3) * 1pt" - font-family="sans-serif" + <fo:block font-size="floor(16.3) * 1pt" + font-family="sans-serif" line-height="2pt * ceiling(9.3)" space-before.optimum="10pt" space-after.optimum="10pt" @@ -97,12 +97,12 @@ keep-with-next.within-page="always" keep-together.within-page="always" padding-top="3pt"> - Function: object from-parent( <fo:inline font-weight='bold'>NCName</fo:inline>) + Function: object from-parent( <fo:inline font-weight='bold'>NCName</fo:inline>) </fo:block> <!-- Normal text --> - <fo:block font-size="12pt" - font-family="sans-serif" + <fo:block font-size="12pt" + font-family="sans-serif" line-height="1.25em" space-after="3pt" keep-together="auto" @@ -132,7 +132,7 @@ <fo:block font-size="from-parent(font-size) + 2pt" space-before="2pt" space-after="from-parent(space-after)" - font-family="sans-serif" + font-family="sans-serif" start-indent="from-parent(start-indent) + 1cm" end-indent="from-parent(end-indent) + 1cm" text-align="end" Modified: trunk/foray/resource/fo-examples/basic/inline.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/inline.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/inline.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -50,7 +50,7 @@ an fo:inline to create an area on more than one line. The inline lies between the > and < characters and should have a light-blue background: ><fo:inline background-color="rgb(173, 216, 230)">This - is the fo:inline content. It should have a light-blue background, and + is the fo:inline content. It should have a light-blue background, and is deliberately long enough to span parts of at least two lines.</fo:inline>< The remaining text demonstrates that other areas can be created after the inline has been completed.</fo:block> Modified: trunk/foray/resource/fo-examples/basic/list.fo =================================================================== --- trunk/foray/resource/fo-examples/basic/list.fo 2006-06-17 22:01:23 UTC (rev 7698) +++ trunk/foray/resource/fo-examples/basic/list.fo 2006-06-17 22:08:55 UTC (rev 7699) @@ -1,31 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- example for use of list elements - At the beginning the page layout is set. - Below fo:root there is always +<!-- example for use of list elements + At the beginning the page layout is set. + Below fo:root there is always - a single fo:layout-master-set which defines one or more page layouts -- an optional fo:declarations -- and a sequence of one or more fo:page-sequences containing the text and formatting instructions +- an optional fo:declarations +- and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> - <!-- fo:layout-master-set defines in its children the page layout: + <!-- fo:layout-master-set defines in its children the page layout: the pagination and layout specifications - - page-masters: have the role of describing the intended subdivisions - of a page and the geometry of these subdivisions - In this case there is only a simple-page-master which defines the + - page-masters: have the role of describing the intended subdivisions + of a page and the geometry of these subdivisions + In this case there is only a simple-page-master which defines the layout for all pages of the text --> <!-- layout information --> <fo:simple-page-master master-name="simple" - page-height="29.7cm" + page-height="29.7cm" page-width="21cm" - margin-top="2cm" - margin-bottom="2cm" - margin-left="2.5cm" + margin-top="2cm" + margin-bottom="2cm" + margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="2cm" margin-bottom="1.5cm"/> <fo:region-before extent="2cm"/> @@ -37,21 +37,21 @@ <!-- start page-sequence here comes the text (contained in flow objects) - the page-sequence can contain different fo:flows + the page-sequence can contain different fo:flows the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> <fo:page-sequence master-reference="simple"> <!-- start fo:flow - each flow is targeted + each flow is targeted at one (and only one) of the following: xsl-region-body (usually: normal text) xsl-region-before (usually: header) xsl-region-after (usually: footer) - xsl-region-start (usually: left margin) + xsl-region-start (usually: left margin) xsl-region-end (usually: right margin) - ['usually' applies here to languages with left-right and top-down + ['usually' applies here to languages with left-right and top-down writing direction like English] in this case there is only one target: xsl-region-body --> @@ -62,8 +62,8 @@ font-family and size, line-heigth etc. --> <!-- this defines a title level 1--> - <fo:block font-size="18pt" - font-family="sans-serif" + <fo:block font-size="18pt" + font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" @@ -74,8 +74,8 @@ </fo:block> <!-- this defines a title level 2--> - <fo:block font-size="16pt" - font-family="sans-serif" + <fo:block font-size="16pt" + font-family="sans-serif" space-after.optimum="15pt" text-align="center"> A simple list with bullets in list-item-label @@ -84,14 +84,14 @@ <!-- list --> <fo:list-block > - + <!-- list item --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">•</fo:inline></fo:block> </fo:list-item-label> - <!-- list text --> + <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> here is text in the list item body @@ -105,7 +105,7 @@ <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">•</fo:inline></fo:block> </f... [truncated message content] |