diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/readme | 2 | ||||
-rw-r--r-- | docs/xml2pdf.xsl | 126 | ||||
-rw-r--r-- | docs/xslfoRef.xml | 12 |
3 files changed, 70 insertions, 70 deletions
diff --git a/docs/readme b/docs/readme index b096a7fc0..bb780905e 100644 --- a/docs/readme +++ b/docs/readme @@ -8,7 +8,7 @@ xml-docs Fop documentation in xml files and a script to create pdf document design UML diagrams showing the Fop design graphics some graphics used by the examples and test files -examples a lot of xs:fo example files +examples a lot of xs:fo example files examples/fo some simple examples to get you started examples/ pagination some simple and some not so simple examples how to use the diff --git a/docs/xml2pdf.xsl b/docs/xml2pdf.xsl index 9ddd992e9..c9d73caf4 100644 --- a/docs/xml2pdf.xsl +++ b/docs/xml2pdf.xsl @@ -3,39 +3,39 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match ="root"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - - <!-- defines page layout --> - <fo:layout-master-set> - - <fo:simple-page-master master-name="simple" - page-height="29.7cm" - page-width="21cm" - margin-top="1.5cm" - margin-bottom="1.5cm" - margin-left="2.5cm" - margin-right="2.5cm"> - <fo:region-body margin-top="1.5cm"/> - <fo:region-before extent="1.5cm"/> - <fo:region-after extent="1.5cm"/> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple"> - <fo:static-content flow-name="xsl-region-before"> - <fo:block text-align="end" - font-size="10pt" - font-family="serif" - line-height="14pt" > - xsl:fo short reference - p. <fo:page-number/> - </fo:block> - </fo:static-content> - - <fo:flow flow-name="xsl-region-body"> - - - <fo:block font-size="18pt" - font-family="sans-serif" + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + + <!-- defines page layout --> + <fo:layout-master-set> + + <fo:simple-page-master master-name="simple" + page-height="29.7cm" + page-width="21cm" + margin-top="1.5cm" + margin-bottom="1.5cm" + margin-left="2.5cm" + margin-right="2.5cm"> + <fo:region-body margin-top="1.5cm"/> + <fo:region-before extent="1.5cm"/> + <fo:region-after extent="1.5cm"/> + </fo:simple-page-master> + </fo:layout-master-set> + + <fo:page-sequence master-reference="simple"> + <fo:static-content flow-name="xsl-region-before"> + <fo:block text-align="end" + font-size="10pt" + font-family="serif" + line-height="14pt" > + xsl:fo short reference - p. <fo:page-number/> + </fo:block> + </fo:static-content> + + <fo:flow flow-name="xsl-region-body"> + + + <fo:block font-size="18pt" + font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" @@ -46,8 +46,8 @@ <!-- generates table of contents and puts it into a table --> - <fo:block font-size="10pt" - font-family="sans-serif" + <fo:block font-size="10pt" + font-family="sans-serif" line-height="10pt" space-after.optimum="3pt" font-weight="bold" @@ -58,14 +58,14 @@ <fo:table space-after.optimum="15pt"> <fo:table-column column-width="1cm"/> <fo:table-column column-width="15cm"/> - <fo:table-body font-size="10pt" + <fo:table-body font-size="10pt" font-family="sans-serif"> - + <xsl:for-each select="div0/head"> <fo:table-row line-height="12pt"> <fo:table-cell> <fo:block text-align="end" > - <xsl:number value="position()" format="1"/>) + <xsl:number value="position()" format="1"/>) </fo:block> </fo:table-cell> <fo:table-cell> @@ -78,36 +78,36 @@ </fo:table-body> </fo:table> - <xsl:apply-templates/> - <fo:block font-size="10pt" - font-family="sans-serif" + <xsl:apply-templates/> + <fo:block font-size="10pt" + font-family="sans-serif" line-height="11pt" space-before.optimum="2cm"> - The explanation of the flow objects is based (mostly verbatim) on the section - 6.2 of the XSL W3C Candidate Recommendation 21 November 2000. More info at the beginning + The explanation of the flow objects is based (mostly verbatim) on the section + 6.2 of the XSL W3C Candidate Recommendation 21 November 2000. More info at the beginning of the file xslfoRef.xml. </fo:block> - </fo:flow> - </fo:page-sequence> - </fo:root> + </fo:flow> + </fo:page-sequence> + </fo:root> </xsl:template> <xsl:template match ="div"> - <fo:block font-size="14pt" - font-family="sans-serif" + <fo:block font-size="14pt" + font-family="sans-serif" space-before.optimum="3pt" space-after.optimum="3pt" text-align="center" padding-top="3pt" > - <xsl:apply-templates/> + <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match ="div0/head"> - <fo:block font-size="16pt" + <fo:block font-size="16pt" line-height="18pt" text-align="center" padding-top="3pt" @@ -124,7 +124,7 @@ <xsl:template match ="div/fo"> - <fo:block font-size="13pt" + <fo:block font-size="13pt" line-height="14pt" text-align="start" > @@ -133,19 +133,19 @@ </xsl:template> <xsl:template match ="explanation"> - <fo:block font-size="11pt" - font-family="sans-serif" + <fo:block font-size="11pt" + font-family="sans-serif" line-height="12pt" text-align="start" start-indent="0.5cm" > - <xsl:apply-templates/> + <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match ="div/content"> - <fo:block font-size="10pt" - font-family="Courier" + <fo:block font-size="10pt" + font-family="Courier" start-indent="0.5cm" line-height="11pt" text-align="start" @@ -155,21 +155,21 @@ </xsl:template> <xsl:template match ="div/properties"> - <fo:block font-size="10pt" - font-family="Courier" + <fo:block font-size="10pt" + font-family="Courier" line-height="11pt" text-align="start" start-indent="0.5cm"> Properties: </fo:block> <fo:block space-after.optimum="3pt"> - <xsl:apply-templates/> + <xsl:apply-templates/> </fo:block> </xsl:template> -<xsl:template match ="properties/property"> - <fo:block font-size="9pt" - font-family="sans-serif" +<xsl:template match ="properties/property"> + <fo:block font-size="9pt" + font-family="sans-serif" line-height="10pt" text-align="start" start-indent="1cm"> @@ -179,7 +179,7 @@ <xsl:template match ="div/property-def"> - <fo:block font-size="13pt" + <fo:block font-size="13pt" line-height="14pt" text-align="start" > diff --git a/docs/xslfoRef.xml b/docs/xslfoRef.xml index a4c633e05..bc9cd93bd 100644 --- a/docs/xslfoRef.xml +++ b/docs/xslfoRef.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- -tbd: - internal linking +<!-- +tbd: - internal linking - one line explanation - example -please note: the short explanation of each fo is based (mostly verbatim) on the section 6.3 of -the Extensible Stylesheet Language (XSL) Version 1.0 W3C Candidate Recommendation 21 November 2000. +please note: the short explanation of each fo is based (mostly verbatim) on the section 6.3 of +the Extensible Stylesheet Language (XSL) Version 1.0 W3C Candidate Recommendation 21 November 2000. authors: Sharon Adler, Anders Berglund, Jeff Caruso, Stephen Deach - Paul Grosso, Eduardo Gutentag, Alex Milowski, Scott Parnell, + Paul Grosso, Eduardo Gutentag, Alex Milowski, Scott Parnell, Jeremy Richman, Steve Zilles url: http://www.w3.org/TR/2000/CR-xsl-20001121/ @@ -44,7 +44,7 @@ the Extensible Stylesheet Language (XSL) Version 1.0 W3C Candidate Recommendatio </properties> </div><div id="fo:bidi-override"> <fo>fo:bidi-override</fo> -<explanation> overrides the default Unicode-bidirectionality algorithm direction for different +<explanation> overrides the default Unicode-bidirectionality algorithm direction for different (or nested) inline scripts in mixed-language documents</explanation> <content>(#PCDATA|%inline;|%block;)*</content> <properties> |