aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml2pdf.xsl
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2002-11-30 08:54:26 +0000
committerWilliam Victor Mote <vmote@apache.org>2002-11-30 08:54:26 +0000
commit701271c9574a3af46c3b870e01fe1df8f234573e (patch)
treec7b391991bf869213e3ca0b28e6a86d8fbf40178 /docs/xml2pdf.xsl
parent64b3c5ede295343029ded69bb7f035ddd47409f3 (diff)
downloadxmlgraphics-fop-701271c9574a3af46c3b870e01fe1df8f234573e.tar.gz
xmlgraphics-fop-701271c9574a3af46c3b870e01fe1df8f234573e.zip
white-space and line-ending fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/xml2pdf.xsl')
-rw-r--r--docs/xml2pdf.xsl126
1 files changed, 63 insertions, 63 deletions
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"
>