mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
FAS:
- Erstellung von Lehraufträgen - xslfo2pdf
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master
|
||||
margin-right="0.5cm" margin-left="0.5cm" margin-bottom="0.5cm" margin-top="0.75cm"
|
||||
page-width="21cm" page-height="29.7cm" master-name="first">
|
||||
<fo:region-body></fo:region-body>
|
||||
</fo:simple-page-master>
|
||||
<fo:simple-page-master
|
||||
margin-right="2.5cm" margin-left="2.5cm" margin-bottom="2cm" margin-top="1cm"
|
||||
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"
|
||||
page-position="first" />
|
||||
<fo:conditional-page-master-reference master-reference="rest"
|
||||
page-position="rest" />
|
||||
<!-- recommended fallback procedure -->
|
||||
<fo:conditional-page-master-reference master-reference="rest" />
|
||||
</fo:repeatable-page-master-alternatives>
|
||||
</fo:page-sequence-master>
|
||||
</fo:layout-master-set>
|
||||
<fo:page-sequence master-reference="psmA">
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block-container height="4cm" width="12cm" top="0cm" left="0cm" position="absolute">
|
||||
<fo:block text-align="start" line-height="18pt" font-family="sans-serif" font-weight="bold" font-size="14pt">
|
||||
PX7.net
|
||||
</fo:block>
|
||||
<fo:block text-align="start" line-height="18pt" font-family="sans-serif" font-weight="bold" font-size="14pt">
|
||||
44 Liberty St
|
||||
</fo:block>
|
||||
<fo:block text-align="start" line-height="18pt" font-family="sans-serif" font-weight="bold" font-size="14pt">
|
||||
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
|
||||
</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container height="1cm" width="6cm" top="0cm" left="14cm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="22pt" font-family="sans-serif" font-size="23pt">
|
||||
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
|
||||
</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.87cm" 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="10pt">
|
||||
01/01/2000
|
||||
</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="16.46cm" padding=".6mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt">
|
||||
SALE #
|
||||
</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.87cm" left="16.46cm" padding=".6mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="10pt">
|
||||
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
|
||||
</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="3cm" width="8.95cm" top="3.67cm" left="0cm" padding=".6mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt">
|
||||
</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="10cm" padding=".6mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt">
|
||||
SHIP TO
|
||||
</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="3cm" width="8.95cm" top="3.67cm" left="10cm" padding=".6mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt">
|
||||
</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
|
||||
</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="0.5cm" width="3.96cm" top="8cm" 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="10pt">
|
||||
Check
|
||||
</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="14.95cm" padding="1mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="12pt">
|
||||
CHECK #
|
||||
</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width=".5mm" height="0.5cm" width="3.96cm" top="8cm" left="14.95cm" padding="1mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="14pt" font-family="sans-serif" font-size="10pt">
|
||||
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"/>
|
||||
<fo:table-column column-width="11.5cm"/>
|
||||
<fo:table-column column-width="2.5cm"/>
|
||||
<fo:table-column column-width="2.5cm"/>
|
||||
<fo:table-body font-family="sans-serif" font-weight="normal" font-size="10pt">
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell border-width="1pt" border-color="green" border-style="solid" padding="1mm">
|
||||
<fo:block text-align="end">QUANTITY</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell border-width="1pt" border-color="red" border-style="solid" padding="1mm">
|
||||
<fo:block text-align="start">DESCRIPTION</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell border-color="blue" border-style="solid" padding="1mm">
|
||||
<fo:block text-align="center">RATE</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell border-color="orange" border-style="solid" padding="1mm">
|
||||
<fo:block text-align="center">AMOUNT</fo:block>
|
||||
</fo:table-cell>
|
||||
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">1</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="start">Wide Widget</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">$22.23</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">22.31</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">1</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="start">Widget</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">$22.23</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">22.31</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">3</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="start">Nuts</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">$12.00</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell padding="2pt">
|
||||
<fo:block text-align="end">36.00</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width="0.5mm" height="1cm" width="13.31cm" top="26.5cm" left="0cm" padding="1mm" position="absolute">
|
||||
<fo:block text-align="start" line-height="15pt" font-family="sans-serif" font-size="12pt">Please remit to the above address</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width="0.5mm" height="1cm" width="2.5cm" top="26.5cm" left="13.56cm" padding="1mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="25pt" font-family="sans-serif" font-size="22pt">Total</fo:block>
|
||||
</fo:block-container>
|
||||
<fo:block-container border-color="black" border-style="solid" border-width="0.5mm" height="1cm" width="2.5cm" top="26.5cm" left="16.31cm" padding="1mm" position="absolute">
|
||||
<fo:block text-align="start" space-after.optimum="3pt" line-height="15pt" font-family="sans-serif" font-size="10pt">$3.00</fo:block>
|
||||
</fo:block-container>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
||||
|
||||
<!-- defines page layout -->
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="first"
|
||||
page-height="29.7cm" page-width="21cm"
|
||||
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"/>
|
||||
<fo:region-after extent="1.5cm"/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<!-- end: defines page layout -->
|
||||
|
||||
<!-- actual layout -->
|
||||
<fo:page-sequence master-reference="first">
|
||||
|
||||
<!-- text body -->
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">0. Normal text without link
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center"
|
||||
font-family="serif">1. <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">
|
||||
2. A one line example (text-align='start'): <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="start" hyphenate="true" language="en">
|
||||
3. A multiline text (text-align='start'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">
|
||||
4. A multiline text (text-align='centered'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="end">
|
||||
5. A multiline text (text-align='end'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="justify" hyphenate="true" language="en">
|
||||
6. A multiline text (text-align='justify'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="center">---</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="start"
|
||||
space-before.optimum="6pt"
|
||||
line-height="24pt"
|
||||
font-family="serif"
|
||||
padding-top="3pt"
|
||||
>
|
||||
7. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="start"
|
||||
space-before.optimum="6pt"
|
||||
line-height="24pt"
|
||||
font-family="serif"
|
||||
padding-top="3pt"
|
||||
>
|
||||
8. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- Normal text -->
|
||||
<!-- <fo:block text-align="start"
|
||||
space-before.optimum="6pt"
|
||||
line-height="24pt"
|
||||
font-family="serif"
|
||||
padding-top="3pt"
|
||||
>
|
||||
8. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
|
||||
go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
|
||||
</fo:block>
|
||||
-->
|
||||
<!-- Normal text -->
|
||||
<fo:block text-align="start"
|
||||
space-before.optimum="6pt"
|
||||
line-height="24pt"
|
||||
font-family="serif"
|
||||
padding-top="3pt"
|
||||
>
|
||||
9. Linking to a specific page of an external:
|
||||
<fo:basic-link external-destination="extensive.pdf#page=1">extensive.pdf, Page 2</fo:basic-link>.
|
||||
</fo:block>
|
||||
|
||||
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?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
|
||||
- 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 -->
|
||||
|
||||
<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:
|
||||
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
|
||||
|
||||
-->
|
||||
|
||||
<!-- layout for the first page -->
|
||||
<fo:simple-page-master master-name="first"
|
||||
page-height="21cm"
|
||||
page-width="29.7cm"
|
||||
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"/>
|
||||
<fo:region-after extent="1.5cm"/>
|
||||
</fo:simple-page-master>
|
||||
|
||||
<!-- layout for the other pages -->
|
||||
<fo:simple-page-master master-name="rest"
|
||||
page-height="29.7cm"
|
||||
page-width="21cm"
|
||||
margin-top="1cm"
|
||||
margin-bottom="2cm"
|
||||
margin-left="2.5cm"
|
||||
margin-right="2.5cm">
|
||||
<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>
|
||||
|
||||
<fo:page-sequence-master master-name="basicPSM" >
|
||||
<fo:repeatable-page-master-alternatives>
|
||||
<fo:conditional-page-master-reference master-reference="first"
|
||||
page-position="first" />
|
||||
<fo:conditional-page-master-reference master-reference="rest"
|
||||
page-position="rest" />
|
||||
<!-- recommended fallback procedure -->
|
||||
<fo:conditional-page-master-reference master-reference="rest" />
|
||||
</fo:repeatable-page-master-alternatives>
|
||||
</fo:page-sequence-master>
|
||||
|
||||
</fo:layout-master-set>
|
||||
<!-- end: defines page layout -->
|
||||
|
||||
<!-- actual layout -->
|
||||
<fo:page-sequence master-reference="basicPSM">
|
||||
|
||||
<!-- header -->
|
||||
<fo:static-content flow-name="xsl-region-before">
|
||||
<fo:block text-align="end"
|
||||
font-size="10pt"
|
||||
font-family="serif"
|
||||
line-height="14pt" >
|
||||
XML Recommendation - p. <fo:page-number/>
|
||||
</fo:block>
|
||||
</fo:static-content>
|
||||
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
|
||||
<!-- defines text title level 1-->
|
||||
<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"
|
||||
font-variant="small-caps">
|
||||
Extensible Markup Language (XML) 1.0
|
||||
</fo:block>
|
||||
|
||||
<!-- defines text title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
line-height="20pt"
|
||||
space-before.optimum="10pt"
|
||||
space-after.optimum="10pt"
|
||||
text-align="start"
|
||||
padding-top="3pt">
|
||||
Abstract
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block font-size="12pt"
|
||||
font-family="sans-serif"
|
||||
line-height="15pt"
|
||||
space-after.optimum="3pt"
|
||||
text-align="start">
|
||||
The <fo:inline font-variant="small-caps">Extensible Markup Language (XML)</fo:inline> is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML.
|
||||
</fo:block>
|
||||
|
||||
<!-- defines text title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
line-height="20pt"
|
||||
space-before.optimum="10pt"
|
||||
space-after.optimum="10pt"
|
||||
text-align="start"
|
||||
padding-top="3pt">
|
||||
Status of this document
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block font-size="12pt"
|
||||
font-family="sans-serif"
|
||||
line-height="15pt"
|
||||
space-after.optimum="3pt"
|
||||
text-align="start">
|
||||
This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a
|
||||
W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from
|
||||
another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its
|
||||
widespread deployment. This enhances the functionality and interoperability of the Web.
|
||||
</fo:block>
|
||||
|
||||
<!-- Normal text -->
|
||||
<fo:block font-size="12pt"
|
||||
font-family="sans-serif"
|
||||
line-height="15pt"
|
||||
space-after.optimum="3pt"
|
||||
text-align="start">
|
||||
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 http://www.w3.org/XML. A list of current W3C
|
||||
Recommendations and other technical documents can be found at http://www.w3.org/TR.
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,99 @@
|
||||
<?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
|
||||
- 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
|
||||
-->
|
||||
|
||||
<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:
|
||||
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
|
||||
layout for all pages of the text
|
||||
-->
|
||||
<!-- layout information -->
|
||||
<fo:simple-page-master master-name="simple"
|
||||
page-height="29.7cm"
|
||||
page-width="21cm"
|
||||
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"/>
|
||||
<fo:region-after extent="1.5cm"/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<!-- end: defines page layout -->
|
||||
|
||||
|
||||
<!-- start page-sequence
|
||||
here comes the text (contained in flow objects)
|
||||
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
|
||||
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-end (usually: right margin)
|
||||
['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">
|
||||
|
||||
<!-- each paragraph is encapsulated in a block element
|
||||
the attributes of the block define
|
||||
font-family and size, line-heigth etc. -->
|
||||
|
||||
<!-- this defines a title -->
|
||||
<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">
|
||||
Extensible Markup Language (XML) 1.0
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- this defines normal text -->
|
||||
<fo:block font-size="12pt"
|
||||
font-family="sans-serif"
|
||||
line-height="15pt"
|
||||
space-after.optimum="3pt"
|
||||
text-align="justify">
|
||||
The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML.
|
||||
</fo:block>
|
||||
|
||||
<!-- this defines normal text -->
|
||||
<fo:block font-size="12pt"
|
||||
font-family="sans-serif"
|
||||
line-height="15pt"
|
||||
space-after.optimum="3pt"
|
||||
text-align="justify">
|
||||
The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
|
||||
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
|
||||
has been designed for ease of implementation and for interoperability with both SGML and HTML.
|
||||
</fo:block>
|
||||
|
||||
</fo:flow> <!-- closes the flow element-->
|
||||
</fo:page-sequence> <!-- closes the page-sequence -->
|
||||
</fo:root>
|
||||
@@ -0,0 +1,504 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
||||
|
||||
|
||||
<!-- defines the layout master -->
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="first"
|
||||
page-height="29.7cm"
|
||||
page-width="21cm"
|
||||
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"/>
|
||||
<fo:region-after extent="1.5cm"/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
|
||||
<!-- starts actual layout -->
|
||||
<fo:page-sequence master-reference="first">
|
||||
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
|
||||
<!-- this defines a title level 1-->
|
||||
<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">
|
||||
How to use table elements
|
||||
</fo:block>
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center">
|
||||
A simple table, 3 columns, 4 rows
|
||||
</fo:block>
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center"
|
||||
break-before="page">
|
||||
A table with borders
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed" border-width="0.5mm" border-style="solid" background-color="yellow">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center"
|
||||
break-before="page">
|
||||
A table with thick borders
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed" border-width="3mm" border-style="solid" background-color="yellow">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start" start-indent="-3mm">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center"
|
||||
break-before="page">
|
||||
A table with borders around the cells
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed" border-collapse="separate">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center"
|
||||
break-before="page">
|
||||
2 tables with thick borders around the cells
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed" border-collapse="separate">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
<!-- table start -->
|
||||
<fo:table table-layout="fixed" border-collapse="separate">
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
<!-- table end -->
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
|
||||
<!-- this defines a title level 2-->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
space-after.optimum="15pt"
|
||||
text-align="center"
|
||||
break-before="page">
|
||||
5 tables with borders
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<fo:table table-layout="fixed" border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)">
|
||||
<fo:table-column column-width="150mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
|
||||
|
||||
<fo:table table-layout="fixed" border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" >
|
||||
<fo:table-column column-width="150mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
|
||||
|
||||
<fo:table table-layout="fixed" border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" >
|
||||
<fo:table-column column-width="150mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
|
||||
<fo:table table-layout="fixed" border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)">
|
||||
<fo:table-column column-width="150mm"/>
|
||||
<fo:table-body>
|
||||
<fo:table-row>
|
||||
<fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
|
||||
<!-- normal text -->
|
||||
<fo:block text-align="start">this is normal text. this is normal text. this is normal text.
|
||||
this is normal text. this is normal text. this is normal text.
|
||||
</fo:block>
|
||||
|
||||
|
||||
<!-- **************************** NEW PAGE ************************************* -->
|
||||
<fo:block font-size="16pt"
|
||||
font-family="sans-serif"
|
||||
line-height="20pt"
|
||||
space-after.optimum="3pt"
|
||||
break-before="page"
|
||||
text-align="justify">
|
||||
A Contents table
|
||||
</fo:block>
|
||||
|
||||
<!-- Here starts the table -->
|
||||
<fo:table table-layout="fixed">
|
||||
<fo:table-column column-width="1cm"/>
|
||||
<fo:table-column column-width="15cm"/>
|
||||
<fo:table-body font-size="10pt" font-family="sans-serif">
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">A) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">What is FOP?</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">B) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Downloading FOP</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">C) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Running FOP</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">D) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Embedding FOP </fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">E) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">What's Implemented?</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">F) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Limitations</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">G) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Bugs</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">H) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Compiling FOP</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">I) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Getting involved</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">J) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">FOP Relevant Specifications</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
<fo:table-row line-height="12pt">
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="end">K) </fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block text-align="start">Licence</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,33 @@
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="simple">
|
||||
<fo:region-body/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<fo:page-sequence master-reference="simple">
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
<fo:instream-foreign-object>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:circle cx="50" cy="30" r="30" style="fill:blue;"/>
|
||||
<svg:circle cx="100" cy="30" r="20" fill="none" stroke="red" stroke-width="2"/>
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:rect x="10" y="10" width="80" height="40" fill="blue"/>
|
||||
<svg:rect x="100" y="10" width="80" height="40" fill="none" stroke="green" rx="10"/>
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:ellipse cx="50" cy="50" rx="20" ry="10" fill="none" stroke="red" stroke-width="2"/>
|
||||
<svg:ellipse cx="100" cy="50" rx="20" ry="10" fill="black" stroke="yellow" stroke-width="2"/>
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:line x1="0" y1="0" x2="50" y2="50" stroke="red" stroke-width="2"/>
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:polygon points="10,10 50,50 100,10" fill="green" stroke="red" stroke-width="2"/>
|
||||
</svg:svg>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,21 @@
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="simple">
|
||||
<fo:region-body/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<fo:page-sequence master-reference="simple">
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
<fo:instream-foreign-object>
|
||||
<svg:svg width="100pt" height="100pt" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:circle cx="50pt" cy="50pt" r="30pt" style="fill:blue;"/>
|
||||
</svg:svg>
|
||||
<svg:svg width="100pt" height="100pt" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:circle cx="50pt" cy="50pt" r="30pt" style="fill:green;"/>
|
||||
</svg:svg>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,58 @@
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="simple">
|
||||
<fo:region-body/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<fo:page-sequence master-reference="simple">
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
<fo:instream-foreign-object>
|
||||
<svg:svg width="50" height="100" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:path d="M 0 0 L 100 0 L 50 100 z" fill="red" stroke="blue" stroke-width="3" />
|
||||
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="210" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:polyline class="Connect" points="100,0 100,100" />
|
||||
<svg:polyline class="Connect" points="250,0 250,200" />
|
||||
<svg:polyline class="Connect" points="400,100 400,200" />
|
||||
|
||||
<svg:path class="SamplePath" d="M100,100 C100,0 250,0 250,100
|
||||
S400,200 400,100" />
|
||||
|
||||
<svg:circle class="EndPoint" cx="100" cy="100" r="10" />
|
||||
<svg:circle class="EndPoint" cx="250" cy="100" r="10" />
|
||||
<svg:circle class="EndPoint" cx="400" cy="100" r="10" />
|
||||
<svg:circle class="CtlPoint" cx="100" cy="0" r="10" />
|
||||
<svg:circle class="CtlPoint" cx="250" cy="0" r="10" />
|
||||
<svg:circle class="CtlPoint" cx="400" cy="200" r="10" />
|
||||
<svg:circle class="AutoCtlPoint" cx="250" cy="200" r="9" />
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="300" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:path d="M200,150 Q250,0 300,150 T350,0"
|
||||
fill="none" stroke="red" stroke-width="5" />
|
||||
<svg:path d="M200,150 L250,0 L300,150
|
||||
L350,300 L400,150"
|
||||
fill="none" stroke="#888888" stroke-width="2" />
|
||||
<svg:g fill="#888888" >
|
||||
<svg:circle cx="250" cy="0" r="5"/>
|
||||
<svg:circle cx="400" cy="150" r="5"/>
|
||||
</svg:g>
|
||||
</svg:svg>
|
||||
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:path d="M100,100 h-50 a50,50 0 1,0 50,-50 z"
|
||||
fill="red" stroke="blue" stroke-width="5" />
|
||||
<svg:path d="M90,90 v-50 a50,50 0 0,0 -50,50 z"
|
||||
fill="yellow" stroke="blue" stroke-width="5" />
|
||||
<svg:path d="M100,250 l 50,-25
|
||||
a25,25 -30 0,1 50,-25 l 50,-25
|
||||
a25,50 -30 0,1 50,-25 l 50,-25
|
||||
a25,75 -30 0,1 50,-25 l 50,-25
|
||||
a25,100 -30 0,1 50,-25 l 50,-25"
|
||||
fill="none" stroke="red" stroke-width="5" />
|
||||
</svg:svg>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,52 @@
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
||||
<fo:layout-master-set>
|
||||
<fo:simple-page-master master-name="simple">
|
||||
<fo:region-body/>
|
||||
</fo:simple-page-master>
|
||||
</fo:layout-master-set>
|
||||
<fo:page-sequence master-reference="simple">
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
<fo:instream-foreign-object>
|
||||
<svg:svg width="200" height="300" xmlns:svg="http://www.w3.org/2000/svg" >
|
||||
<svg:g fill="none" stroke="black" stroke-width="3" >
|
||||
<!-- Draw the axes of the original coordinate system -->
|
||||
<svg:line x1="0" y1="1.5" x2="400" y2="1.5" />
|
||||
<svg:line x1="1.5" y1="0" x2="1.5" y2="150" />
|
||||
</svg:g>
|
||||
<!-- First, a translate -->
|
||||
<svg:g transform="translate(50,50)">
|
||||
<svg:g fill="none" stroke="red" stroke-width="1" >
|
||||
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
||||
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
||||
</svg:g>
|
||||
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
||||
....Translate(1)
|
||||
</svg:text>
|
||||
<!-- Second, a rotate -->
|
||||
<svg:g transform="rotate(-45)">
|
||||
<svg:g fill="none" stroke="green" stroke-width="1" >
|
||||
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
||||
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
||||
</svg:g>
|
||||
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
||||
....Rotate(2)
|
||||
</svg:text>
|
||||
<!-- Third, another translate -->
|
||||
<svg:g transform="translate(20,20)">
|
||||
<svg:g fill="none" stroke="blue" stroke-width="1" >
|
||||
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
||||
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
||||
</svg:g>
|
||||
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
||||
....Translate(3)
|
||||
</svg:text>
|
||||
</svg:g>
|
||||
</svg:g>
|
||||
</svg:g>
|
||||
</svg:svg>
|
||||
</fo:instream-foreign-object>
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
||||
<fo:page-sequence>
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
dasdsad dfsfsdfsf fdsfdsfs fsd fsd f sdfsd fsdfsdf sdfsdf dsafsdfs dfsdf sdfsd fsdfsdf sdfs dfsdfsd fsdfs dfsed
|
||||
</fo:block>
|
||||
<fo:block>
|
||||
xxxxxxxx
|
||||
</fo:block>
|
||||
<fo:table-and-caption>
|
||||
<fo:table>
|
||||
<fo:table-column column-width="25mm"/>
|
||||
<fo:table-column column-width="25mm"/>
|
||||
|
||||
<fo:table-header>
|
||||
<fo:table-row>
|
||||
<fo:table-cell>
|
||||
<fo:block
|
||||
border-top-style="dotted"
|
||||
border-left-style="solid"
|
||||
border-right-style="solid"
|
||||
border-top-color="red"
|
||||
border-left-color="rgb(255,255,0)"
|
||||
font-weight="bold">Car
|
||||
</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block font-weight="bold"
|
||||
border-top-style="dashed"
|
||||
border-top-color="#00ffff"
|
||||
border-right-color="cyan">Price</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-header>
|
||||
|
||||
<fo:table-body>
|
||||
|
||||
<fo:table-row>
|
||||
<fo:table-cell>
|
||||
<fo:block>Volvo</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block
|
||||
background-color="#cccccc">$50000</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
|
||||
<fo:table-row>
|
||||
<fo:table-cell>
|
||||
<fo:block>SAAB</fo:block>
|
||||
</fo:table-cell>
|
||||
<fo:table-cell>
|
||||
<fo:block>$48000</fo:block>
|
||||
</fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
|
||||
</fo:table>
|
||||
</fo:table-and-caption>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
<fo:page-sequence>
|
||||
<fo:flow flow-name="xsl-region-body">
|
||||
<fo:block>
|
||||
444
|
||||
</fo:block>
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
Reference in New Issue
Block a user